Skip to content
Was this article helpful?


Configuration for cerificate resource.


(click to see Operations)

Name Data Type PermissionsDescription
certfile<String>Read-writeName for and, optionally, path to the generated certificate file. /nsconfig/ssl/ is the default path.<br>Maximum length = 63
reqfile<String>Read-writeName for and, optionally, path to the certificate-signing request (CSR). /nsconfig/ssl/ is the default path.<br>Maximum length = 63
certtype<String>Read-writeType of certificate to generate. Specify one of the following:<br>* ROOT_CERT - Self-signed Root-CA certificate. You must specify the key file name. The generated Root-CA certificate can be used for signing end-user client or server certificates or to create Intermediate-CA certificates.<br>* INTM_CERT - Intermediate-CA certificate. <br>* CLNT_CERT - End-user client certificate used for client authentication.<br>* SRVR_CERT - SSL server certificate used on SSL servers for end-to-end encryption.<br>Possible values = ROOT_CERT, INTM_CERT, CLNT_CERT, SRVR_CERT, UNKNOWN, CLIENTANDSERVER_CERT
keyfile<String>Read-writeName for and, optionally, path to the private key. You can either use an existing RSA or DSA key that you own or create a new private key on the NetScaler appliance. This file is required only when creating a self-signed Root-CA certificate. The key file is stored in the /nsconfig/ssl directory by default. <br>If the input key specified is an encrypted key, you are prompted to enter the PEM pass phrase that was used for encrypting the key.<br>Maximum length = 63
keyform<String>Read-writeFormat in which the key is stored on the appliance.<br>Default value: PEM<br>Possible values = DER, PEM
pempassphrase<String>Read-write.<br>Minimum length = 1<br>Maximum length = 31
days<Double>Read-writeNumber of days for which the certificate will be valid, beginning with the time and day (system time) of creation.<br>Default value: 365<br>Minimum value = 1<br>Maximum value = 3650
certform<String>Read-writeFormat in which the certificate is stored on the appliance.<br>Default value: PEM<br>Possible values = DER, PEM
cacert<String>Read-writeName of the CA certificate file that issues and signs the Intermediate-CA certificate or the end-user client and server certificates.<br>Maximum length = 63
cacertform<String>Read-writeFormat of the CA certificate.<br>Default value: PEM<br>Possible values = DER, PEM
cakey<String>Read-writePrivate key, associated with the CA certificate that is used to sign the Intermediate-CA certificate or the end-user client and server certificate. If the CA key file is password protected, the user is prompted to enter the pass phrase that was used to encrypt the key.<br>Maximum length = 63
cakeyform<String>Read-writeFormat for the CA certificate.<br>Default value: PEM<br>Possible values = DER, PEM
caserial<String>Read-writeSerial number file maintained for the CA certificate. This file contains the serial number of the next certificate to be issued or signed by the CA. If the specified file does not exist, a new file is created, with /nsconfig/ssl/ as the default path. If you do not specify a proper path for the existing serial file, a new serial file is created. This might change the certificate serial numbers assigned by the CA certificate to each of the certificates it signs.<br>Maximum length = 63


(click to see Properties)


Some options that you can use for each operations:

  • Getting warnings in response: NITRO allows you to get warnings in an operation by specifying the "warning" query parameter as "yes". For example, to get warnings while connecting to the NetScaler appliance, the URL is as follows:


    If any, the warnings are displayed in the response payload with the HTTP code "209 X-NITRO-WARNING".

  • Authenticated access for individual NITRO operations: NITRO allows you to logon to the NetScaler appliance to perform individual operations. You can use this option instead of creating a NITRO session (using the login object) and then using that session to perform all operations,

    To do this, you must specify the username and password in the request header of the NITRO request as follows:



    Note: In such cases, make sure that the request header DOES not include the following:



Mandatory parameters are marked in red and placeholder content is marked in <green>.


URL: http://<netscaler-ip-address>/nitro/v1/config/sslcert?action=create


Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue> Content-Type:application/json

Request Payload:



HTTP Status Code on Success: 200 OK HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the error

Was this article helpful?