Certificate Signing Request (CSR) generation for S/MIME certificates enrolled using REST API