Use the generate command to generate a private key and public key pair with a self-signed certificate or a certificate sign request.
The generate command is targeted to only the Remote Supervisor Adapter, Remote Supervisor Adapter II, and IMM. Specially, out-of-band mode of the command is supported for IMM only. The generate command generates a private key and public key pair with a self-signed certificate or certificate sign request (CSR). The generation can take a few seconds to complete, depending on the state of the Remote Supervisor Adapter, Remote Supervisor Adapter II, or IMM.
The generate command requires an Extensible Markup Language (XML) file that contains the certificate information that you want in the directory from which the ASU is running. When you extract the ASU files, a template file (template.xml) is extracted. This file provides an XML file with the correct syntax. Modify this XML file with the information you need to generate the selected certificate.
To learn more about supported commands of settings for IMM-based servers, see Supported commands for IMM-based certificate management.
<?xml version="1.0" encoding="utf-8"?> <asu version="2.1"> <new_key_and_self_signed_cert_info> <item type="Required"> <vectorID>0001</vectorID> <name>countryName</name> <value minlen="2" maxlen="2">xx</value> </item> <item type="Required"> <vectorID>0001</vectorID> <name>stateOrProvinceName</name> <value minlen="1" maxlen="30">xx</value> </item> <item type="Required"> <vectorID>0001</vectorID> <name>localityName</name> <value minlen="1" maxlen="50">xx</value> </item> <item type="Required"> <vectorID>0001</vectorID> <name>organizationName</name> <value minlen="1" maxlen="60">xx</value> </item> <item type="Required"> <vectorID>0001</vectorID> <name>commonName</name> <value minlen="1" maxlen="60">xx</value> </item> <item type="Optional"> <vectorID>0001</vectorID> <name>Name</name> <value minlen="1" maxlen="60">xx</value> </item> <item type="Optional"> <vectorID>0001</vectorID> <name>emailAddress</name> <value minlen="1" maxlen="60">xx</value> </item> <item type="Optional"> <vectorID>0001</vectorID> <name>validityPeriod</name> <value minlen="0" maxlen="2">xx</value> </item> <item type="Optional"> <vectorID>0001</vectorID> <name>organizationalUnitName</name> <value minlen="0" maxlen="60">xx</value> </item> <item type="Optional"> <vectorID>0001</vectorID> <name>Surname</name> <value minlen="0" maxlen="60">xx</value> </item> <item type="Optional"> <vectorID>0001</vectorID> <name>givenName</name> <value minlen="0" maxlen="60">xx</value> </item> <item type="Optional"> <vectorID>0001</vectorID> <name>Initials</name> <value minlen="0" maxlen="20">xx</value> </item> <item type="Optional"> <vectorID>0001</vectorID> <name>dnQualifier</name> <value minlen="0" maxlen="60">xx</value> </item> </new_key_and_self_signed_cert_info> <new_key_and_cert_sign_req_info> <item type="Required"> <vectorID>0001</vectorID> <name>countryName</name> <value minlen="2" maxlen="2">xx</value> </item> <item type="Required"> <vectorID>0001</vectorID> <name>stateOrProvinceName</name> <value minlen="1" maxlen="30">xx</value> </item> <item type="Required"> <vectorID>0001</vectorID> <name>localityName</name> <value minlen="1" maxlen="50">xx</value> </item> <item type="Required"> <vectorID>0001</vectorID> <name>organizationName</name> <value minlen="1" maxlen="60">xx</value> </item> <item type="Required"> <vectorID>0001</vectorID> <name>commonName</name> <value minlen="1" maxlen="60">xx</value> </item> <item type="Optional"> <vectorID>0001</vectorID> <name>Name</name> <value minlen="1" maxlen="60">xx</value> </item> <item type="Optional"> <vectorID>0001</vectorID> <name>emailAddress</name> <value minlen="1" maxlen="60">xx</value> </item> <item type="Optional"> <vectorID>0001</vectorID> <name>organizationalUnitName</name> <value minlen="0" maxlen="60">xx</value> </item> <item type="Optional"> <vectorID>0001</vectorID> <name>Surname</name> <value minlen="0" maxlen="60">xx</value> </item> <item type="Optional"> <vectorID>0001</vectorID> <name>givenName</name> <value minlen="0" maxlen="60">xx</value> </item> <item type="Optional"> <vectorID>0001</vectorID> </item> <item type="Optional"> <vectorID>0001</vectorID> <name>Initials</name> <value minlen="0" maxlen="20">xx</value> </item> <item type="Optional"> <vectorID>0001</vectorID> <name>dnQualifier</name> <value minlen="0" maxlen="60">xx</value> </item> <item type="Optional"> <vectorID>0002</vectorID> <name>challengePassword</name> <value minlen="6" maxlen="30">xx</value> </item> <item type="Optional"> <vectorID>0002</vectorID> <name>unstructuredName</name> <value minlen="1" maxlen="60">xx</value> </item> </new_key_and_cert_sign_req_info> </asu>
Item | Description |
---|---|
Country name | The two-letter ISO abbreviation for your country. |
State or Province name | The state or province where your organization is located. Do not abbreviate. |
Locality name | The city where your organization is located. |
Organization name | The exact legal name of your organization. Do not abbreviate. |
Common name | A fully qualified domain name that resolves to the SSL VPN device. For example, to secure the URL https://ssl.yourdomain.com, the common name of the certificate sign request should be ssl.yourdomain.com. |
Name | Optional field for entering a contact name. |
Email address | Optional field for entering a contact email address. |
Organization unit name | Optional field for the name of the unit in your organization. |
Surname | Optional field for entering the surname of a contact person. |
givenName | Optional field for entering the given name of a contact. |
Initials | Optional field for entering the initials of a contact name. |
dnQualifier | Optional field for entering the domain name qualifier. |
Challenge password | Optional attribute. If you specify a challenge password in the certificate sign request, you must know the challenge password if you want to revoke the certificate later. |
unstructuredName | Optional field for entering the unstructured name for a contact. |
asu generate setting xml_file [-nx] [connect_options]where
setting is the name of a valid Remote Supervisor Adapter, Remote Supervisor Adapter II, or IMM setting, and xml_file is the name of an XML file that contains valid information.
asu generate setting [-nx] [connect_options]because the xml_file is not required for generating an SSH key.
The output of the generate command is a message that indicates that the Remote Supervisor Adapter, Remote Supervisor Adapter II, or IMM has completed the command successfully.
The generate command for a self-signed certificate and corresponding output are shown in the following example.
Command
asu generate RSA_Generate_SSL_Client_Certificate asu.xml
Certificate was generated successfully!
asu generate IMM.SSL_HTTPS_SERVER_CERT asu.xml
Certificate was generated successfully!
The generate command for a certificate sign request certificate and corresponding output are shown in the following example:
asu generate IMM.SSL_HTTPS_SERVER_CSR asu.xml
Certificate was generated successfully!
The generate command for SSH Key and corresponding output are shown in the following example:
asu generate IMM.SSH_SERVER_KEY
Certificate was generated successfully!