Table Of Contents
PKI Integration with AAA Server
Prerequisites for PKI Integration with AAA Server
Information About PKI Integration with AAA Server
PKI Integration with AAA Server Overview
PKI Integration with AAA Server Using RADIUS or TACACS+
How to Configure PKI Integration with AAA Server
Configuring PKI Integration with an AAA Server
Troubleshooting PKI Integration with AAA Server
Configuration Examples for PKI Integration with AAA Server
Configuring PKI Integration with an AAA Server Example
Appendix A: Adding a PKI Service to a Cisco Secure ACS 3.2 AAA Server
Adding the PKI Service As a New TACACS Service
Creating a Device Group for Authorized VPN Routers
Creating a Username to Match the FQDN of the Router
Disabling Authorization for an IPSec Peer
Appendix B: Additional PKI AAA Integration with AAA Server Examples
Debug of a Successful PKI AAA Authorization: Example
Debugs of a Failed PKI AAA Authorization: Example
PKI Integration with AAA Server
The PKI Integration with AAA Server feature provides additional scalability for authorization by generating an authentication, authorization, and accounting (AAA) username from the certificate presented by the peer. An AAA server is queried to determine whether the certificate is authorized for use by the internal component. The authorization is indicated by a component-specified label that must be present in the attribute-value (AV) pair for the user.
Feature Specifications for the PKI Integration with AAA Server Feature
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 PKI Integration with AAA Server
•
Information About PKI Integration with AAA Server
•
How to Configure PKI Integration with AAA Server
•
Configuration Examples for PKI Integration with AAA Server
•
Appendix A: Adding a PKI Service to a Cisco Secure ACS 3.2 AAA Server
•
Appendix B: Additional PKI AAA Integration with AAA Server Examples
Prerequisites for PKI Integration with AAA Server
•
AAA integration is part of the public key infrastructure (PKI) subsystem. The PKI system requires the crypto subsystem. For information about configuring a PKI, refer to the following document:
–
Certification Authority Interoperability Commands
•
You must understand how to configure AAA authorization lists. For information about configuring an AAA authorization list, refer to the following chapters:
–
The chapters "AAA Overview" and "Configuring Authorization" in the Cisco IOS Security Configuration Guide
Information About PKI Integration with AAA Server
To configure the PKI Integration with AAA Server feature, you must understand the following concepts:
•
PKI Integration with AAA Server Overview
•
PKI Integration with AAA Server Using RADIUS or TACACS+
PKI Authorization
PKI authentication does not provide authorization. Current solutions for authorization are specific to the router that is being configured although a centrally managed solution is often required.
There is not a clean mechanism by which certificates are defined as authorized for particular tasks and not for others. This authorization information can be captured in the certificate itself if the application is aware of the certificate-based authorization information. But this solution does not provide a simple mechanism for real-time updates to the authorization information and forces each application to be aware of the specific authorization information embedded in the certificate.
When the access control list (ACL) mechanism is implemented as part of the trustpoint authentication, the application is no longer responsible for determining this authorization information, and it is no longer possible to specify for which application the certificate is authorized. In some cases, the ACL on the router gets so large that it cannot be managed. Additionally, it is beneficial to retrieve ACL indications from an external server.
Current solutions to the real-time authentication problem involve specifying a new protocol and building a new server (with associated tasks, such as management and data distribution).
PKI Integration with AAA Server Overview
The PKI Integration with AAA Server feature provides an alternative online certificate status solution that leverages the existing AAA infrastructure. Certificates can be listed in the AAA database with appropriate levels of authorization. For components that do not explicitly support PKI-AAA, a default label of "all" from the AAA server provides authorization. Likewise, a label of "none" from the AAA database indicates that the specified certificate is not valid. (The absence of any application label is equivalent, but "none" is included for completeness and clarity). If the application component does support PKI-AAA, the component may be specified directly; for example, the application component could be "ipsec," "ssl," or "osp." (ipsec=IP Security, ssl=Secure Sockets Layer, and osp=Open Settlement Protocol.)
Note
•
Currently, no application component supports specification of the application label.
•
There may be a time delay when accessing the AAA server. If the AAA server is not available, the authorization fails.
New Attribute-Value Pairs
The following AV pairs have been added (values shown are possible values). The AV pairs in the peer certificate must exactly match the AV pairs that are in the AAA database. If they do not match, the peer certificate is not authorized.
PKI Integration with AAA Server Using RADIUS or TACACS+
The PKI Integration with AAA Server feature works with either the RADIUS or TACACS+ protocol.
If the RADIUS protocol is used, the password that is configured for the username in the AAA server should be set to "cisco." When the TACACS protocol is used, the password that is configured for the username in the AAA server is irrelevant because TACACS supports authorization without requiring authentication (the password is used for authentication).
When you are configuring the AAA server for the PKI integration, you must set the RADIUS or TACACS attributes that are required for authentication.
In addition, if you are using TACACS, you must add a PKI service to the AAA server. The custom attribute "cert-application=all" is added under the PKI service for the particular user or usergroup to authorize the specific username. (See the section Appendix A: Adding a PKI Service to a Cisco Secure ACS 3.2 AAA Server.)
How to Configure PKI Integration with AAA Server
This section contains the following procedures:
•
Configuring PKI Integration with an AAA Server
•
Troubleshooting PKI Integration with AAA Server
Configuring PKI Integration with an AAA Server
Perform this task to specify which fields within a certificate should be used to build the AAA database username.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
aaa authorization {network} {listname}
4.
aaa new-model
5.
crypto ca trustpoint name
6.
enrollment url url
7.
authorization list {listname}
8.
authorization username {subjectname subjectname}
DETAILED STEPS
Troubleshooting PKI Integration with AAA Server
Perform this task to verify your PKI integration with an AAA server.
SUMMARY STEPS
1.
enable
2.
debug crypto pki transactions
DETAILED STEPS
Examples
The following sample outputs for the debug crypto pki transactions command show a successful PKI integration with AAA server exchange and a failed PKI integration with AAA server exchange:
Successful Exchange
Router# debug crypto pki transactionsApr 22 23:15:03.695: CRYPTO_PKI: Found a issuer matchApr 22 23:15:03.955: CRYPTO_PKI: cert revocation status unknown.Apr 22 23:15:03.955: CRYPTO_PKI: Certificate validated withoutrevocation checkEach line that shows "CRYPTO_PKI_AAA" indicates the state of the AAA authorization checks. Each of the AAA AV pairs is indicated, and then the results of the authorization check are shown.
Apr 22 23:15:04.019: CRYPTO_PKI_AAA: checking AAA authorization(ipsecca_script_aaalist, PKIAAA-L, <all>)Apr 22 23:15:04.503: CRYPTO_PKI_AAA: reply attribute ("cert-application"= "all")Apr 22 23:15:04.503: CRYPTO_PKI_AAA: reply attribute ("cert-trustpoint"= "yni-u10")Apr 22 23:15:04.503: CRYPTO_PKI_AAA: reply attribute ("cert-serial" ="15DE")Apr 22 23:15:04.503: CRYPTO_PKI_AAA: authorization passedApr 22 23:12:30.327: CRYPTO_PKI: Found a issuer matchFailed Exchange
Router# debug crypto pki transactionsApr 22 23:11:13.703: CRYPTO_PKI_AAA: checking AAA authorization =Apr 22 23:11:14.203: CRYPTO_PKI_AAA: reply attribute ("cert-application"=Apr 22 23:11:14.203: CRYPTO_PKI_AAA: reply attribute ("cert-trustpoint"=Apr 22 23:11:14.203: CRYPTO_PKI_AAA: reply attribute ("cert-serial" =3D=Apr 22 23:11:14.203: CRYPTO_PKI_AAA: reply attribute =Apr 22 23:11:14.203: CRYPTO_PKI_AAA: parsed cert-lifetime-end as: 21:30=Apr 22 23:11:14.203: CRYPTO_PKI_AAA: timezone specific extended =Apr 22 23:11:14.203: CRYPTO_PKI_AAA: cert-lifetime-end is expiredApr 22 23:11:14.203: CRYPTO_PKI_AAA: cert-lifetime-end check failed.Apr 22 23:11:14.203: CRYPTO_PKI_AAA: authorization failedIn the above failed exchange, the certificate has expired.
Configuration Examples for PKI Integration with AAA Server
This section includes the following example:
•
Configuring PKI Integration with an AAA Server Example
Configuring PKI Integration with an AAA Server Example
The following example shows that the AAA authorization list "maxaaa" is specified:
Router (config)# aaa authorization network maxaaa group tacac+aaa new-modelcrypto ca trustpoint mscaenrollment url http://caserver.mycompany.comauthorization list maxaaaauthorization username subjectname serialnumberWhere to Go Next
You may want to configure solutions that use PKI as the authentication or authorization mechanism, such as IP security (IPSec) Virtual Private Network (VPN) accounting, Open Settlements Protocol (OSP), and Secure Sockets Layer (SSL).
For more information about configuring IPSec VPN accounting, refer to the following document or to Cisco.com for more documents about IPSec VPN accounting:
•
IPSec VPN Accounting
For more information about Open Settlement Protocol (OSP) and Secure Sockets Layer (SSL), refer to the following documents, respectively, and to Cisco.com:
•
Open Settlements Protocol (OSP) Clearinghouse Solution
•
SSL: Introduction to Secure Sockets Layer
Additional References
For additional information related to the PKI Integration with AAA Server feature, refer to the following references:
Related Documents
Standards
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 commands. All other commands used with this feature are documented in the Cisco IOS Release Release 12.3 command reference publications.
•
authorization list
•
authorization username
authorization list
To specify the authentication, authorization, and accounting (AAA) authorization list, use the authorization list command in global configuration mode. To disable the authorization list, use the no form of this command.
authorization list {listname}
no authorization list {listname}
Syntax Description
Defaults
If the authorization list command is not configured, an authorization list is not configured.
Command Modes
Global configuration
Command History
Usage Guidelines
Use the authorization list command to specify an AAA authorization list. For components that do not support specifying the application label, a default label of "any" from the AAA server will provide authorization. Likewise, a label of "none" from the AAA database indicates that the specified certificate is not valid. (The absence of any application label is equivalent to a label of "none," but "none" is included for completeness and clarity.)
Examples
The following example shows that the AAA authorization list "maxaaa" is specified:
Router (config)# aaa authorization network maxaaa group tacac+aaa new-modelcrypto ca trustpoint mscaenrollment url http://caserver.mycompany.comauthorization list maxaaaauthorization username subjectname serialnumberRelated Commands
Command Descriptionauthorization username
Specifies the parameters for the different certificate fields that are used to build the AAA username.
authorization username
To specify the parameters for the different certificate fields that are used to build the authentication, authorization, and accounting (AAA) username, use the authorization username command in global configuration mode. To disable the parameters, use the no form of this command.
authorization username {subjectname subjectname}
no authorization username {subjectname subjectname}
Syntax Description
Defaults
If this command is not specified, the default username is unstructuredname.
Command Modes
Global configuration
Command History
Examples
The following example shows that the serialnumber field is to be used as the authorization username:
Router (config)# aaa authorization network maxaaa group tacac+aaa new-modelcrypto ca trustpoint mscaenrollment url http://caserver.mycompany.comauthorization list maxaaaauthorization username subjectname serialnumberRelated Commands
Glossary
attribute—Characteristics that an entity possesses. Within this document attributes are usually fields within the certificate, and the values for those attributes are obtained from the certificate after the entity has been authenticated.
authenticate—To prove the identity of an entity using the certificate of that identity and a secret the identity possesses (usually the private key corresponding to the public key in the certificate).
authorize—To determine whether an authenticated entity is allowed to perform a requested action.
certificate—Data structure defined in ISO standard X.509 to associate an entity (machine or human) with the public key of that entity. The certificate contains specific fields, including the name of the entity. The certificate is issued by a Certificate Authority (CA) on behalf of the entity. Common fields within a certificate include the distinguished name (DN) of the entity, the distinguished name of the authority issuing the certificate, and the public key of the entity.
DN—distinguished name. Name based on the ISO X.500 standard. The DN includes subfields that identify (or distinguish) the entity possessing the DN. Common subfields include the country in which the entity resides, the company and organization where the entity works, and the common name of the entity.
Note
Refer to the Internetworking Terms and Acronyms for terms not included in this glossary.
Copyright © 2003-2004 Cisco Systems, Inc. All rights reserved.
Appendix A: Adding a PKI Service to a Cisco Secure ACS 3.2 AAA Server
If you are using TACACS, you must add a PKI service to the Cisco Secure ACS 3.2 AAA server. The following sections explain the process.
•
Adding the PKI Service As a New TACACS Service (Required)
•
Creating a Device Group for Authorized VPN Routers (Required)
•
Creating a Username to Match the FQDN of the Router (Required)
•
Disabling Authorization for an IPSec Peer (Optional)
Adding the PKI Service As a New TACACS Service
To configure Cisco Secure ACS to authorize a router to establish an IPSec VPN with another router, perform the following steps.
Step 1
Click on the Interface Configuration button in the left-hand column of the Cisco Secure ACS screen to obtain the screen.
Step 2
Click on TACACS+ (Cisco IOS) to obtain the screen shown in Figure 1.
Step 3
Click the New Services (Service) check box and enter "pki" as shown in Figure 1. Click the Submit button.
Figure 1 Interface Configuration
Creating a Device Group for Authorized VPN Routers
To create a device group for authorized VPN routers, perform the following steps.
Step 1
Click the Group Setup button on the left pane to get the screen that is shown in Figure 2.
Step 2
Choose a group from the list. If you want to rename the group, click the rename button. (This button is hidden under the pull-down screen in Figure 2.)
Step 3
Select the group to obtain the screen shown in Figure 3
Step 4
In the Jump To: pull-down menu, choose TACACS+ to display the screen shown in Figure 4.
Step 5
Scroll down and select the check boxes for "pki" and "Custom Attributes" that are shown in Figure 5. Add the value "cert-application=all" for the Custom Attribute. Click Submit + Restart. Ensure that you wait for the hourglass to disappear before continuing.
Figure 2 Group Setup - Choose Group
Figure 3 Group Setup - Choose Jump To TACACS+
Figure 4 Group Setup - TACACS+ Settings
Figure 5 Group Setup - TACACS+ Window
Creating a Username to Match the FQDN of the Router
To create a username to match the fully qualified domain name (FQDN) of the router, perform the following steps.
Step 1
Click the User Setup button in the left pane to see the screen in Figure 6.
Step 2
Enter the username that corresponds to the FQDN of the router. Then click the Add/Edit button to obtain the screen that is shown in Figure 7. (In the example, POD-5.gril.com was entered as the username.)
Step 3
Under User Setup, enter a password in the Password box and confirm that password in the Confirm Password box.
Note
When using TACACS, the above password is not used during PKI authentication, but it is necessary to create the username for Cisco Secure ACS.
Step 4
Scroll down to see the pull-down menu for the Group to which the user is assigned: box, as shown in Figure 8. Choose the group that you edited in Step 2 of the section "Creating a Device Group for Authorized VPN Routers." Click the Submit button.
The router named POD-5.gril.com will now be authorized to establish an IPSec VPN connection to 7200-1.gril.com.
Figure 6 User Setup
Figure 7 User Setup - Username and Password
Figure 8 User Setup - Group
Disabling Authorization for an IPSec Peer
Note
This task is optional. It is not required for enabling authorization.
To deny an IPSec peer from being authorized, move the username to a group that does not contain the TACACS value "cert-application=all." To move the username to another group, use the Cisco Secure ACS User Setup screen.
Note
Disabling the account using the Account Disabled check box in the User Setup screen does not affect authorization. The Account Disabled check box is used only to disable authentication and has no effect on authorization. Because authentication is not invoked during TACACS authorization, the Account Disabled check box will not affect PKI integration with an AAA server.
Appendix B: Additional PKI AAA Integration with AAA Server Examples
This appendix provides configuration examples of PKI AAA authorizations:
•
Router Configuration: Example
•
Debug of a Successful PKI AAA Authorization: Example
•
Debugs of a Failed PKI AAA Authorization: Example
Router Configuration: Example
The following show running configuration command output shows the working configuration of a router that is set up to authorize VPN connections using the PKI Integration with AAA Server feature.
Router# show running configurationBuilding configuration...!version 12.3!hostname 7200-1!aaa new-model!!aaa authentication login default group tacacs+aaa authentication login no_tacacs enableaaa authentication ppp default group tacacs+aaa authorization exec ACSHouLab group tacacs+aaa authorization network ACSHouLab group tacacs+aaa accounting exec ACSHouLab start-stop group tacacs+aaa accounting network default start-stop group ACSHouLabaaa session-id common!ip domain name gril.com!crypto ca trustpoint EM-CERT-SERVenrollment url http://10.3.3.3:80serial-numbercrl optionalrsakeypair STOREVPN 1024auto-enrollauthorization list ACSHouLab!crypto ca certificate chain EM-CERT-SERVcertificate 0430820214 3082017D A0030201 02020104 300D0609 2A864886 F70D0101 0405003017311530 13060355 0403130C 454D2D43 4552542D 53455256 301E170D 3034303131393232 30323535 5A170D30 35303131 38323230 3235355A 3030312E 300E060355040513 07314437 45424434 301C0609 2A864886 F70D0109 02160F37 3230302D312E6772 696C2E63 6F6D3081 9F300D06 092A8648 86F70D01 01010500 03818D0030818902 818100BD F3B837AA D925F391 2B64DA14 9C2EA031 5A7203C4 92F8D6A87D2357A6 BCC8596F A38A9B10 47435626 D59A8F2A 123195BB BE5A1E74 B1AA5AE05CA162FF 8C3ACA4F B3EE9F27 8B031642 B618AE1B 40F2E3B4 F996BEFE 382C72833792A369 236F8561 8748AA3F BC41F012 B859BD9C DB4F75EE 3CEE2829 704BD68FFD904043 0F555702 03010001 A3573055 30250603 551D1F04 1E301C30 1AA018A016861468 7474703A 2F2F3633 2E323437 2E313037 2E393330 0B060355 1D0F0404030205A0 301F0603 551D2304 18301680 1420FC4B CF0B1C56 F5BD4C06 0AFD4E67341AE612 D1300D06 092A8648 86F70D01 01040500 03818100 79E97018 FB95510812F42A56 2A6384BC AC8E22FE F1D6187F DA5D6737 C0E241AC AAAEC75D 3C743F5908DEEFF2 0E813A73 D79E0FA9 D62DC20D 8E2798CD 2C1DC3EC 3B2505A1 3897330C15A60D5A 8A13F06D 51043D37 E56E45DF A65F43D7 4E836093 9689784D C45FD61DEC1F160C 1ABC8D03 49FB11B1 DA0BED6C 463E1090 F34C59E4quitcertificate ca 0130820207 30820170 A0030201 02020101 300D0609 2A864886 F70D0101 0405003017311530 13060355 0403130C 454D2D43 4552542D 53455256 301E170D 3033313231363231 34373432 5A170D30 36313231 35323134 3734325A 30173115 3013060355040313 0C454D2D 43455254 2D534552 5630819F 300D0609 2A864886 F70D010101050003 818D0030 81890281 8100C14D 833641CF D784F516 DA6B50C0 7B3CB3C9589223AB 99A7DC14 04F74EF2 AAEEE8F5 E3BFAE97 F2F980F7 D889E6A1 2C726C6954A29870 7E7363FF 3CD1F991 F5A37CFF 3FFDD3D0 9E486C44 A2E34595 C2D078BBE9DE981E B733B868 AA8916C0 A8048607 D34B83C0 64BDC101 161FC103 13C0650022D6EE75 7D6CF133 7F1B515F 32830203 010001A3 63306130 0F060355 1D130101FF040530 030101FF 300E0603 551D0F01 01FF0404 03020186 301D0603 551D0E0416041420 FC4BCF0B 1C56F5BD 4C060AFD 4E67341A E612D130 1F060355 1D23041830168014 20FC4BCF 0B1C56F5 BD4C060A FD4E6734 1AE612D1 300D0609 2A864886F70D0101 04050003 81810085 D2E386F5 4107116B AD3AC990 CBE84063 5FB2A6B5BD572026 528E92ED 02F3A0AE 1803F2AE AA4C0ED2 0F59F18D 7B50264F 30442C410AF19C4E 70BD3CB5 0ADD8DE8 8EF636BD 24410DF4 DB62DAFC 67DA6E58 3879AA3E12AFB1C3 2E27CB27 EC74E1FC AEE2F5CF AA80B439 615AA8D5 6D6DEDC3 7F9C2C793963E363 F2989FB9 795BA8quit!!crypto isakmp policy 10encr 3desgroup 2!!crypto ipsec transform-set ISC_TS_1 esp-3des esp-sha-hmac!crypto ipsec profile ISC_IPSEC_PROFILE_2set security-association lifetime kilobytes 530000000set security-association lifetime seconds 14400set transform-set ISC_TS_1!!controller ISA 1/1!!interface Tunnel0description MGRE Interface provisioned by ISCbandwidth 10000ip address 10.17.17.2 255.255.255.0no ip redirectsip mtu 1408ip nhrp map multicast dynamicip nhrp network-id 101ip nhrp holdtime 500ip nhrp server-onlyno ip split-horizon eigrp 101tunnel source FastEthernet2/1tunnel mode gre multipointtunnel key 101tunnel protection ipsec profile ISC_IPSEC_PROFILE_2!interface FastEthernet2/0ip address 10.1.1.1 255.255.255.0duplex autospeed auto!interface FastEthernet2/1ip address 10.2.2.2 255.255.255.0duplex autospeed auto!!tacacs-server host 192.43.233.55 single-connectiontacacs-server directed-requesttacacs-server key gril lab!ntp master 1!endDebug of a Successful PKI AAA Authorization: Example
The following show debugging command output shows a successful authorization using the PKI Integration with AAA Server feature.
Router# show debuggingGeneral OS:TACACS access control debugging is onAAA Authentication debugging is onAAA Authorization debugging is onCryptographic Subsystem:Crypto PKI Trans debugging is onRouter#May 28 19:36:11.117: CRYPTO_PKI: Trust-Point EM-CERT-SERV picked upMay 28 19:36:12.789: CRYPTO_PKI: Found a issuer matchMay 28 19:36:12.805: CRYPTO_PKI: cert revocation status unknown.May 28 19:36:12.805: CRYPTO_PKI: Certificate validated without revocation checkMay 28 19:36:12.813: CRYPTO_PKI_AAA: checking AAA authorization (ACSHouLab, POD-5.gril.com, <all>)May 28 19:36:12.813: AAA/BIND(00000042): Bind i/fMay 28 19:36:12.813: AAA/AUTHOR (0x42): Pick method list 'ACSHouLab'May 28 19:36:12.813: TPLUS: Queuing AAA Authorization request 66 for processingMay 28 19:36:12.813: TPLUS: processing authorization request id 66May 28 19:36:12.813: TPLUS: Protocol set to None .....SkippingMay 28 19:36:12.813: TPLUS: Sending AV service=pkiMay 28 19:36:12.813: TPLUS: Authorization request created for 66(POD-5.gril.com)May 28 19:36:12.813: TPLUS: Using server 198.43.233.55May 28 19:36:12.813: TPLUS(00000042)/0/NB_WAIT/203A4628: Started 5 sec timeoutMay 28 19:36:12.813: TPLUS(00000042)/0/NB_WAIT: wrote entire 46 bytes requestMay 28 19:36:12.813: TPLUS: Would block while reading pak headerMay 28 19:36:12.817: TPLUS(00000042)/0/READ: read entire 12 header bytes (expect 27 bytes)May 28 19:36:12.817: TPLUS(00000042)/0/READ: read entire 39 bytes responseMay 28 19:36:12.817: TPLUS(00000042)/0/203A4628: Processing the reply packetMay 28 19:36:12.817: TPLUS: Processed AV cert-application=allMay 28 19:36:12.817: TPLUS: received authorization response for 66: PASSMay 28 19:36:12.817: CRYPTO_PKI_AAA: reply attribute ("cert-application" = "all")May 28 19:36:12.817: CRYPTO_PKI_AAA: authorization passedRouter#Router#May 28 19:36:18.681: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 101: Neighbor 17.17.17.1 (Tunnel0) is up: new adjacencyRouter#Router# show crypto isakmp sadst src state conn-id slot00.2.2.2 10.247.102.20 QM_IDLE 84 0Debugs of a Failed PKI AAA Authorization: Example
The following show debugging command output shows that the router is not authorized to connect using VPN. The messages are typical of those that you might see in such a situation.
In this example, the peer username was configured as not authorized. This was done by moving the username to a Cisco Secure ACS group called VPN_Router_Disabled in Cisco Secure ACS. The router 7200-1.gril.com has been configured to check with a Cisco Secure ACS AAA server prior to establishing a VPN connection to any peer. (For information on how to create a group such as VPN_Router_Disabled, see the section "Disabling Authorization for an IPSec Peer.")
Router# show debuggingGeneral OS:TACACS access control debugging is onAAA Authentication debugging is onAAA Authorization debugging is onCryptographic Subsystem:Crypto PKI Trans debugging is onRouter#May 28 19:48:29.837: CRYPTO_PKI: Trust-Point EM-CERT-SERV picked upMay 28 19:48:31.509: CRYPTO_PKI: Found a issuer matchMay 28 19:48:31.525: CRYPTO_PKI: cert revocation status unknown.May 28 19:48:31.525: CRYPTO_PKI: Certificate validated without revocation checkMay 28 19:48:31.533: CRYPTO_PKI_AAA: checking AAA authorization (ACSHouLab, POD-5.gril.com, <all>)May 28 19:48:31.533: AAA/BIND(00000044): Bind i/fMay 28 19:48:31.533: AAA/AUTHOR (0x44): Pick method list 'ACSHouLab'May 28 19:48:31.533: TPLUS: Queuing AAA Authorization request 68 for processingMay 28 19:48:31.533: TPLUS: processing authorization request id 68May 28 19:48:31.533: TPLUS: Protocol set to None .....SkippingMay 28 19:48:31.533: TPLUS: Sending AV service=pkiMay 28 19:48:31.533: TPLUS: Authorization request created for 68(POD-5.gril.com)May 28 19:48:31.533: TPLUS: Using server 198.43.233.55May 28 19:48:31.533: TPLUS(00000044)/0/NB_WAIT/203A4C50: Started 5 sec timeoutMay 28 19:48:31.533: TPLUS(00000044)/0/NB_WAIT: wrote entire 46 bytes requestMay 28 19:48:31.533: TPLUS: Would block while reading pak headerMay 28 19:48:31.537: TPLUS(00000044)/0/READ: read entire 12 header bytes (expect 6 bytes)May 28 19:48:31.537: TPLUS(00000044)/0/READ: read entire 18 bytes responseMay 28 19:48:31.537: TPLUS(00000044)/0/203A4C50: Processing the reply packetMay 28 19:48:31.537: TPLUS: received authorization response for 68: FAILMay 28 19:48:31.537: CRYPTO_PKI_AAA: authorization declined by AAA, or AAA server not found.May 28 19:48:31.537: CRYPTO_PKI_AAA: No cert-application attribute found. Failing.May 28 19:48:31.537: CRYPTO_PKI_AAA: authorization failedMay 28 19:48:31.537: CRYPTO_PKI: AAA authorization for list 'ACSHouLab', and user 'POD-5.gril.com' failed.May 28 19:48:31.537: %CRYPTO-5-IKMP_INVAL_CERT: Certificate received from 63.247.102.20 is bad: certificate invalidMay 28 19:48:39.821: CRYPTO_PKI: Trust-Point EM-CERT-SERV picked upMay 28 19:48:41.481: CRYPTO_PKI: Found a issuer matchMay 28 19:48:41.501: CRYPTO_PKI: cert revocation status unknown.May 28 19:48:41.501: CRYPTO_PKI: Certificate validated without revocation checkMay 28 19:48:41.505: CRYPTO_PKI_AAA: checking AAA authorization (ACSHouLab, POD-5.gril.com, <all>)May 28 19:48:41.505: AAA/BIND(00000045): Bind i/fMay 28 19:48:41.505: AAA/AUTHOR (0x45): Pick method list 'ACSHouLab'May 28 19:48:41.505: TPLUS: Queuing AAA Authorization request 69 for processingMay 28 19:48:41.505: TPLUS: processing authorization request id 69May 28 19:48:41.505: TPLUS: Protocol set to None .....SkippingMay 28 19:48:41.505: TPLUS: Sending AV service=pkiMay 28 19:48:41.505: TPLUS: Authorization request created for 69(POD-5.gril.com)May 28 19:48:41.505: TPLUS: Using server 192.43.233.55May 28 19:48:41.509: TPLUS(00000045)/0/IDLE/63B22834: got immediate connect on new 0May 28 19:48:41.509: TPLUS(00000045)/0/WRITE/63B22834: Started 5 sec timeoutMay 28 19:48:41.509: TPLUS(00000045)/0/WRITE: wrote entire 46 bytes requestMay 28 19:48:41.509: TPLUS(00000045)/0/READ: read entire 12 header bytes (expect 6 bytes)May 28 19:48:41.509: TPLUS(00000045)/0/READ: read entire 18 bytes responseMay 28 19:48:41.509: TPLUS(00000045)/0/63B22834: Processing the reply packetMay 28 19:48:41.509: TPLUS: received authorization response for 69: FAILMay 28 19:48:41.509: CRYPTO_PKI_AAA: authorization declined by AAA, or AAA server not found.May 28 19:48:41.509: CRYPTO_PKI_AAA: No cert-application attribute found. Failing.May 28 19:48:41.509: CRYPTO_PKI_AAA: authorization failedMay 28 19:48:41.509: CRYPTO_PKI: AAA authorization for list 'ACSHouLab', and user 'POD-5.gril.com' failed.May 28 19:48:41.509: %CRYPTO-5-IKMP_INVAL_CERT: Certificate received from 63.247.102.20 is bad: certificate invalidRouter#Router# show crypto iskmp sadst src state conn-id slot10.2.2.2 10.247.102.20 MM_KEY_EXCH 95 0









