Mscep.dll | Next

Enrolling for Certificates from a Cisco Router


To enroll for certificates from a Cisco router

Remove all current certificates stored on the router and configure the router for new certificate enrollment

  1. At the routername> prompt, type EN

  2. Type in your password. You are now in "Enable Mode" on the router.

  3. At the routername# prompt, type config t.

  4. At the routername(config)# prompt, type no crypt ca identity ExistingCAIdentityName.

  5. Type y to destroy all certificates.

  6. At the routername(config)# prompt, type crypt ca identity NewCAIdentityName.

  7. At the routername(ca-identity)# prompt, type enrollment mode ra.


  8. note-icon

    Note

    Do not use the query sub-command at routername(ca-identity)# prompt to configure the router.

  9. At the routername(ca-identity)# prompt, type enrollment url http://URLHostName/certsrv/mscep/mscep.dll where URLHostName is the name of the server which hosts the CA's enrollment Web pages (also referred to as Certificate Services Web pages).

  10. If you do not want the router to check the CA's certificate revocation list (CRL), at the routername(ca-identity)# prompt, type crl optional.

  11. At the routername(ca-identity)# prompt, type exit.

  12. At the routername(config)# prompt, type exit.

  13. At the routername# prompt, type write memory.

  14. To confirm that your changes have taken place, at the routername# prompt, type write terminal. The router will display its configuration information. No certificates will appear in the displayed information and you will see the enrollment URL you entered.

Request the CA's Certificate

  1. At the routername# prompt, type config t.

  2. At the routername(config)# prompt, type crypt ca authenticate NewCAIdentityName.

  3. Attributes of CA certificate will be displayed, including the fingerprint of the CA certificate. The "fingerprint" is a series of alphanumeric characters unique to that CA certificate.

    You can confirm that the fingerprint of the CA certificate being presented to the router matches the fingerprint of the authentic CA certificate by connecting to the URL: http://URLHostName/certsrv/mscep/mscep.dll in Internet Explorer. Verify that the fingerprint displayed at this URL matches the fingerprint of the certificate being presented to the router.

    Type Y to accept the CA certificate.

  4. To confirm that you received the CA certificate, at the routername(config)# prompt, type exit.

  5. At the routername# prompt, type show crypt ca certificate. The CA certificate will be displayed on the screen.

Generate a Public and Private Key Pair

  1. At the routername# prompt, type config t.

  2. At the routername(config)# prompt, type crypt key gen rsa.

  3. When you are asked if you want to replace your current keys, type Y.

  4. Enter the number of bits in the modulus (key size). The default is 512.

Enroll for Certificates.

  1. At the routername(config)# prompt, type crypt ca enroll NewCAIdentityName.

  2. You are asked to input a password.

    Using Microsoft® Internet Explorer, retrieve a valid challenge password by connecting to the URL: http://URLHostName/certsrv/mscep/mscep.dll.

    Some notes about this password:

  3. Type Y to include the router serial number in the subject name.

  4. Type Y to include the IP address in the subject name.

  5. Type Y to request the certificate from the CA. The certificate request fingerprint will be displayed and the certificate will be received from the CA.

  6. Type exit to leave config mode.

  7. At the routername# prompt, type show crypt ca certificate to verify that you have certificate(s) for the router. The certificate(s) issued to the router, as well as the CA certificate, will be displayed on the screen.

Notes