Table Of Contents
Key Rollover for Certificate Renewal
Prerequisites for Key Rollover for Certificate Renewal
Restrictions for Key Rollover for Certificate Renewal
Information About Key Rollover for Certificate Renewal
Certificate Autoenrollment with Key Rollover
Manual Certificate Enrollment with Key Rollover
How to Configure Key Rollover for Certificate Renewal
Configuring Certificate Autoenrollment with Key Rollover
Configuring Manual Certificate Enrollment with Key Rollover
Configuration Examples for Key Rollover for Certificate Renewal
Configuring Certificate Autoenrollment with Key Rollover: Example
Configuring Manual Certificate Enrollment with Key Rollover: Example
Key Rollover for Certificate Renewal
Automatic certificate enrollment was introduced to allow the router to automatically request a certificate from the certification authority (CA) server. By default, the automatic enrollment feature requests a new certificate when the old certificate expires. Connectivity can be lost while the request is being serviced because the existing certificate and key pairs are deleted immediately after the new key is generated. The new key does not have a certificate to match it until the process is complete, and incoming Internet Key Exchange (IKE) connections cannot be established until the new certificate is issued. The Key Rollover for Certificate Renewal feature allows the certificate renewal request to be made before the certificate expires and retains the old key and certificate until the new certificate is available.
Feature History for the Key Rollover for Certificate Renewal Feature
Release Modification12.3(7)T
This feature was introduced.
12.2(18)SXE
This feature was integrated into Cisco IOS Release 12.2(18)SXE.
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Prerequisites for Key Rollover for Certificate Renewal
•
Restrictions for Key Rollover for Certificate Renewal
•
Information About Key Rollover for Certificate Renewal
•
How to Configure Key Rollover for Certificate Renewal
•
Configuration Examples for Key Rollover for Certificate Renewal
Prerequisites for Key Rollover for Certificate Renewal
Before implementing the key rollover feature, ensure that your CA permits an automated certificate renewal request before the existing certificate expires.
Restrictions for Key Rollover for Certificate Renewal
Trustpoints configured to generate a new key pair using the regenerate command or the regenerate keyword of the auto-enroll command must not share key pairs with other trustpoints. To give each trustpoint its own key pair, use the rsakeypair command in ca-trustpoint configuration mode. Sharing key pairs among regenerating trustpoints is not supported and will cause loss of service on some of the trustpoints because of key and certificate mismatch.
Information About Key Rollover for Certificate Renewal
To configure key rollover for certificate renewal, you should understand the following concepts:
•
Certificate Autoenrollment with Key Rollover
•
Manual Certificate Enrollment with Key Rollover
Certificate Autoenrollment with Key Rollover
Certificate autoenrollment allows you to configure your router to automatically request a certificate from the certification authority (CA) that is using the parameters in the configuration. Thus, operator intervention is no longer required at the time the enrollment request is sent to the CA server.
Automatic enrollment is performed on startup for any trustpoint CA that is configured and does not have a valid certificate. When the certificate—which is issued by a trustpoint CA that has been configured for autoenrollment—expires, a new certificate is requested. Although this feature does not provide seamless certificate renewal, it does provide unattended recovery from expiration.
When the key rollover feature is used, a new certificate is requested before the old certificate expires if the CA allows such a request automatically. A new optional renewal percentage parameter is introduced to allow a new certificate to be requested when a specified percentage of the life of the certificate has passed. For example, if the renewal percentage is configured as 90 and the certificate has a lifetime of one year, a new certificate is requested 36.5 days before the old certificate expires.
The regenerate keyword of the auto-enroll command provides seamless key rollover by creating a new key pair with a temporary name and retaining the old certificate and key pair until a new certificate is received from the CA. When the new certificate is received, the old certificate and key pair are discarded and the new key pair is renamed with the name of the original key pair.
Manual Certificate Enrollment with Key Rollover
Key rollover can be used with a manual certificate enrollment request. Using the same method as key rollover with certificate autoenrollment, the regenerate command in ca-trustpoint configuration mode has been introduced to provide seamless key rollover for manual certificate enrollment. A new key pair is created with a temporary name, and the old certificate and key pair are retained until a new certificate is received from the CA. When the new certificate is received, the old certificate and key pair are discarded and the new key pair is renamed with the name of the original key pair. Do not regenerate the keys manually; key rollover will occur when the crypto ca enroll command is issued.
How to Configure Key Rollover for Certificate Renewal
This section contains the following tasks:
•
Configuring Certificate Autoenrollment with Key Rollover (required)
•
Configuring Manual Certificate Enrollment with Key Rollover (optional)
Configuring Certificate Autoenrollment with Key Rollover
Perform this task to configure key rollover with automatic certificate enrollment.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
crypto ca trustpoint name
4.
enrollment url url
5.
subject-name [x.500-name]
6.
ip-address {interface-type interface-number | none}
7.
serial-number [none]
8.
auto-enroll [percent] [regenerate]
9.
password string
10.
rsakeypair key-label [key-size [encryption-key-size]]
11.
exit
12.
crypto ca authenticate name
13.
exit
14.
copy system:running-config nvram:startup-config
DETAILED STEPS
Configuring Manual Certificate Enrollment with Key Rollover
Perform this task to configure key rollover with manual certificate enrollment.
Restrictions
Do not regenerate the keys manually using the crypto key generate command; key rollover will occur when the crypto ca enroll command is issued.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
crypto ca trustpoint name
4.
enrollment url url
5.
subject-name [x.500-name]
6.
ip-address {interface-type interface-number | none}
7.
serial-number [none]
8.
regenerate
9.
password string
10.
rsakeypair key-label [key-size [encryption-key-size]]
11.
exit
12.
crypto ca authenticate name
13.
crypto ca enroll name
14.
exit
DETAILED STEPS
Configuration Examples for Key Rollover for Certificate Renewal
This section contains the following examples:
•
Configuring Certificate Autoenrollment with Key Rollover: Example
•
Configuring Manual Certificate Enrollment with Key Rollover: Example
Configuring Certificate Autoenrollment with Key Rollover: Example
The following example shows how to configure the router to autoenroll with the CA named trustme1 on startup. In this example, the regenerate keyword is issued, so a new key will be generated for the certificate. The renewal percentage is configured as 90 so if the certificate has a lifetime of one year, a new certificate is requested 36.5 days before the old certificate expires. The changes made to the running configuration are saved to the NVRAM startup configuration because autoenrollment will not update NVRAM if the running configuration has been modified but not written to NVRAM.
crypto ca trustpoint trustme1enrollment url http://trustme1.company.com/subject-name OU=Spiral Dept., O=tiedye.comip-address ethernet0serial-number noneauto-enroll 90 regeneratepassword revokemersakeypair trustme1 2048exitcrypto ca authenticate trustme1copy system:running-config nvram:startup-configConfiguring Manual Certificate Enrollment with Key Rollover: Example
The following example shows how to configure key rollover to regenerate new keys with a manual certificate enrollment from the CA named trustme2.
crypto ca trustpoint trustme2enrollment url http://trustme2.company.com/subject-name OU=Spiral Dept., O=tiedye.comip-address ethernet0serial-number noneregeneratepassword revokemersakeypair trustme2 2048exitcrypto ca authenticate trustme2crypto ca enroll trustme2Additional References
The following sections provide references related to key rollover.
Related Documents
Related Topic Document TitleCertificate autoenrollment
Certificate Autoenrollment feature document, Release 12.2(8)T
Enhancements to certificate enrollment
Certificate Enrollment Enhancements feature document, Release 12.2(8)T
Trustpoint commands
Trustpoint CLI feature document, Release 12.2(8)T
Certification authority commands: complete command syntax, command mode, defaults, usage guidelines, and examples
Cisco IOS Security Command Reference, Release 12.3 T
Certification configuration
The chapter "Configuring Certification Authority Interoperability" in the Cisco IOS Security Configuration Guide
Standards
Standards TitleNo new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.
—
MIBs
RFCs
RFCs TitleNo new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature.
—
Technical Assistance
Command Reference
This section documents new and modified commands only.
auto-enroll
To enable certificate autoenrollment, use the auto-enroll command in ca-trustpoint configuration mode. To disable certificate autoenrollment, use the no form of this command.
auto-enroll [percent] [regenerate]
no auto-enroll [percent] [regenerate]
Syntax Description
Defaults
Certificate autoenrollment is not enabled.
Command Modes
Ca-trustpoint configuration
Command History
Release Modification12.2(8)T
This command was introduced.
12.3(7)T
The percent argument was added to support key rollover.
12.2(18)SXE
This command was integrated into Cisco IOS Release 12.2(18)SXE.
Usage Guidelines
Use the auto-enroll command to automatically request a router certificate from the certification authority (CA) that is using the parameters in the configuration. This command will generate a new RSA key only if a new key does not exist with the requested label.
A trustpoint that is configured for certificate autoenrollment will attempt to reenroll when the router certificate expires.
Use the regenerate keyword to provide seamless key rollover for manual certificate enrollment. A new key pair is created with a temporary name, and the old certificate and key pair are retained until a new certificate is received from the CA. When the new certificate is received, the old certificate and key pair are discarded and the new key pair is renamed with the name of the original key pair. Some CAs require a new key for reenrollment to work.
If the key pair being rolled over is exportable, the new key pair will also be exportable. The following comment will appear in the trustpoint configuration to indicate whether the key pair is exportable:
! RSA keypair associated with trustpoint is exportableExamples
The following example shows how to configure the router to autoenroll with the CA named trustme1 on startup. In this example, the regenerate keyword is issued, so a new key will be generated for the certificate. The renewal percentage is configured as 90 so if the certificate has a lifetime of one year, a new certificate is requested 36.5 days before the old certificate expires.
crypto ca trustpoint trustme1enrollment url http://trustme1.company.com/subject-name OU=Spiral Dept., O=tiedye.comip-address ethernet0serial-number noneauto-enroll 90 regeneratepassword revokemersakeypair trustme1 2048exitcrypto ca authenticate trustme1Related Commands
Command Descriptioncrypto ca authenticate
Retrieves the CA certificate and authenticates it.
crypto ca trustpoint
Declares the CA that your router should use.
regenerate
To enable key rollover with manual certificate enrollment, use the regenerate command in ca-trustpoint configuration mode. To disable key rollover, use the no form of this command.
regenerate
no regenerate
Syntax Description
This command has no arguments or keywords.
Defaults
Key rollover is not enabled.
Command Modes
Ca-trustpoint configuration
Command History
Release Modification12.3(7)T
This command was introduced.
12.2(18)SXE
This command was integrated into Cisco IOS Release 12.2(18)SXE.
Usage Guidelines
Use the regenerate command to provide seamless key rollover for manual certificate enrollment. A new key pair is created with a temporary name, and the old certificate and key pair are retained until a new certificate is received from the CA. When the new certificate is received, the old certificate and key pair are discarded and the new key pair is renamed with the name of the original key pair.
If the key pair being rolled over is exportable, the new key pair will also be exportable. The following comment will appear in the trustpoint configuration to indicate whether the key pair is exportable:
! RSA keypair associated with trustpoint is exportableDo not regenerate the keys manually; key rollover will occur when the crypto ca enroll command is issued.
Examples
The following example shows how to configure key rollover to regenerate new keys with a manual certificate enrollment from the CA named trustme2.
crypto ca trustpoint trustme2enrollment url http://trustme2.company.com/subject-name OU=Spiral Dept., O=tiedye.comip-address ethernet0serial-number noneregeneratepassword revokemersakeypair trustme2 2048exitcrypto ca authenticate trustme2crypto ca enroll trustme2Related Commands
Glossary
CA—certification authority. A service responsible for managing certificate requests and issuing certificates to participating IPSec network devices. This service provides centralized key management for the participating devices and is explicitly entrusted by the receiver to validate identities and to create digital certificates.
enrollment—The process of obtaining a new certificate from a CA.
IKE—Internet Key Exchange. A hybrid protocol that implements Oakley key exchange and Skeme key exchange inside the ISAKMP framework. Although IKE can be used with other protocols, its initial implementation is with IPSec. IKE provides authentication of the IPSec peers, negotiates IPSec keys, and negotiates IPSec security associations.
RSA keys—RSA keys come in pairs—one public key and one private key—and are used to sign and encrypt IKE key management messages and are required before you can obtain a certificate for your router.
Note
Refer to Internetworking Terms and Acronyms for terms not included in this glossary.
Copyright © 2005 Cisco Systems, Inc. All rights reserved.


