This document describes the Certificate Management software.
It has the following sections.
Overview
How Certificate Management Works
About Certificates
Interface to IKE
Entering Certificate Management Commands
Using the Certificate Management Software
Certificate Management Commands
Overview
The Certificate Management module handles all the certificate requirements for IKE and IPSec. A certificate binds a person or entity to a public key using a digital signature. Certificates provide confidence in the public key.
IKE and IPSec use certificates only to authenticate remote peers. IKE does not use the public keys in the certificates for Diffie-Hellman calculations.
Terminology
This document uses the following terminology.
Compatibility and RFCs Supported
The Certificate Management feature supports X.509 v3 certificates for signatures.
Certificate Management implements the following RFCs:
RFC 2314, PKCS #10: Certification Request Syntax Version 1.5
RFC 2315, PKCS #7: Cryptographic Message Syntax Version 1.5
Here is a brief overview of the certificate management process.
Root CA certificates. The root CA provides a self-signed root CA certificate. The root CA certificate validates the CA's own certificates, EE certificates that the CA issues, and CA certificates for each subordinate CA below it in the hierarchy of CAs.
The certificate management software displays RootCA as the owner of root CA certificates.
Subordinate CA certificates. If you are using multiple CAs, you will have subordinate CAs that provide CA certificates. Subordinate CA certificates validate EE certificates that the subordinate CA issues, and CA certificates for each subordinate CA below it in the hierarchy of CAs
The certificate management software displays SubCA as the owner of subordinate CA certificates.

