Table Of Contents
Query Mode Definition Per Trustpoint
Prerequisites for Query Mode Definition per Trustpoint
Information About Query Mode Definition Per Trustpoint
Backward Compatibility with the crypto ca certificate query Command
Benefits of the Query Mode Definition Per Trustpoint
How to Configure a Query Mode Definition per Trustpoint
Configuring a Trustpoint CA and Initiating Query Mode for Trustpoints
Configuration Examples for Query Mode Definition per Trustpoint
Configuring a Trustpoint and Defining Query Mode Per Trustpoint Example
Query Mode Definition Per Trustpoint
Certificates contain public key information and are signed by Certificate Authority (CA) as proof of identity. Normally, all certificates are stored locally in the router's NVRAM, and each certificate uses a moderate amount of memory. The Query Mode Definition Per Trustpoint feature allows you to define a query for a specific trustpoint so that the certificates associated with that specific trustpoint can be stored on a remote server.
Feature History for Query Mode Definition Per Trustpoint
Release Modification12.3(7)T
This feature was introduced.
12.2(18)SXE
This feature migrated to 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 Query Mode Definition per Trustpoint
•
Information About Query Mode Definition Per Trustpoint
•
How to Configure a Query Mode Definition per Trustpoint
•
Configuration Examples for Query Mode Definition per Trustpoint
Prerequisites for Query Mode Definition per Trustpoint
To initiate the query mode you must first configure CA trustpoints using the crypto ca trustpoint command.
Certificate Authority might support Query Mode through either Cisco's Simple Certificate Enrollment Protocol (SCEP) or Lightweight Directory Access Protocol (LDAP). Contact your CA administrator about this information.
Information About Query Mode Definition Per Trustpoint
Normally, certain certificates are stored locally in the router's NVRAM, and each certificate uses a moderate amount of memory. To save NVRAM space, you can use this command to prevent certificates from being stored locally; instead, they are retrieved from a remote server, such as a CA or LDAP server, during startup. This will save NVRAM space but could result in a slight performance impact.
Certificates associated with a specified truspoint will not be written into NVRAM and the certificate query will be attempted during the next reload of the router.
Backward Compatibility with the crypto ca certificate query Command
When the global command crypto ca certificate query command is used, the query certificate will be added to all truspoints on the router. When the no crypto ca certificate query command is used, any previous query certificate configuration will be removed from all trustpoints and any query in progress will be halted and the feature disabled.
Benefits of the Query Mode Definition Per Trustpoint
Especially useful for environments where multiple trustpoints are configured on a router, this feature allows you more control over use of the trustpoint. Query mode can be activated on specific trustpoints rather than on all of the trustpoints on a router.
How to Configure a Query Mode Definition per Trustpoint
This section contains instructions for configuring query mode definitions. It contains the following tasks:
•
Configuring a Trustpoint CA and Initiating Query Mode for Trustpoints
Configuring a Trustpoint CA and Initiating Query Mode for Trustpoints
To declare the CA that your router should use and specify characteristics for the trustpoint CA, use the following commands beginning in global configuration mode:
Summary Steps
1.
enable
2.
config t
3.
crypto ca trustpoint name
4.
enrollment [[mode ra]|[retry period minutes]|[retry count number]| [url url]]
5.
enrollment http-proxy host-name port-num
6.
crl query url
7.
default command-name
8.
query certificate
9.
exit
Verifying a Trustpoint CA
To verify information about your certificate, the certificate of the CA, and registration authority (RA) certificates, use the show crypto ca certificates EXEC command.
For Query Mode to operate correctly during the next reload, the certificates need to be associated with the trustpoint. Use the show crypto ca certificates command to verify that each of the trustpoints has the needed certificates before storing the configuration and reloading the router.
Configuration Examples for Query Mode Definition per Trustpoint
The following example shows how to configure a trustpoint and initiate query mode.
•
Configuring a Trustpoint and Defining Query Mode Per Trustpoint Example
Configuring a Trustpoint and Defining Query Mode Per Trustpoint Example
When you use the query certificate command, the certificates associated with the specified trustpoint will not be written into NVRAM. The query will be attempted during the next reload of the router.
In this example three trustpoints are configured:trustpoint1, trustpoint2, trustpoint3. The ca-server1 supports query mode through LDAP and stores certificates on ldap-server1. The ca-server2 supports Query Mode through SCEP. The certificates associated with trustpoint3 are stored locally in the NVRAM.
crypto ca trustpoint trustpoint1enrollment url http://ca-server1crl query ldap://ldap-server1query certificateexitcrypto ca trustpoint trustpoint2enrollment url http://ca-server2query certificateexitcrypto ca trustpoint trustpoint3enrollment url http://ca-server3exitIf you use the show startup config command to look at the startup configuration, you can see that the trustpoint1 and trustpoint2 certificates will not be stored in NVRAM. Instead, they will be retrieved from the CA servers each time the router boots. Compare the displays that follow:
Query Mode Initiated
crypto ca certificate chain trustpoint1certificate 3869 querydistinguished-name30463112 30100603 55040A13 09636973 636F2E63 6F6D3130 300F0603 5504051308313536 31373439 30301D06 092A8648 86F70D01 09021610 73747572 6E732E636973636F 2E636F6Dquitcertificate ca 01 queryfingerprint C21514AC1281594609F635EDFBB6CF31distinguished-name304E310B 30090603 55040613 02555331 12301006 0355040A 13096369 73636F2E636F6D31 0C300A06 0355040B 1303706B 69311D30 1B060355 04031314 6E7363612D723120 43657274 204D616E 61676572quitcrypto ca certificate chain trustpoint2certificate 5636499F0000000007CB querycertificate 56363CFD0000000007CA querycertificate ca 1244325DE0369880465F977A18F61CA8 queryfingerprint 84E470A238176CB1AA0476B9C0B4F478Certificates Stored in NVRAM
crypto ca certificate chain trustpoint3certificate 34AD nvram:nsca-r1CertM#33AD.cercertificate 34AC nvram:nsca-r1CertM#33AC.cercertificate ca 01 nvram:nsca-r1CertM#7201CA.cerAdditional References
The following sections provide references related to Query Mode Definition per Trustpoint.
Related Documents
Standards
MIBs
MIBs MIBs LinkNone
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:
RFCs
Technical Assistance
Command Reference
This section documents the following new commands. All other commands used with this feature are documented in the Cisco IOS Release 12.3(7)T and 12.3 command reference publications.
query certificate
To configure query certificates on a per-trustpoint basis, use the query certificate command in Ca-trustpoint configuration mode. To disable creation of query certificates per trustpoint, use the no form of this command.
query certificate
[no] query certificate
Syntax Description
Defaults
Query certificates are disabled. Certificates are stored in NVRAM.
Command Modes
Ca-trustpoint configuration
Command History
Release Modification12.3(7)T
This command was introduced.
12.2(18)SXE
This command was incorporated into Relese 12.2(18)SXE.
Usage Guidelines
Normally, certain certificates are stored locally in the router's NVRAM, and each certificate uses a moderate amount of memory. To save NVRAM space, you can use this command to prevent certificates from being stored locally; instead, they are retrieved from a remote server, such as a Certificate Authority (CA) or Lightweight Directory Access Protocol (LDAP) server, during startup.
Before you can configure this command, you must enable the crypto ca trustpoint command, which puts you in ca-trustpoint configuration mode.
Using the query certificate Command with a Specific Trustpoint
When the query certificate command is used, certificates associated with the specified trustpoint will not be written into NVRAM and the certificate query will be attempted during the next reload of the router.
Applying the Query Mode Globally
When the global command crypto ca certificate query command is used, the query certificate will be added to all trustpoints on the router. When the no crypto ca certificate query command is used, any previously query certificate configuration will be removed from all trustpoints and any query in progress will be halted and the feature disabled.
Turning of Query Mode Already In-progress
During router startup, a one-minute timer will be set to trigger certificate query. You can use the show crypto ca timers command to display how much time is left before Query Mode starts. If the query attempt fails, the one-minute timer will be reset to trigger the next try. If you want to turn off the next query attempt, enter the no query certificate command.
Examples
The following example shows how to configure a trustpoint and initiate LDAP query mode for certificate authority:
crypto ca trustpoint trustpoint1enrollment url http://trustpoint1crl query ldap://trustpoint1query certificateexitRelated Commands
