CreateCSRRequest
This API creates a new certificate request.
URL
<http/https>://<host-name>:<Port>/protectappws/services/rest/createCertRequest
Input Parameters
| Parameters | Description | 
|---|---|
| userName | User name (optional). | 
| password | Password associated with the user (optional). | 
| keyName | RSA key. | 
| cnName | Common name for the certificate. | 
| countryName | Two-letter code of the country. | 
| certAlias | Client certificate alias for making SSL connections (optional). | 
| certPass | Password for the provided certificate alias (optional). | 
Note
The other optional attributes such as state, organization, and email are not used while creating a CSR.
Sample REST call for cxf
request
    {
        "CreateCSRRequest": {
            "userName": "abc",
            "password": "safenet@123",
            "keyName": "RSA",
            "cnName": "xyz",
            "countryName": "IN"
        }
    }
response
    {
        "CreateCSRResponse": {
            "csrRequest": "----BEGIN CERTIFICATE REQUEST---\nMIIBFTCBwAIBADBbMQ8wDv1cn4XdLHQ2g=\n---END CERTIFICATE REQUEST----\n"
        }
    }