certificate request information, which consists of the requestor's name, public key, and a set of attributes that identify those using the certificate.
a signature algorithm identifier.
a digital signature on the certificate request information. This implementation uses DSA/SHA1, RSA/MD5, or RSA/SHA1 to sign the request.
The list crl_list command shows the expiration date and time of a CRL, and the date and time when the next update will be available. You can also view information regarding the expiration of a certificate using the list certificate command.
Because you need to manually update CRLs, the Certificate Management module generates ELS messages every hour to remind you when a CRL has expired, and that you should load the next CRL. When you display the certificate management prompts, the router checks for expired CRLs and displays the following message if one exists.
You will experience a slight delay when you display the certificate prompts while the router checks CRLs.CRL 'mycrl' has expired.
Setting up IKE to Match the Peer ID to the SubAltName in the Peer's Certificate
Config>PROTOCOL ip
Internet protocol user configuration
IP config>ipsecIPSec Config>
IPSec Config>set peer win98 match_id = On
IPSec Config>set peer win98 peer_id_type = email_(User_Fully_Qualified_Domain_Name)
IPSec Config>set peer win98 peer_id_value ascii_for_peer_id = abc@nxnetworks.com
Config>PROTOCOL ip
Internet protocol user configuration
IP config>ipsecIPSec Config>
IPSec Config> set peer win98 send_cert_id = on
Certificate database in use. Please try again.
CertMgmt Config>), enter certificates at the Config> prompt.
To display the Certificate Management monitoring prompt (CertMgmt>), enter certificates at the Monitor> prompt.
add a user that has administrative access to the router software. To do this, enter add user at the Config> prompt.
set the time on the router.
Config> prompt.
To set the time, enter the following commands at the Config> prompt.To set the time of day, enter time set.
To set the offset from GMT, enter time offset.
Boot config> prompt. You can then use the router's tftp put and tftp get commands. Config>boot
TFTP Boot/dump configuration
Boot config>tftp get
Enter local filename [CONFIG]?
Enter remote host's IP address or name in host table?
Note: You must use the same name for the CA as you use for the certificate request and the CRL that you use with the CA.
CertMgmt Config> add ca entr
You can view the contents of the router's IBD file system. In this example, cert4entr in bank 25 is the name of the CA certificate.
Config>boot
Boot config>list ibd
Banks 1-24 contain load "gtx.ldc" which uses 1508186 bytes
Loaded using TFTP over IP
Filename gtx.ldc
Host 0.0.0.0
Bank 25 contains load "cert4entr" which uses 1469 bytes
Loaded using TFTP over IP
Filename
Host 170.170.170.170
Bank 26-60 have been erased
Enter the retrieve ca command followed by the CA name and then the CA certificate file name in the router IBD.
CertMgmt Config> retrieve Ca entr cert4entr
You must define at least two of the following fields in a request: name, department, or company. Your CA may require that you include other information in a request. Each CA has a Certificate Policy Statement that specifies what must be in a request.
You also specify how the router encodes the request and the key type it uses to sign the request. See add request for all the options you can use with this command.
CertMgmt Config> add Request entr name = Westboro department = Engineering company = "Nx Networks, Inc." state = MA country = US format = Base-64
At any time in the process you can view the status of a request.
CertMgmt Config> list status entr
Request: entr
Subject: "Westboro", "Engineering","NxNetworks","MA","US"
Key Type/Len: RSA/MD5 / 1024
Format: Base-64
Status: Not submitted
CertMgmt Config> submit request entr manual entr.req
Please wait. This may take a while..............
Certificate Request in IBD/entr.req
Note: When you submit a certificate request with a key type of RSA and a key length of 2048, it can take 20 to 40 minutes before the router completes the calculations necessary to create the certificate request.
The router generates a certificate request and saves it in the router's IBD. You can view the contents of the router's IBD file system.
Config>boot
TFTP Boot/dump configuration
Boot config>list ibd
Banks 1-24 contain load "gtx.rap" which uses 1508186 bytes
Loaded using TFTP over IP
Filename gtx.ldc
Host 0.0.0.0
Bank 25 contains load "entr.req" which uses 1362 bytes
Loaded using TFTP over IP
Filename
Host 0.0.0.0
Banks 26-60 have been erased
Boot config> prompt.
Boot config>tftp put ibd/entr.req 192.168.1.3 /gw/gmd/entr.req
TFTP transfer complete, status: OK
When the CA receives your certificate request, it generates a certificate and sends it to you.
X.509 Base-64 certificates need the following header:
-----BEGIN X509 CERTIFICATE-----
and the following trailer:
-----END X509 CERTIFICATE-----
PKCS7 Base-64 certificates need the following header:
-----BEGIN XPKCS7 CERTIFICATE-----
and the following trailer:
The following is an example of a PKCS Base-64 certificate:-----END PKCS7 CERTIFICATE-----
-----BEGIN PKCS7 CERTIFICATE-----
MIIDRQYJKoZIhvcNAQcCoIIDNjCCAzICAQExADALBgkqhkiG9w0BBwGgggMaMIID FjCCAn+gAwIBAgIEOb6kszANBgkqhkiG9w0BAQUFADA4MQswCQYDVQQGEwJVUzEQ MA4GA1UEChMHRW50cnVzdDEXMBUGA1UECxMOVlBOIEludGVyb3AgUk8wHhcNMDAw OTE5MDAyMTE4WhcNMDMwOTE5MDA1MTE4WjBGMQswCQYDVQQGEwJVUzEQMA4GA1UE ChMHRW50cnVzdDEXMBUGA1UECxMOVlBOIEludGVyb3AgUk8xDDAKBgNVBAMTA0dU WDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAp4gYbuvYRH4dTHp5KKO/q/hU THxGvwyA2JIryFSiKsanuB1cCiS4QVIRJ7ASb+8w6BrUVEgIISwW5gwDADcq984V koJlSwWigcIYGQoPeeh4Zpbj8XKnzLNRcs316AEAByI4y+2OIcJXwt6KCzOjjxLu chPDSzauv9p31zTVWrcCAwEAAaOCAR0wggEZMAsGA1UdDwQEAwIAoDAbBgNVHREE FDASgRBpcD0yMDYuMTc1LjMyLjYyMCsGA1UdEAQkMCKADzIwMDAwOTE5MDAyMTE4 WoEPMjAwMjEwMjUxMjUxMThaMFoGA1UdHwRTMFEwT6BNoEukSTBHMQswCQYDVQQG EwJVUzEQMA4GA1UEChMHRW50cnVzdDEXMBUGA1UECxMOVlBOIEludGVyb3AgUk8x DTALBgNVBAMTBENSTDEwHwYDVR0jBBgwFoAU81ZobtLQaFisJGROZl6aKBPet9Aw HQYDVR0OBBYEFD5ye6IUFRUOXkV1rYp2ovVxNG4VMAkGA1UdEwQCMAAwGQYJKoZI hvZ9B0EABAwwChsEVjUuMAMCBLAwDQYJKoZIhvcNAQEFBQADgYEAdDEbiZG1uJbW K0wl75gl2MM+ldfVaAxPXrmRAX3J2YxZjk6tEL8fFOatMdbOFvbx57ZN0XaVL7ZU jCNB2m4CEB/LlttIdjBT9hwZYUWoxxsDVF+VNilTGc6bWadGQ5ukVfLvvqKTa94TsDQ4W98YBmgjAXW6LbKFqeZTO0H/K0xAA==
-----END PKCS7 CERTIFICATE-----
Boot config> prompt.
Boot config>tftp get ibd/entr.cert 192.168.1.3 /gw/gmd/entr.cert
TFTP transfer complete, status: OKBoot config>list ibd
Banks 1-24 contain load "gtx.rap" which uses 1508186 bytes
Loaded using TFTP over IP
Filename gtx.ldc
Host 0.0.0.0
Bank 25 contains load "entr.req" which uses 1362 bytes
Loaded using TFTP over IP
Filename
Host 0.0.0.0
Bank 26 contains load "entr.cert" which uses 911 bytes
Loaded using TFTP over IP
Banks 27-60 have been erased
In this example, entr is the name of the certificate and entr.cert is the certificate file name in the router's IBD.
CertMgmt Config> retrieve Certificate entr entr.cert
CertMgmt Config> list status entr
Request: entr
Subject: "Westboro", "Engineering", "NXNetworks","MA", "US"
Key Type/Len: RSA/MD5 / 1024
Format: DER
Status: Certificate received for this request
Cert. File: entr.cert
Note: You must use the same name for the CRL as you used for the certificate request and CA that you use with this CRL.
CertMgmt Config> add crl_name entr
Enter the retrieve crl_list command followed by the name of the CRL and then the CRL file name in the router IBD.
CertMgmt Config> retrieve CRL_list entr Oct12crl
Once you send a certificate request to a CA, delete the request from the IBD.
Once you retrieve a certificate from the IBD, delete the certificate from the IBD.
Boot config> prompt. To display this prompt, enter boot at the Config> prompt.Config>boot
TFTP Boot/dump configuration
Boot config>
Boot config>list ibd
Banks 1-24 contain load "gtx.rap" which uses 1508186 bytesLoaded using TFTP over IP
Filename gtx.rap
Host 0.0.0.0
Bank 25 contains load "entr" which uses 1469 bytes
Loaded using TFTP over IP
Filename
Host 170.170.170.170
Bank 26-60 have been erased
Boot config>delete
Loadname or Bank Number:entr
Erasing flash please wait ...
Press Space twice after you type a command to display the available parameters for each command. Enter help for information about using the command line interface.
[C] means the command is available at the CertMgmt Config> prompt.
[M] means the command is available at the CertMgmt> prompt.
Add CA [C] [M]
Adds a Certificate Authority alias name to your configuration, and specifies whether the CA provides manual or automatic certificate enrollment. Currently, OpenROUTE software supports only manual enrollment.
Notes:
Both the local router and the remote IPSec device must use the same certificate authority.
You must assign the same alias name to the CA as you assign to the certificate request and CRL that you use with this CA. To differentiate certificates, the software displays the owner of CA certificates as RootCA or SubCA, and the owner of the router's own certificates as Local.
add ca entr mode = manual
You must assign the same name to the certificate request as you do to the CA certificate and the CRL associated with this certificate. To differentiate certificates, the software displays the owner of CA certificates as RootCA or SubCA, and the owner of the router's own certificates as Local.
The fields name, department, company, state, and country are all optional and you can enter them in any order. However, you must fill in two of either name, department, or company.
While you can submit a certificate request to a CA with just two fields filled in, the CA may not issue a certificate with such limited information.
To use more than a one word name in your request fields, put quotation marks around the name.
add request default
Example:
add request default key_type = dsa/sha1 key_length
The possible key length values depend on the algorithm you selected for the key type. The default key length is 1024.
Syntax: key_length =
add request default key_length = 2048
add request default name = gmd
add request default department = finance
add request default company = "Nx Networks"
add request default state = ma
add request default country = US
| Entry | Description |
|---|---|
| DER | Distinguished Encoding Rules (DER) as defined in X.509. |
| Base-64 | Some CAs call this encoding PEM. This is the default setting. |
Example:
add request default format = Base-64 Add CRL_name [C] [M]
Adds an alias name for a Certificate Revocation List request. After you add the CRL alias name, copy the CRL into the router's IBD and then use the retrieve crl_list command to move the CRL into the Certificate Management software.
add crl_name entr
delete ca entr
delete request default
delete certificate ssh
1 ssh RootCA SSH Communic 1024 DSA Feb 25,2000 Feb 28,2001 0x010E
2 ssh SubCA SSH Communic 1020 DSA Feb 25,2000 Feb 28,2001 0x0115
3 ssh SubCA SSH Communic 1022 DSA Feb 25,2000 Feb 28,2001 0x0116
4 ssh SubCA SSH Communic 1023 DSA Feb 25,2000 Feb 28,2001 0x0117
5 ssh SubCA SSH Communic 1023 DSA Feb 25,2000 Feb 28,2001 0x0118
6 ssh SubCA SSH Communic 1023 DSA Feb 25,2000 Feb 28,2001 0x011F
7 ssh SubCA SSH Communic 1023 DSA Feb 25,2000 Feb 28,2001 0x0120
8 ssh SubCA SSH Communic 1016 DSA Feb 25,2000 Feb 28,2001 0x0121
9 ssh SubCA SSH Communic 1023 DSA Feb 25,2000 Feb 28,2001 0x0122
10 ssh SubCA SSH Communic 1023 DSA Feb 25,2000 Feb 28,2001 0x0123
11 ssh Local SSH Communic 1022 DSA May 5,2000 Jul 1,2000 0x39130FDelete certificate #11? (Yes or [No]): [no]? yes
This command will delete this certificate.
You may also delete the private/public keys.
You will never be able to use this certificate again if the private
public keys are deleted.
Delete this certificate? (Yes or [No]): [no]? yes
Delete the private/public keys? (Yes or [No]): [no]?
delete crl_name verca
delete crl_list verca
1 verca VeriSign, In Oct 25,1999 Nov 1,1999 verisigncrl
Delete CRL #1? (Yes or [No]): [no]? yes
delete keys boston
This command will delete this private/public key pair.
You will never be able to use the certificate for these keys again.
Do you wish to proceed? (Yes or [No]):[no]? yes
list ca
CA Name Root Mode
entr No Manual
list all
CA Name Mode
ssh Manual
Request Subject (name, department, company, state, country)
ssh "Westboro", "Engineering", "Nxnetworks","MA", "US"
Num Cert Owner Issuer Length Type Valid From Valid To Serial Number
1 ssh RootCA SSH Communic 1024 DSA Feb 25,2000 Feb 28,2001 0x010E
2 ssh SubCA SSH Communic 1020 DSA Feb 25,2000 Feb 28,2001 0x0115
3 ssh SubCA SSH Communic 1022 DSA Feb 25,2000 Feb 28,2001 0x0116
Key Length Type Public Key Fingerprint
ssh 1024 DSA E08EB76BE4381CB72C7066649EB9A968
CRL Issuer Valid From Valid To Filename
ssh No CRL
CRL Name IBD Filename
jakcrl2 NOT CONFIGURED
list request
Request Subject (name, department, company, state, country)
hq "Westboro", "Engineering", "NxNetworks","MA", "US"
list certificate
Num Cert Owner Issuer Length Type Valid From Valid To Serial Number
1 ssh RootCA SSH Communic 1024 DSA Feb 25,2000 Feb 28,2001 0x010E
2 ssh SubCA SSH Communic 1020 DSA Feb 25,2000 Feb 28,2001 0x0115
3 ssh SubCA SSH Communic 1022 DSA Feb 25,2000 Feb 28,2001 0x0116
4 ssh SubCA SSH Communic 1023 DSA Feb 25,2000 Feb 28,2001 0x0117
5 ssh SubCA SSH Communic 1023 DSA Feb 25,2000 Feb 28,2001 0x0118
6 ssh SubCA SSH Communic 1023 DSA Feb 25,2000 Feb 28,2001 0x011F
7 ssh SubCA SSH Communic 1023 DSA Feb 25,2000 Feb 28,2001 0x0120
8 ssh SubCA SSH Communic 1016 DSA Feb 25,2000 Feb 28,2001 0x0121
9 ssh SubCA SSH Communic 1023 DSA Feb 25,2000 Feb 28,2001 0x0122
10 ssh SubCA SSH Communic 1023 DSA Feb 25,2000 Feb 28,2001 0x0123
11 ssh Local SSH Communic 1022 DSA May 5,2000 Jul 1,2000 0x3913087
crl_list
Lists information about retrieved CRLs.
Example: list crl_list
Name Issuer Valid From Valid To
hq-CRL hq-ca July 7, 2000 1200 July 7, 2001 1300
list crl_name
Num CRL Name IBD Filename
1 ca1root sshca1root.crl
list status hq
Request: hq
Subject: "Westboro", "Engineering", "NxNetworks","MA", "US"
Key Type/Len: RSA/MD5 / 1024
Format: Base-64
Status: Not submitted
list keys
Key Length Type Public Key Fingerprint
entrust 1024 RSA 0C7A83492424B3C2D25FCD4547EFFA75
veris 1024 RSA 2D670B7DB185317C8D767894719A83C0
verisub 1024 RSA 1D18492086C1569956498DD8FA9A4BF3
rsa 1024 RSA 5BC17F267C5725F133FD5E78F88FE0D2
micro 1024 RSA 7338FF430F6833AC1E2547D8F2D6AED9
xcert 1024 RSA 3188C904F9E2E75F4C74763E908A294E
ssh 1024 DSA E08EB76BE4381CB72C7066649EB9A968
ent2787 1024 RSA 6386871CDEE74CA888A5D1450D9BC669
ssh2787 1024 RSA E5DD4166F8C60C0ACAC13A20EF7B7C12
list validity
Num Cert Owner Issuer Valid From Valid To
1 entrust RootCA Entrust Sep 12,2000 21:14:28 Sep 12,2020 21:44:28
2 entrust Local Entrust Sep 19,2000 00:21:18 Sep 19,2003 00:51:18
1 rsa RootCA RSA Sep 17,2000 00:00:00 Sep 16,2005 23:59:59
2 rsa Local RSA Sep 19,2000 00:00:00 Sep 19,2001 23:59:59
1 ssh RootCA SSH Communic Jun 30,2000 13:59:29 Feb 28,2001 11:59:59
2 ssh Local SSH Communic Sep 26,2000 00:00:00 Nov 1,2000 00:00:00
1 veris RootCA For VeriSign Oct 10,1998 00:00:00 Oct 10,2002 23:59:59
1 verisub RootCA For VeriSign Oct 10,1998 00:00:00 Oct 10,2002 23:59:59
2 verisub SubCA For VeriSign Oct 10,1998 00:00:00 Sep 10,2002 23:59:59
3 verisub Local For VeriSign Sep 18,2000 00:00:00 Oct 2,2000 23:59:59
list subject_alternate_name
Num Cert Owner Issuer Subject-alternate-name
1 entrust RootCA Entrust No subject-alternate-name present
2 entrust Local Entrust ip=206.175.32.62
1 micro RootCA Interop Test No subject-alternate-name present
1 rsa RootCA RSA No subject-alternate-name present
2 rsa Local RSA aol.com
xyz@aol.com
1 ssh RootCA SSH Communic No subject-alternate-name present
2 ssh Local SSH Communic http://www.nxnetworks.com
abc@nxnetworks.com
nxnetworks.com
1 veris RootCA For VeriSign No subject-alternate-name present
2 veris Local For VeriSign aol.com
gdeplanche@aol.com
1 verisub RootCA For VeriSign No subject-alternate-name present
2 verisub SubCA For VeriSign No subject-alternate-name present
3 verisub Local For VeriSign aol.com
xyz@aol.com
When you receive a CA certificate from the CA, you copy the certificate to the router's IBD and then use this command to retrieve the certificate. For the complete process, see Putting CA Certificates Into the Router.
Upon retrieving the certificate, you can view it with the list certificates command. When you enter the retrieve ca command, you include the name of the CA you assigned with the add ca command followed by the name of the CA certificate file in the IBD. Syntax: retrieve ca
retrieve CA entr entcacert2
When you enter the retrieve certificate command, you include the name of the certificate you assigned with the add request command followed by the name of the certificate file in the IBD. Syntax: retrieve certificate
retrieve certificate default entcertif
Validating certificate. Please wait...
retrieve crl_list hqCRL hqCRL23
set ca hq-ca mode = manual
Syntax: set request alias name
Example:set request default format = Base-64
CAUTION:
Make sure you do not submit the same request more than once. If you do, the router generates a new pair of public/private keys. This means that when the router receives a certificate that was generated from the request, the keys will not match and the router will reject the certificate.
When the router creates the request, it generates a public/private key pair. The private key never leaves the router. The public key is included in the certificate request, which is sent to the CA.
Notes:
When you submit a certificate request with a key type of RSA and a key length of 2048, it can take 20 to 40 minutes before the router completes the calculations necessary to create the certificate request.
Once you submit a certificate request, you can delete the request from your configuration. We recommend that you back up certificate requests and certificates on a local PC before you delete them from the IBD. See Using FTP or TFTP for information on how to move certificate requests and certificates to or from the router.
Currently, OpenROUTE software supports only manual certificate requests.
submit Request default manual hq.req
Please wait. This may take a while..............
Certificate Request in IBD/hq.req