Table Of Contents
IPSec/VPN Tunnel Using VeriSign Digital Certificates
Configuring PIX Firewall 1 for a VeriSign Certificate
Configuring PIX Firewall 2 for a VeriSign Certificate
IPSec/VPN Tunnel Using Entrust Digital Certificates
Configuring PIX Firewall 1 for an Entrust Certificate
Configuring PIX Firewall 2 for an Entrust Certificate
IPSec/VPN Tunnel Using Baltimore Digital Certificates
Configuring PIX Firewall 1 for a Baltimore Certificate
Configuring PIX Firewall 2 for a Baltimore Certificate
IPSec/VPN Tunnel Using Microsoft Digital Certificates
Configuring PIX Firewall 1 for a Microsoft Certificate
Configuring PIX Firewall 2 for a Microsoft Certificate
Digital Certificate Issued via an Encrypted Tunnel
Configuring PIX Firewall 1 to Obtain Certificate via Encrypted Tunnel
Configuring PIX Firewall 2 to Obtain Certificate via Encrypted Tunnel
CA Configuration Examples
This chapter provides configuration examples showing how to configure interoperability between two PIX Firewall units (PIX Firewall 1 and 2) for site-to-site VPN using CAs for device enrollment and certificate requests. Because each peer will be using digital certificates for the device authentication method, each peer must be configured to enroll with a given CA and to request to obtain its CA-signed certificates from the CA. The examples shown in this chapter illustrate how to set up the peers to obtain certificates from a CA that is either within a private network (referred to as an in-house CA server) or outside of a private network.
Most of the CA servers in the examples are in-house CA servers and are placed within the DMZ network of one PIX Firewall network (PIX Firewall 1) with the exception of the VeriSign CA server. The VPN peer, PIX Firewall 2, must enroll and obtain its CA-signed certificates from the CA server residing within the network of PIX Firewall 1. PIX Firewall 2's enrollment and certificate request process is accomplished through the Internet. For a more secure way of performing CA enrollment and certificate requests, one example is provided that shows how to perform the CA enrollment and certificate requests within an encrypted tunnel. The example first shows how to establish a VPN tunnel using the authentication method of a pre-shared key for IKE authentication. After the tunnel is established, PIX Firewall 2 is shown to be configured to perform the CA enrollment and certificate request via the tunnel.
Currently, the PIX Firewall supports the following CA servers:
•
VeriSign, support is provided through the VeriSign Private Certificate Services (PCS) and the OnSite service, which lets you establish a CA system for issuing digital certificates. The VeriSign CA server in the given example is a server that resides outside of the private network within the Internet.
•
Entrust, Entrust VPN Connector, version 4.1 (build 4.1.0.337) or later. The Entrust CA server is an in-house CA server solution.
•
Baltimore Technologies, UniCERT Certificate Management System, version 3.1.2 or later. The Baltimore CA server is an in-house CA server solution.
•
Microsoft Windows 2000, specifically the Windows 2000 Advanced Server, version 5.00.2195 or later. The Windows 2000 CA server is an in-house CA server solution.
The following sections are included in this chapter:
•
IPSec/VPN Tunnel Using VeriSign Digital Certificates
•
IPSec/VPN Tunnel Using Entrust Digital Certificates
•
IPSec/VPN Tunnel Using Baltimore Digital Certificates
•
IPSec/VPN Tunnel Using Microsoft Digital Certificates
•
Digital Certificate Issued via an Encrypted Tunnel
Note
The first four examples shown are essentially the same, differing only within the CA server configuration steps.
For CA background information, see "About CA." For more information about CA configurations, see "Configuring CA."
IPSec/VPN Tunnel Using VeriSign Digital Certificates
This section provides configuration examples showing how to configure interoperability between two PIX Firewall units (PIX Firewall 1 and 2) for site-to-site VPN using the VeriSign CA server for device enrollment, certificate requests, and digital certificates for the IKE authentication. VeriSign issues its CA-signed certificates over the Internet.
The two VPN peers in the configuration examples are shown to be configured to enroll with VeriSign at the IP address of 209.165.202.130 and to obtain their CA certificates from this CA server. Once each peer obtains its CA-signed certificate, tunnels can be established between the two VPN peers using digital certificates as the authentication method used during IKE authentication. The peers dynamically authenticate each other using the digital certificates.
Note
VeriSign's actual CA server address differs. The example CA server address is to be used for example purposes only.
This section includes the following topics:
•
Configuring PIX Firewall 1 for a VeriSign Certificate
•
Configuring PIX Firewall 2 for a VeriSign Certificate
This example uses the network diagram shown in Figure 11-1.
Figure 11-1 VPN Tunnel Network
Configuring PIX Firewall 1 for a VeriSign Certificate
Follow these steps to configure PIX Firewall 1:
Step 1
Define a host name:
hostname NewYorkStep 2
Define the domain name:
domain-name example.comStep 3
Generate the PIX Firewall RSA key pair:
ca generate rsa key 512This command is not stored in the configuration.
Step 4
Define VeriSign-related enrollment commands:
ca identity example.com 209.165.202.130ca configure example.com ca 2 100 crloptionalThese commands are stored in the configuration. "2" is the retry period, "100" is the retry count, and the crloptional option disables CRL checking.
Step 5
Authenticate the CA by obtaining its public key and its certificate:
ca authenticate example.comThis command is not stored in the configuration.
Step 6
Request signed certificates from your CA for your PIX Firewall's RSA key pair. Before entering this command, contact your CA administrator because they will have to authenticate your PIX Firewall manually before granting its certificate:
ca enroll example.com abcdef"abcdef" is a challenge password. This can be anything. This command is not stored in the configuration.
Step 7
Verify that the enrollment process was successful using the show ca certificate command:
show ca certificateStep 8
Save keys and certificates, and the CA commands (except those indicated) in Flash memory:
ca save allwrite memory
Note
Use the ca save all command any time you add, change, or delete ca commands in the configuration. This command is not stored in the configuration.
Step 9
Create a net static:
static (inside,outside) 192.168.12.0 192.168.12.0Step 10
Configure an IKE policy:
isakmp enable outsideisakmp policy 8 auth rsa-sigStep 11
Create a partial access list:
access-list 90 permit ip 192.168.12.0 255.255.255.0 10.0.0.0 255.0.0.0Step 12
Configure a transform set that defines how the traffic will be protected:
crypto ipsec transform-set strong esp-3des esp-sha-hmacStep 13
Define a crypto map:
crypto map toSanJose 20 ipsec-isakmpcrypto map toSanJose 20 match address 90crypto map toSanJose 20 set transform-set strongcrypto map toSanJose 20 set peer 209.165.200.229Step 14
Apply the crypto map to the outside interface:
crypto map toSanJose interface outsideStep 15
Tell the PIX Firewall to implicitly permit IPSec traffic:
sysopt connection permit-ipsecTable 11-1 lists the configuration for PIX Firewall 1.
Configuring PIX Firewall 2 for a VeriSign Certificate
Follow these steps to configure PIX Firewall 2:
Step 1
Define a host name:
hostname SanJoseStep 2
Define the domain name:
domain-name example.comStep 3
Generate the PIX Firewall RSA key pair:
ca generate rsa key 1024This command is not stored in the configuration.
Step 4
Define VeriSign-related enrollment commands:
ca identity example.com 209.165.202.130ca configure example.com ca 1 20 crloptionalThese commands are stored in the configuration. "2" is the retry period, "100" is the retry count, and the crloptional option disables CRL checking.
Step 5
Authenticate the CA by obtaining its public key and its certificate:
ca authenticate example.comThis command is not stored in the configuration.
Step 6
Request signed certificates from your CA for your PIX Firewall's RSA key pair. Before entering this command, contact your CA administrator because they will have to authenticate your PIX Firewall manually before granting its certificate:
ca enroll example.com abcdef"abcdef" is a challenge password. This can be anything. This command is not stored in the configuration.
Step 7
Verify that the enrollment process was successful using the show ca certificate command:
show ca certificateStep 8
Save keys and certificates, and the CA commands (except those indicated) in Flash memory:
ca save allwrite memory
Note
Use the ca save all command any time you add, change, or delete ca commands in the configuration. This command is not stored in the configuration.
Step 9
Create a net static:
static (inside,outside) 10.0.0.0 10.0.0.0Step 10
Configure an IKE policy:
isakmp enable outsideisakmp policy 8 auth rsa-sigStep 11
Create a partial access list:
access-list 80 permit ip 10.0.0.0 255.0.0.0 192.168.12.0 255.255.255.0Step 12
Configure a transform set that defines how the traffic will be protected:
crypto ipsec transform-set strong esp-3des esp-sha-hmacStep 13
Define a crypto map:
crypto map newyork 10 ipsec-isakmpcrypto map newyork 10 match address 80crypto map newyork 10 set transform-set strongcrypto map newyork 10 set peer 209.165.201.8Step 14
Apply the crypto map to the outside interface:
crypto map toSanJose interface outsideStep 15
Tell the PIX Firewall to implicitly permit IPSec traffic:
sysopt connection permit-ipsecTable 11-2 lists the configuration for PIX Firewall 2.
IPSec/VPN Tunnel Using Entrust Digital Certificates
This section provides configuration examples showing how to configure interoperability between two PIX Firewall units (PIX Firewall 1 and 2) for site-to-site VPN using the Entrust CA server for device enrollment and certificate requests, and digital certificates for the IKE authentication.
The two VPN peers in the configuration examples are shown to be configured to enroll with and obtain their CA-signed certificates from the Entrust CA server. PIX Firewall 1 will obtain its certificate from the CA's local IP address of 10.1.0.2. PIX Firewall 2 will obtain its certificate from the CA's global IP address of 209.165.202.131. After each peer obtains its CA-signed certificate, tunnels can be established between the two VPN peers. The peers dynamically authenticate each other using the digital certificates.
Note
The example CA server address is to be used for example purposes only.
This section includes the following topics:
•
Configuring PIX Firewall 1 for an Entrust Certificate
•
Configuring PIX Firewall 2 for an Entrust Certificate
This example uses the network diagram shown in Figure 11-2.
Figure 11-2 VPN Tunnel Network
Configuring PIX Firewall 1 for an Entrust Certificate
Follow these steps to configure PIX Firewall 1:
Step 1
Define a host name:
hostname NewYorkStep 2
Define the domain name:
domain-name example.comStep 3
Generate the PIX Firewall RSA key pair:
ca generate rsa key 512This command is entered at the command line and does not get stored in the configuration.
Step 4
Define Entrust-related enrollment commands:
ca identity abcd 209.165.202.131 209.165.202.131ca configure abcd ra 1 20 crloptionalThese commands are stored in the configuration. 1 is the retry period, 20 is the retry count, and the crloptional option disables CRL checking.
Step 5
Authenticate the CA by obtaining its public key and its certificate:
ca authenticate abcdThis command is entered at the command line and does not get stored in the configuration.
Step 6
Request signed certificates from your CA for your PIX Firewall's RSA key pair. Before entering this command, contact your CA administrator because they will have to authenticate your PIX Firewall manually before granting its certificate:
ca enroll abcd cisco"cisco" is a challenge password. This can be anything. This command is entered at the command line and does not get stored in the configuration.
Step 7
Verify that the enrollment process was successful using the show ca certificate command:
show ca certificateStep 8
Save keys and certificates, and the CA commands (except those indicated) in Flash memory:
ca save allwrite memory
Note
Use the ca save all command any time you add, change, or delete ca commands in the configuration. This command is not stored in the configuration.
Step 9
Map a local IP address to a global IP address:
static (dmz, outside) 209.165.202.131 10.1.0.2 netmask 255.255.255.255Step 10
Permit the host (PIX Firewall 2) to access the global host via LDAP, port 389:
conduit permit tcp host 209.165.202.131 eq 389 209.165.200.229 255.255.255.255Step 11
Permit the host (PIX Firewall 2) to access the global host via HTTP:
conduit permit tcp host 209.165.202.131 eq http 209.165.200.229 255.255.255.255Step 12
Configure an IKE policy:
isakmp enable outsideisakmp policy 8 auth rsa-sigisakmp identity hostnameStep 13
Configure a transform set that defines how the traffic will be protected:
crypto ipsec transform-set strong esp-3des esp-sha-hmacStep 14
Create a partial access list:
access-list 90 permit ip 192.168.12.0 255.255.255.0 10.0.0.0 255.0.0.0Step 15
Define a crypto map:
crypto map toSanJose 20 ipsec-isakmpcrypto map toSanJose 20 match address 90crypto map toSanJose 20 set transform-set strongcrypto map toSanJose 20 set peer 209.165.200.229Step 16
Apply the crypto map to the outside interface:
crypto map toSanJose interface outsideStep 17
Tell the PIX Firewall to implicitly permit IPSec traffic:
sysopt connection permit-ipsecTable 11-3 lists the configuration for PIX Firewall 1.
Configuring PIX Firewall 2 for an Entrust Certificate
Follow these steps to configure PIX Firewall 2:
Step 1
Define a host name:
hostname SanJoseStep 2
Define the domain name:
domain-name example.comStep 3
Configure an IKE policy:
isakmp enable outsideisakmp policy 8 auth rsa-sigStep 4
Define Entrust-related enrollment commands:
ca identity abcd 209.165.202.131 209.165.202.131ca configure abcd ra 1 20 crloptionalThese commands are stored in the configuration. 1 is the retry period, 20 is the retry count, and the crloptional option disables CRL checking.
Step 5
Generate the PIX Firewall RSA key pair:
ca generate rsa key 512This command is entered at the command line and does not get stored in the configuration.
Step 6
Get the public key and the certificate of the CA server:
ca authenticate abcdThis command is entered at the command line and does not get stored in the configuration.
Step 7
Contact your CA administrator and send your certificate request:
ca enroll abcd cisco"cisco" is a challenge password. This can be anything. This command is entered at the command line and does not get stored in the configuration.
Step 8
Configure supported IPSec transforms:
crypto ipsec transform-set strong esp-3des esp-sha-hmacStep 9
Save keys and certificates, and the CA commands (except those indicated) in Flash memory:
ca save allwrite memory
Note
Use the ca save all command any time you add, change, or delete ca commands in the configuration. This command is not stored in the configuration.
Step 10
Create a partial access list:
access-list 80 permit ip 10.0.0.0 255.0.0.0 192.168.12.0 255.255.255.0Step 11
Define a crypto map:
crypto map newyork 20 ipsec-isakmpcrypto map newyork 20 match address 80crypto map newyork 20 set transform-set strongcrypto map newyork 20 set peer 209.165.201.8Step 12
Apply the crypto map to the outside interface:
crypto map newyork interface outsideStep 13
Tell the PIX Firewall to implicitly permit IPSec traffic:
sysopt connection permit-ipsecTable 11-4 lists the configuration for PIX Firewall 2.
IPSec/VPN Tunnel Using Baltimore Digital Certificates
This section provides configuration examples showing how to configure interoperability between two PIX Firewall units (PIX Firewall 1 and 2) for site-to-site VPN using the Baltimore CA server for device enrollment and certificate requests, and digital certificates for the IKE authentication.
The two VPN peers in the configuration examples are shown to be configured to enroll with and obtain their CA-signed certificates from the Baltimore CA server. PIX Firewall 1 will obtain its certificate from the CA's local IP address of 10.1.0.2. PIX Firewall 2 will obtain its certificate from the CA's global IP address of 209.165.202.131. After each peer obtains its CA-signed certificate, tunnels can be established between the two VPN peers. The peers dynamically authenticate each other using the digital certificates.
Note
The example CA server address is to be used for example purposes only.
This section includes the following topics:
•
Configuring PIX Firewall 1 for a Baltimore Certificate
•
Configuring PIX Firewall 2 for a Baltimore Certificate
This example uses the network diagram shown in Figure 11-3.
Figure 11-3 VPN Tunnel Network
Configuring PIX Firewall 1 for a Baltimore Certificate
Follow these steps to configure PIX Firewall 1:
Step 1
Define a host name:
hostname NewYorkStep 2
Define the domain name:
domain-name example.comStep 3
Generate the PIX Firewall RSA key pair:
ca generate rsa key 512This command is entered at the command line and does not get stored in the configuration.
Step 4
Define Baltimore-related enrollment commands:
ca identity abcd 209.165.202.131 209.165.202.131ca configure abcd ra 1 20 crloptionalThese commands are stored in the configuration. 1 is the retry period, 20 is the retry count, and the crloptional option disables CRL checking.
Step 5
Authenticate the CA by obtaining its public key and its certificate:
ca authenticate abcdThis command is entered at the command line and does not get stored in the configuration.
Step 6
Request signed certificates from your CA for your PIX Firewall's RSA key pair. Before entering this command, contact your CA administrator because they will have to authenticate your PIX Firewall manually before granting its certificate:
ca enroll abcd cisco"cisco" is a challenge password. This can be anything. This command is entered at the command line and does not get stored in the configuration.
Step 7
Save keys and certificates, and the CA commands (except those indicated) in Flash memory:
ca save allwrite memory
Note
Use the ca save all command any time you add, change, or delete ca commands in the configuration. This command is not stored in the configuration.
Step 8
Map a local IP address to a global IP address:
static (dmz, outside) 209.165.202.131 10.1.0.2 netmask 255.255.255.255Step 9
Permit the host (PIX Firewall 2) to access the global host via LDAP, port 389:
conduit permit tcp host 209.165.202.131 eq 389 209.165.200.229 255.255.255.255Step 10
Permit the host (PIX Firewall 2) to access the global host via HTTP:
conduit permit tcp host 209.165.202.131 eq http 209.165.200.229 255.255.255.255Step 11
Configure an IKE policy:
isakmp enable outsideisakmp policy 8 auth rsa-sigStep 12
Create a partial access list:
access-list 90 permit ip 192.168.12.0 255.255.255.0 10.0.0.0 255.0.0.0Step 13
Configure a transform set that defines how the traffic will be protected:
crypto ipsec transform-set strong esp-3des esp-sha-hmacStep 14
Define a crypto map:
crypto map toSanJose 20 ipsec-isakmpcrypto map toSanJose 20 match address 90crypto map toSanJose 20 set transform-set strongcrypto map toSanJose 20 set peer 209.165.200.229Step 15
Apply the crypto map to the outside interface:
crypto map toSanJose interface outsideStep 16
Tell the PIX Firewall to implicitly permit IPSec traffic:
sysopt connection permit-ipsecFor a complete configuration example of PIX Firewall 1, see Table 11-3.
Configuring PIX Firewall 2 for a Baltimore Certificate
Follow these steps to configure PIX Firewall 2:
Step 1
Define a host name:
hostname SanJoseStep 2
Define the domain name:
domain-name example.comStep 3
Generate the PIX Firewall RSA key pair:
ca generate rsa key 512This command is entered at the command line and does not get stored in the configuration.
Step 4
Define Baltimore-related enrollment commands:
ca identity abcd 209.165.202.131 209.165.202.131ca configure abcd ra 1 20 crloptionalThese commands are stored in the configuration. 1 is the retry period, 20 is the retry count, and the crloptional option disables CRL checking.
Step 5
Authenticate the CA by obtaining its public key and its certificate:
ca authenticate abcdThis command is entered at the command line and does not get stored in the configuration.
Step 6
Request signed certificates from your CA for your PIX Firewall's RSA key pair. Before entering this command, contact your CA administrator because they will have to authenticate your PIX Firewall manually before granting its certificate:
ca enroll abcd cisco"cisco" is a challenge password. This can be anything. This command is entered at the command line and does not get stored in the configuration.
Step 7
Save keys and certificates, and the CA commands (except those indicated) in Flash memory:
ca save allwrite memory
Note
Use the ca save all command any time you add, change, or delete ca commands in the configuration. This command is not stored in the configuration.
Step 8
Configure an IKE policy:
isakmp enable outsideisakmp policy 8 auth rsa-sigStep 9
Create a partial access list:
access-list 80 permit ip 10.0.0.0 255.0.0.0 192.168.12.0 255.255.255.0Step 10
Configure a transform set that defines how the traffic will be protected:
crypto ipsec transform-set strong esp-3des esp-sha-hmacStep 11
Define a crypto map:
crypto map newyork 20 ipsec-isakmpcrypto map newyork 20 match address 80crypto map newyork 20 set transform-set strongcrypto map newyork 20 set peer 209.165.201.8Step 12
Apply the crypto map to the outside interface:
crypto map newyork interface outsideStep 13
Tell the PIX Firewall to implicitly permit IPSec traffic:
sysopt connection permit-ipsecFor a complete configuration example of PIX Firewall 2, see Table 11-4.
IPSec/VPN Tunnel Using Microsoft Digital Certificates
This section provides configuration examples showing how to configure interoperability between two PIX Firewall units (PIX Firewall 1 and 2) for site-to-site VPN using the Microsoft CA server for device enrollment and certificate requests, and digital certificates for the IKE authentication.
The two VPN peers in the configuration examples are shown to be configured to enroll with and obtain their CA-signed certificates from the Microsoft CA server. PIX Firewall 1 will obtain its certificate from the CA's local IP address of 10.1.0.2. PIX Firewall 2 will obtain its certificate from the CA's global IP address of 209.165.202.131. After each peer obtains its CA-signed certificate, tunnels can be established between the two VPN peers. The peers dynamically authenticate each other using the digital certificates.
Note
The example CA server address is to be used for example purposes only.
This section includes the following topics:
•
Configuring PIX Firewall 1 for a Microsoft Certificate
•
Configuring PIX Firewall 2 for a Microsoft Certificate
This example uses the network diagram shown in Figure 11-4.
Figure 11-4 VPN Tunnel Network
Configuring PIX Firewall 1 for a Microsoft Certificate
Follow these steps to configure PIX Firewall 1:
Step 1
Define a host name:
hostname NewYorkStep 2
Define the domain name:
domain-name example.comStep 3
Generate the PIX Firewall RSA key pair:
ca generate rsa key 512This command is entered at the command line and does not get stored in the configuration.
Step 4
Define Microsoft-related enrollment commands:
ca identity abcd 10.1.0.2:/certsrv/mscep/mscep.dllca configure abcd ra 1 20 crloptionalThese commands are stored in the configuration. 1 is the retry period, 20 is the retry count, and the crloptional option disables CRL checking.
Step 5
Authenticate the CA by obtaining its public key and its certificate:
ca authenticate abcdThis command is entered at the command line and does not get stored in the configuration.
Step 6
Request signed certificates from your CA for your PIX Firewall's RSA key pair. If you are set up with the Microsoft CA server be granted the PIX Firewall unit's certificate manually, contact your CA administrator before entering this command.
ca enroll abcd cisco"cisco" is a challenge password. This can be anything. This command is entered at the command line and does not get stored in the configuration.
Step 7
Save keys and certificates, and the CA commands (except those indicated) in Flash memory:
ca save allwrite memory
Note
Use the ca save all command any time you add, change, or delete ca commands in the configuration. This command is not stored in the configuration.
Step 8
Map a local IP address to a global IP address:
static (dmz, outside) 209.165.202.131 10.1.0.2 netmask 255.255.255.255Step 9
Permit the host (PIX Firewall 2) to access the global host via HTTP:
conduit permit tcp host 209.165.202.131 eq http 209.165.200.229 255.255.255.255Step 10
Configure an IKE policy:
isakmp enable outsideisakmp policy 8 auth rsa-sigStep 11
Create a partial access list:
access-list 90 permit ip 192.168.12.0 255.255.255.0 10.0.0.0 255.0.0.0Step 12
Configure a transform set that defines how the traffic will be protected:
crypto ipsec transform-set strong esp-3des esp-sha-hmacStep 13
Define a crypto map:
crypto map toSanJose 20 ipsec-isakmpcrypto map toSanJose 20 match address 90crypto map toSanJose 20 set transform-set strongcrypto map toSanJose 20 set peer 209.165.200.229Step 14
Apply the crypto map to the outside interface:
crypto map toSanJose interface outsideStep 15
Tell the PIX Firewall to implicitly permit IPSec traffic:
sysopt connection permit-ipsecFor a complete configuration example of PIX Firewall 1, see Table 11-3. Table 11-3 does not reflect the Microsoft-related commands. To reflect the Microsoft-related commands, enter the Microsoft-related commands in place of the CA-related commands in the Table 11-3.
Configuring PIX Firewall 2 for a Microsoft Certificate
Follow these steps to configure PIX Firewall 2:
Step 1
Define a host name:
hostname SanJoseStep 2
Define the domain name:
domain-name example.comStep 3
Generate the PIX Firewall RSA key pair:
ca generate rsa key 512This command is entered at the command line and does not get stored in the configuration.
Step 4
Define Microsoft-related enrollment commands:
ca identity my_nickname 209.165.202.131:/certsrv/mscep/mscep.dllca configure my_nickname ra 1 20 crloptionalThese commands are stored in the configuration. 1 is the retry period, 20 is the retry count, and the crloptional option disables CRL checking.
Step 5
Authenticate the CA by obtaining its public key and its certificate:
ca authenticate abcdThis command is entered at the command line and does not get stored in the configuration.
Step 6
Request signed certificates from your CA for your PIX Firewall's RSA key pair. If you are set up with the Microsoft CA server be granted the PIX Firewall unit's certificate manually, contact your CA administrator before entering this command.
ca enroll abcd cisco"cisco" is a challenge password. This can be anything. This command is entered at the command line and does not get stored in the configuration.
Step 7
Save keys and certificates, and the CA commands (except those indicated) in Flash memory:
ca save allwrite memory
Note
Use the ca save all command any time you add, change, or delete ca commands in the configuration. This command is not stored in the configuration.
Step 8
Configure an IKE policy:
isakmp enable outsideisakmp policy 8 auth rsa-sigStep 9
Create a partial access list:
access-list 80 permit ip 10.0.0.0 255.0.0.0 192.168.12.0 255.255.255.0Step 10
Configure a transform set that defines how the traffic will be protected:
crypto ipsec transform-set strong esp-3des esp-sha-hmacStep 11
Define a crypto map:
crypto map newyork 20 ipsec-isakmpcrypto map newyork 20 match address 80crypto map newyork 20 set transform-set strongcrypto map newyork 20 set peer 209.165.201.8Step 12
Apply the crypto map to the outside interface:
crypto map newyork interface outsideStep 13
Tell the PIX Firewall to implicitly permit IPSec traffic:
sysopt connection permit-ipsecFor a complete configuration example of PIX Firewall 2, see Table 11-4. Table 11-4 does not reflect the Microsoft-related commands. To reflect the Microsoft-related commands, enter the Microsoft-related commands in place of the CA-related commands in the Table 11-4.
Digital Certificate Issued via an Encrypted Tunnel
This section shows an example of how to perform CA enrollment and certificate requests via a site-to-site VPN tunnel between two PIX Firewall units (PIX Firewall 1 and 2). In the illustrated example, the CA server with which both PIX Firewall units will enroll and from which both units request their certificates reside within the DMZ network of one PIX Firewall (PIX Firewall 1). PIX Firewall 2 is shown to perform its CA enrollment and certificate request via an encrypted tunnel. To accomplish this, a tunnel between the two VPN peers must first be established using a pre-shared key as the device authentication method. Once a tunnel is established, PIX Firewall 2 can perform its CA enrollment and certificate request via the tunnel.
The example configuration steps are shown to be performed on PIX Firewall 1 and 2 in two phases—Phase 1 and Phase 2. Phase 1 involves the following:
•
configuring the PIX Firewall units to establish a tunnel using a pre-shared key
•
enrolling and requesting the CA-signed certificates
The goal of the Phase 1 configurations is to successfully enroll the PIX Firewall with the CA server and obtain the CA-signed certificate. The order of your configurations for Phase 1 is important. Configure PIX Firewall1 before PIX Firewall 2. After Phase 1 is completed, proceed to Phase 2 configurations, which involves the following:
•
clearing the IKE and IPSec SAs on both units
•
configuring the PIX Firewall units to establish a tunnel using digital certificates
The order of configurations during Phase 2 is not important. You can perform Phase 2 configurations on PIX Firewall 2 before performing the Phase 2 configurations on PIX Firewall 1.
Note
The example CA server address is to be used for example purposes only.
This section includes the following topics:
•
Configuring PIX Firewall 1 to Obtain Certificate via Encrypted Tunnel
•
Configuring PIX Firewall 2 to Obtain Certificate via Encrypted Tunnel
This example uses the network diagram shown in Figure 11-5.
Figure 11-5 VPN Tunnel Network
Configuring PIX Firewall 1 to Obtain Certificate via Encrypted Tunnel
Phase 1
Note
The order of your configurations for Phase 1 is important. Configure PIX Firewall1 before PIX Firewall 2.
Follow these steps to configure PIX Firewall 1:
Step 1
Define a host name:
hostname NewYorkStep 2
Define the domain name:
domain-name example.comStep 3
Configure an IKE policy:
isakmp enable outsideisakmp policy 8 auth pre-shareisakmp key cisco address 209.165.200.229 netmask 255.255.255.255Step 4
Create a partial access list:
access-list 90 permit ip host 10.1.0.2 host 209.165.200.229Step 5
Configure NAT 0:
nat (dmz) 0 access-list 90Step 6
Configure a transform set that defines how the traffic will be protected:
crypto ipsec transform-set strong esp-3des esp-sha-hmacStep 7
Define a crypto map:
crypto map toSanJose 20 ipsec-isakmpcrypto map toSanJose 20 match address 90crypto map toSanJose 20 set transform-set strongcrypto map toSanJose 20 set peer 209.165.200.229Step 8
Apply the crypto map to the outside interface:
crypto map toSanJose interface outsideStep 9
Tell the PIX Firewall to implicitly permit IPSec traffic:
sysopt connection permit-ipsecStep 10
Generate the PIX Firewall RSA key pair:
ca generate rsa key 512This command is entered at the command line and does not get stored in the configuration.
Step 11
Define CA-related enrollment commands:
ca identity abcd 10.1.0.2:/certsrv/mscep/mscep.dllca configure abcd ra 1 20 crloptionalThese commands are stored in the configuration. The CA-related commands shown are specific to the Microsoft CA. The actual CA-related commands you configure depend on the CA you are using.
Step 12
Get the public key and the certificate of the CA server:
ca authenticate abcdThis command is entered at the command line and does not get stored in the configuration.
Step 13
Contact your CA administrator and send your certificate request:
ca enroll abcd cisco"cisco" is a challenge password. This can be anything. This command is entered at the command line and does not get stored in the configuration.Step 14
Save keys and certificates, and the CA commands (except those indicated) in Flash memory:
ca save allwrite memory
Note
Use the ca save all command any time you add, change, or delete ca commands in the configuration. This command is not stored in the configuration.
Phase 2
Follow these steps to configure PIX Firewall 1:
Step 1
Clear the IPSec SAs:
clear ipsec saStep 2
Clear the ISAKMP SAs:
clear isakmp saStep 3
Create a partial access list:
access-list 90 permit ip 192.168.12.0 255.255.255.0 10.0.0.0 255.0.0.0Step 4
Configure NAT 0:
nat (inside) 0 access-list 90Step 5
Specify the authentication method of rsa-signatures for the IKE policy:
isakmp policy 8 auth rsa-sig
Configuring PIX Firewall 2 to Obtain Certificate via Encrypted Tunnel
Phase 1
Note
The order of your configurations for Phase 1 is important. Before configuring PIX Firewall 2 for Phase 1, configure PIX Firewall1 for Phase 1.
Follow these steps to configure PIX Firewall 2:
Step 1
Define a host name:
hostname SanJoseStep 2
Define the domain name:
domain-name example.comStep 3
Configure an IKE policy:
isakmp enable outsideisakmp policy 8 auth pre-shareisakmp key cisco address 209.165.201.8 netmask 255.255.255.255Step 4
Create a partial access list:
access-list 80 permit ip host 209.165.200.229 host 10.1.0.2Step 5
Configure NAT 0:
nat (inside) 0 access-list 80Step 6
Configure a transform set that defines how the traffic will be protected:
crypto ipsec transform-set strong esp-3des esp-sha-hmacStep 7
Define a crypto map:
crypto map newyork 20 ipsec-isakmpcrypto map newyork 20 match address 80crypto map newyork 20 set transform-set strongcrypto map newyork 20 set peer 209.165.201.8Step 8
Apply the crypto map to the outside interface:
crypto map newyork interface outsideStep 9
Tell the PIX Firewall to implicitly permit IPSec traffic:
sysopt connection permit-ipsecStep 10
Generate the PIX Firewall RSA key pair:
ca generate rsa key 512This command is entered at the command line and does not get stored in the configuration.
Step 11
Define CA-related enrollment commands:
ca identity abcd 10.1.0.2:/certsrv/mscep/mscep.dllca configure abcd ra 1 20 crloptionalThese commands are stored in the configuration. The CA-related commands shown are specific to the Microsoft CA. The actual CA-related commands you configure depend on the CA you are using.
Step 12
Authenticate the CA by obtaining its public key and its certificate:
ca authenticate abcdThis command is entered at the command line and does not get stored in the configuration.
Step 13
Request signed certificates from your CA for your PIX Firewall's RSA key pair. Before entering this command, contact your CA administrator because they will have to authenticate your PIX Firewall manually before granting its certificate:
ca enroll abcd cisco"cisco" is a challenge password. This can be anything. This command is entered at the command line and does not get stored in the configuration.
Step 14
Save keys and certificates, and the CA commands (except those indicated) in Flash memory:
ca save allwrite memory
Note
Use the ca save all command any time you add, change, or delete ca commands in the configuration. This command is not stored in the configuration.
Phase 2
Follow these steps to configure PIX Firewall 2:
Step 1
Clear the IPSec SAs:
clear ipsec saStep 2
Clear the ISAKMP SAs:
clear isakmp saStep 3
Create a partial access list:
access-list 80 permit ip 10.0.0.0 255.0.0.0 192.168.12.0 255.255.255.0Step 4
Specify the authentication method of rsa-signatures for the IKE policy:
isakmp policy 8 auth rsa-sig





