Scep
These scenarios show how to configure the protocol SCEP to retrieve certificates from a PKI server; and then, establish a VPN site-to-site connection between two end-points.
Test SCEP Credentials Ready
Description
In this scenario, the credentials (X509 certificates) are retrieved before VPN settings are configured.
Scenario
Step 1: Set the following configuration in DUT0
:
set interfaces ethernet eth1 address 10.215.168.64/24 set interfaces ethernet eth1 tcp-mss 1200 set protocols static route 192.168.212.0/22 next-hop 10.215.168.1 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Set the following configuration in DUT2
:
set interfaces ethernet eth1 address 10.215.168.66/24 set interfaces ethernet eth1 tcp-mss 1200 set protocols static route 192.168.212.0/22 next-hop 10.215.168.1 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 3: Ping IP address 192.168.213.25
from DUT0
:
admin@DUT0$ ping 192.168.213.25 count 1 size 56 timeout 1Show output
PING 192.168.213.25 (192.168.213.25) 56(84) bytes of data. 64 bytes from 192.168.213.25: icmp_seq=1 ttl=126 time=0.669 ms --- 192.168.213.25 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.669/0.669/0.669/0.000 ms
Step 4: Ping IP address 192.168.213.25
from DUT2
:
admin@DUT2$ ping 192.168.213.25 count 1 size 56 timeout 1Show output
PING 192.168.213.25 (192.168.213.25) 56(84) bytes of data. 64 bytes from 192.168.213.25: icmp_seq=1 ttl=126 time=0.671 ms --- 192.168.213.25 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.671/0.671/0.671/0.000 ms
Step 5: Modify the following configuration lines in DUT0
:
set interfaces dummy dum0 address 192.168.1.1/24 set interfaces ethernet eth0 address 8.0.0.2/24 set protocols static route 0.0.0.0/0 next-hop 8.0.0.1 set system certificate scep csr CSR cgi-path CertSrv/mscep/mscep.dll/pkiclient.exe set system certificate scep csr CSR distinguished-names 'DC=scep, DC=com, CN=entity1' set system certificate scep csr CSR encrypted-password U2FsdGVkX189IHg5wyhdEpGUILLnn0nMnBrNmoIGFA74ZEDFd9US33Y7lsQBU1s8r0ZCjvJMAJM6N0l2MdASAg== set system certificate scep csr CSR url 'http://192.168.213.25/'
Step 6: Set the following configuration in DUT1
:
set interfaces ethernet eth0 address 8.0.0.1/24 set interfaces ethernet eth1 address 9.0.0.1/24 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 7: Modify the following configuration lines in DUT2
:
set interfaces dummy dum0 address 192.168.2.1/24 set interfaces ethernet eth0 address 9.0.0.2/24 set protocols static route 0.0.0.0/0 next-hop 9.0.0.1 set system certificate scep csr CSR cgi-path CertSrv/mscep/mscep.dll/pkiclient.exe set system certificate scep csr CSR distinguished-names 'DC=scep, DC=com, CN=entity2' set system certificate scep csr CSR encrypted-password U2FsdGVkX1/YspZr3FOR2KHS6YDkOiHC7r+7aZdx2cum3HF+4ozhIYBoSvC0lqecvtSU1j8lj15K4H4E3lX04g== set system certificate scep csr CSR url 'http://192.168.213.25/'
Step 8: Run command pki scep show CSR
at DUT0
and check if output matches the following regular expressions:
CA_CERT\s+Valid USER_CERT\s+ValidShow output
----------------------------------------------------------------------- Certificate Status NotBefore NotAfter ----------------------------------------------------------------------- CA_CERT Valid Dec 14 10:00:35 2023 GMT Dec 14 10:10:34 2053 GMT USER_CERT Valid Jul 30 09:52:53 2024 GMT Jul 30 09:52:53 2026 GMT
Step 9: Run command pki scep show CSR
at DUT2
and check if output matches the following regular expressions:
CA_CERT\s+Valid USER_CERT\s+ValidShow output
----------------------------------------------------------------------- Certificate Status NotBefore NotAfter ----------------------------------------------------------------------- CA_CERT Valid Dec 14 10:00:35 2023 GMT Dec 14 10:10:34 2053 GMT USER_CERT Valid Jul 30 09:52:54 2024 GMT Jul 30 09:52:54 2026 GMT
Note
Now, the credentials are ready, so let’s configure the VPN site-to-site tunnel.
Step 10: Modify the following configuration lines in DUT0
:
set vpn ipsec auth-profile AUTH local csr CSR set vpn ipsec auth-profile AUTH mirror-config false set vpn ipsec auth-profile AUTH mode x509 set vpn ipsec esp-group ESP-POLICY lifetime 28800 set vpn ipsec esp-group ESP-POLICY proposal 1 encryption null set vpn ipsec esp-group ESP-POLICY proposal 1 hash sha1 set vpn ipsec esp-group ESP-POLICY proposal 1 pfs dh-group15 set vpn ipsec ike-group IKE-POLICY key-exchange ikev2 set vpn ipsec ike-group IKE-POLICY lifetime 28800 set vpn ipsec ike-group IKE-POLICY proposal 1 dh-group 15 set vpn ipsec ike-group IKE-POLICY proposal 1 encryption null set vpn ipsec ike-group IKE-POLICY proposal 1 hash sha1 set vpn ipsec ike-group IKE-POLICY proposal 2 dh-group 15 set vpn ipsec ike-group IKE-POLICY proposal 2 encryption aes256 set vpn ipsec ike-group IKE-POLICY proposal 2 hash sha1 set vpn ipsec logging log-types any log-level 1 set vpn ipsec site-to-site peer PEER auth-profile AUTH set vpn ipsec site-to-site peer PEER connection-type initiate set vpn ipsec site-to-site peer PEER ike-group IKE-POLICY set vpn ipsec site-to-site peer PEER local-address 8.0.0.2 set vpn ipsec site-to-site peer PEER remote-address 9.0.0.2 set vpn ipsec site-to-site peer PEER tunnel 1 esp-group ESP-POLICY set vpn ipsec site-to-site peer PEER tunnel 1 local prefix 192.168.1.0/24 set vpn ipsec site-to-site peer PEER tunnel 1 remote prefix 192.168.2.0/24
Step 11: Modify the following configuration lines in DUT2
:
set vpn ipsec auth-profile AUTH local csr CSR set vpn ipsec auth-profile AUTH mirror-config false set vpn ipsec auth-profile AUTH mode x509 set vpn ipsec esp-group ESP-POLICY lifetime 28800 set vpn ipsec esp-group ESP-POLICY proposal 1 encryption null set vpn ipsec esp-group ESP-POLICY proposal 1 hash sha1 set vpn ipsec esp-group ESP-POLICY proposal 1 pfs dh-group15 set vpn ipsec ike-group IKE-POLICY key-exchange ikev2 set vpn ipsec ike-group IKE-POLICY lifetime 28800 set vpn ipsec ike-group IKE-POLICY proposal 1 dh-group 15 set vpn ipsec ike-group IKE-POLICY proposal 1 encryption null set vpn ipsec ike-group IKE-POLICY proposal 1 hash sha1 set vpn ipsec ike-group IKE-POLICY proposal 2 dh-group 15 set vpn ipsec ike-group IKE-POLICY proposal 2 encryption aes256 set vpn ipsec ike-group IKE-POLICY proposal 2 hash sha1 set vpn ipsec logging log-types any log-level 1 set vpn ipsec site-to-site peer PEER auth-profile AUTH set vpn ipsec site-to-site peer PEER connection-type respond set vpn ipsec site-to-site peer PEER ike-group IKE-POLICY set vpn ipsec site-to-site peer PEER local-address 9.0.0.2 set vpn ipsec site-to-site peer PEER remote-address 8.0.0.2 set vpn ipsec site-to-site peer PEER tunnel 1 esp-group ESP-POLICY set vpn ipsec site-to-site peer PEER tunnel 1 local prefix 192.168.2.0/24 set vpn ipsec site-to-site peer PEER tunnel 1 remote prefix 192.168.1.0/24
Step 12: Run command vpn ipsec show sa
at DUT0
and check if output matches the following regular expressions:
vpn-peer-PEER: \#\d, ESTABLISHED, IKEv2Show output
vpn-peer-PEER: #1, ESTABLISHED, IKEv2, 377fb69161c087b3_i* 0dd1d27a3621c864_r local 'DC=scep, DC=com, CN=entity1' @ 8.0.0.2[500] remote 'DC=scep, DC=com, CN=entity2' @ 9.0.0.2[500] NULL/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_3072 established 19s ago, rekeying in 22578s peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96 installed 19s ago, rekeying in 22768s, expires in 31661s in c5713f85, 0 bytes, 0 packets out ce92b294, 0 bytes, 0 packets local 192.168.1.0/24 remote 192.168.2.0/24
Step 13: Run command vpn ipsec show sa
at DUT2
and check if output matches the following regular expressions:
vpn-peer-PEER: \#\d, ESTABLISHED, IKEv2Show output
vpn-peer-PEER: #1, ESTABLISHED, IKEv2, 377fb69161c087b3_i 0dd1d27a3621c864_r* local 'DC=scep, DC=com, CN=entity2' @ 9.0.0.2[500] remote 'DC=scep, DC=com, CN=entity1' @ 8.0.0.2[500] NULL/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_3072 established 19s ago, rekeying in 25640s peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96 installed 19s ago, rekeying in 15161s, expires in 31661s in ce92b294, 0 bytes, 0 packets out c5713f85, 0 bytes, 0 packets local 192.168.2.0/24 remote 192.168.1.0/24
Step 14: Run command pki show remote-certificate site-to-site PEER filter-issuer TELDAT
at DUT0
and check if output contains the following tokens:
DC = scep, DC = com, CN = entity2Show output
Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:4d:5e:ea:0f:f4:be:99:b1:bd:91:00:00:00:00:4d:5e Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Jul 30 09:52:53 2024 GMT Not After : Jul 30 09:52:53 2026 GMT Subject: DC = scep, DC = com, CN = entity1 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:ac:75:3b:57:1c:08:88:74:45:6a:5c:f8:96:eb: f1:8a:78:29:9a:1c:6f:e0:00:58:9e:30:3c:a1:8a: 52:9d:62:d0:8d:22:89:ab:fb:02:9e:e7:c3:fe:21: a3:62:e9:c3:3f:31:30:62:d8:ad:19:fa:c0:4e:21: 96:34:23:aa:be:ad:45:5a:7b:40:a8:8c:48:d7:17: 4e:e0:ad:f1:c9:75:2a:c0:b3:6a:22:87:7d:8e:ef: 99:d3:2f:98:27:06:62:ac:39:65:46:28:2a:af:76: c7:38:6f:2b:04:06:a3:c1:0b:34:42:38:90:dd:56: 1a:bb:90:40:b2:fd:a2:1f:6a:8b:10:48:66:f1:04: ae:29:23:9a:2c:4a:d8:cc:06:41:cc:40:11:b3:a2: 6e:87:66:9c:c1:9f:86:be:e3:1a:26:49:d7:7d:c9: 49:8b:c4:60:c8:9e:cf:6d:87:3f:62:08:de:3d:f9: 8a:55:b5:24:c1:a2:d3:c3:59:c4:fd:14:27:76:25: df:20:60:6a:06:98:75:82:df:24:5c:21:12:3e:f9: 83:b2:ea:cf:a0:fd:f1:92:da:bd:da:8b:46:2d:a1: 1e:d1:bf:8f:9b:61:09:16:d5:c3:4c:a2:ac:12:db: b4:0f:07:34:46:92:c7:a5:1c:3d:5d:a5:4b:eb:fb: f3:85 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: BE:68:E6:AB:5E:40:12:CC:AF:77:DB:59:D7:51:DC:E2:0E:84:82:AC X509v3 Authority Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 Authority Information Access: CA Issuers - URI:ldap:///CN=scep-TELDATPKI-CA,CN=AIA,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=scep,DC=com?cACertificate?base?objectClass=certificationAuthority X509v3 Key Usage: critical Digital Signature, Key Encipherment, Data Encipherment 1.3.6.1.4.1.311.21.7: 0..&+.....7.....3......./...(...f<...[...]..d... X509v3 Extended Key Usage: 1.3.6.1.4.1.311.20.1, Microsoft Encrypted File System, Code Signing, Any Extended Key Usage, TLS Web Server Authentication, Signing KDC Response, TLS Web Client Authentication, 1.3.6.1.4.1.311.21.5, 1.3.6.1.4.1.311.20.2.1, 1.3.6.1.5.5.8.2.2 1.3.6.1.4.1.311.21.10: 0y0...+.....7..0.. +.....7 ..0 ..+.......0...U.%.0 ..+.......0...+......0 ..+.......0...+.....7..0.. +.....7...0 ..+....... S/MIME Capabilities: 050...*.H.. ......0...*.H.. ......0...+....0 ..*.H.. .. Signature Algorithm: sha256WithRSAEncryption Signature Value: 3e:1c:53:9b:26:b5:8d:cf:75:9c:c0:05:96:58:e2:d6:b7:35: dc:f1:78:ce:76:f6:5b:63:5c:6b:09:6b:6c:f0:a5:66:30:c1: 65:20:dd:16:3a:0f:9b:e7:58:20:73:92:d6:9d:3c:8c:94:02: 9b:2e:29:72:7a:20:cc:1a:f5:1d:dc:3b:2b:dd:17:09:96:80: 5b:9a:d6:bc:c7:9a:57:d2:30:db:df:98:dc:cf:98:25:cb:27: ee:1f:eb:7b:95:8b:07:46:2d:90:3b:81:b2:8a:76:72:5c:b5: 8a:7c:16:e1:48:82:64:0f:a5:1a:22:35:90:a3:7b:87:fb:8a: 2d:7f:76:27:46:93:0d:05:04:a6:a3:07:f9:52:f6:a2:91:6d: 71:7e:00:61:b7:fb:c6:d0:98:20:57:8e:d9:11:dd:43:ef:1d: cb:6e:8d:ec:25:17:1a:cf:0b:79:f9:5a:62:99:21:03:a0:0f: b1:ad:fd:fe:68:0c:3c:fd:80:bf:7f:12:1c:68:80:88:bd:91: 3f:c9:71:06:ca:f8:65:61:e3:2c:39:ce:85:13:84:d9:13:ab: e9:10:b9:cb:f9:4d:7b:b4:f0:2e:07:a9:05:16:68:9d:8d:f8: 7a:fd:2a:58:8b:3f:b3:25:9b:3a:47:bd:22:81:63:3d:02:59: ca:c5:95:55 ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:4d:5f:dc:42:f4:0b:bb:49:ca:42:00:00:00:00:4d:5f Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Jul 30 09:52:54 2024 GMT Not After : Jul 30 09:52:54 2026 GMT Subject: DC = scep, DC = com, CN = entity2 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:db:87:d3:ba:b3:2f:97:a9:77:6d:91:1f:8a:8e: cf:d8:f0:a1:5b:2e:6a:3d:9b:85:da:73:12:75:55: b4:80:44:7b:1c:cd:ca:44:ce:32:4f:6e:e0:f9:1d: 2a:2e:88:ed:f3:f3:12:ce:8b:ba:d4:2d:35:cb:4f: 4b:9d:f7:35:23:ad:a5:f8:08:ac:b9:2a:89:3c:a6: 2e:90:2d:7a:c9:b0:cc:ea:e3:87:95:ff:63:16:c8: f6:d0:59:f6:3e:84:4c:89:60:10:c3:38:e8:84:c8: 5d:09:6a:d1:52:1c:c0:70:8f:33:f8:7a:36:ac:2a: 88:dd:96:87:6a:e9:27:14:33:e3:cf:23:f6:9d:b5: 0d:3c:87:ab:35:bc:8c:5a:8f:84:d3:90:5c:57:ee: 99:0a:73:f1:85:bd:65:2d:aa:35:f0:a5:c9:de:fd: 5d:0e:84:5d:5e:08:f6:ef:81:e1:22:97:ea:7a:7d: 32:83:64:c6:d7:0b:c3:14:66:13:7e:6d:82:ec:ab: 79:55:47:76:b2:3f:fc:b8:55:c5:a9:f6:58:27:f0: 69:84:99:30:89:e2:c3:43:e2:ce:e8:67:cc:dc:14: b8:ae:fc:89:54:4a:bc:46:60:e3:f5:46:5d:5a:50: b1:ab:16:e3:59:ca:80:ca:9a:2f:fc:a7:f8:23:78: 34:d7 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: C4:E0:4D:3A:5B:21:6F:5A:0F:64:79:EF:5A:42:AF:6A:55:78:9A:B5 X509v3 Authority Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 Authority Information Access: CA Issuers - URI:ldap:///CN=scep-TELDATPKI-CA,CN=AIA,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=scep,DC=com?cACertificate?base?objectClass=certificationAuthority X509v3 Key Usage: critical Digital Signature, Key Encipherment, Data Encipherment 1.3.6.1.4.1.311.21.7: 0..&+.....7.....3......./...(...f<...[...]..d... X509v3 Extended Key Usage: 1.3.6.1.4.1.311.20.1, Microsoft Encrypted File System, Code Signing, Any Extended Key Usage, TLS Web Server Authentication, Signing KDC Response, TLS Web Client Authentication, 1.3.6.1.4.1.311.21.5, 1.3.6.1.4.1.311.20.2.1, 1.3.6.1.5.5.8.2.2 1.3.6.1.4.1.311.21.10: 0y0...+.....7..0.. +.....7 ..0 ..+.......0...U.%.0 ..+.......0...+......0 ..+.......0...+.....7..0.. +.....7...0 ..+....... S/MIME Capabilities: 050...*.H.. ......0...*.H.. ......0...+....0 ..*.H.. .. Signature Algorithm: sha256WithRSAEncryption Signature Value: 39:07:6a:74:e1:44:3c:31:16:eb:1f:07:b3:6a:58:f7:cf:87: e4:8d:12:2a:ee:d9:14:fa:a1:b9:ed:db:31:b7:81:55:27:88: 29:73:05:86:55:20:cc:81:7a:97:bf:5d:4f:78:16:c9:70:ba: 04:7a:ae:72:fb:77:f7:c1:9e:b5:c6:f2:d2:94:b3:62:52:7c: 5c:28:c3:f9:12:20:99:85:49:82:71:6f:56:50:10:1a:93:ed: e0:54:dc:7b:05:e2:bb:27:55:6b:2f:58:98:5e:a0:66:a8:e6: 79:67:d9:73:02:6e:aa:f9:09:2c:7e:12:f8:36:4b:8c:ce:d3: d4:e6:59:f4:ab:c1:de:ad:0d:78:2a:46:b3:5e:fb:3c:c0:63: a4:d2:b6:61:21:3c:3a:54:1e:fb:95:af:06:af:02:e8:36:d2: b8:05:63:56:a9:a1:93:4b:fe:f4:fe:bd:72:02:cd:3b:8a:5b: 64:8c:00:86:73:8d:00:e6:84:13:48:be:db:c3:38:49:53:37: 79:79:b8:7c:7a:d7:44:d6:dd:84:8a:96:a1:6e:39:9b:8c:e0: 17:6b:4f:85:00:d4:d6:6b:7a:de:76:6b:7a:99:b3:9c:ce:c8: f1:a4:ae:95:c1:a4:ab:97:74:09:c3:0d:91:32:ae:23:ec:00: ca:0f:b5:35 ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1a:ea:6d:57:94:fe:a5:9c:42:14:81:ca:79:1b:75:d7 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Dec 14 10:00:35 2023 GMT Not After : Dec 14 10:10:34 2053 GMT Subject: DC = com, DC = scep, CN = scep-TELDATPKI-CA Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:bf:c5:be:9a:32:e2:a5:42:6c:b8:42:b5:7b:21: e5:71:b0:79:46:b1:41:bd:25:c3:40:e1:33:8e:1a: 3b:12:ca:26:1e:f3:c9:44:d6:b5:9a:03:cb:14:f5: 82:6f:a8:7e:47:bc:e7:e0:b3:1f:c6:ff:84:54:2b: fd:b6:0d:e1:4f:c3:b7:6a:0f:98:99:c2:8a:b6:b8: 9d:f3:5d:36:f3:af:48:0f:7d:cd:5a:6c:a8:10:0c: 02:b2:0c:af:b3:d8:c3:b4:de:0e:b8:15:6d:4a:f0: 4e:67:7d:c2:3a:dd:03:f7:3d:80:69:63:2c:f9:97: fa:d3:4d:80:13:dd:24:ac:54:ad:f7:cc:25:94:41: fd:2d:e8:2a:8e:a8:91:96:89:d2:9f:0c:17:03:99: 11:f5:ce:2c:db:78:b7:09:75:d1:96:af:58:82:58: 62:86:63:01:16:68:fc:06:db:92:d0:c5:6d:9d:6d: fd:5d:13:b0:2b:37:2f:9c:ae:3b:e3:34:d6:42:7b: 12:01:93:da:ea:b4:c8:ba:9f:57:35:4f:6a:a1:95: c2:5f:40:9d:6b:c1:72:ec:91:9b:72:cc:6a:b8:9e: dc:08:f0:53:09:4f:d4:09:75:28:99:56:f5:66:be: 7d:ca:59:0e:9b:50:4d:be:98:04:20:4d:98:e6:5f: 58:c5 Exponent: 65537 (0x10001) X509v3 extensions: 1.3.6.1.4.1.311.20.2: ...C.A X509v3 Key Usage: critical Digital Signature, Certificate Sign, CRL Sign X509v3 Basic Constraints: critical CA:TRUE X509v3 Subject Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 1.3.6.1.4.1.311.21.1: ... Signature Algorithm: sha256WithRSAEncryption Signature Value: 6c:44:b8:33:b1:75:08:00:07:7f:2b:a4:80:f2:6a:ff:94:4c: ee:85:cc:61:db:49:59:19:cc:01:2f:c5:45:4b:d2:8d:dc:77: 54:7d:3c:34:75:28:c9:16:28:94:15:51:3d:e6:f7:dc:9b:d8: cd:63:bb:d3:ec:fc:ae:32:7e:cd:be:50:c2:9f:f7:91:de:9e: bb:44:d3:24:09:4d:dd:5f:67:ad:58:ad:7e:cc:9e:9f:8f:c8: 48:f5:d9:03:9a:a3:df:cd:e5:8a:e0:03:9e:36:f9:ba:fd:ff: 0b:a0:15:8c:66:9f:49:bc:e8:94:3e:61:7d:78:ff:48:66:d1: 13:54:1d:41:61:63:28:ba:d9:f8:6a:c4:df:48:16:d2:69:39: c0:38:ea:54:84:e0:40:17:d9:2c:43:58:be:e4:a1:5d:e2:6c: e9:23:55:b7:6e:61:8f:4e:72:4f:c2:d5:c4:7a:74:f5:8e:b3: 0e:2c:bc:5d:7d:ba:f8:ae:3b:f0:d6:b0:2e:1f:3f:fd:2d:77: 7d:52:bf:f7:07:ba:9d:64:60:57:1d:68:34:bb:cb:44:ac:dd: 55:c2:40:a1:98:84:b7:74:50:a4:50:95:0e:12:59:96:b9:af: bc:b3:09:e6:67:39:26:7e:b0:41:07:90:57:72:40:2a:11:7a: 2e:ac:be:b8
Step 15: Run command pki show remote-certificate site-to-site PEER filter-issuer TELDAT
at DUT2
and check if output contains the following tokens:
DC = scep, DC = com, CN = entity1Show output
Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:4d:5e:ea:0f:f4:be:99:b1:bd:91:00:00:00:00:4d:5e Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Jul 30 09:52:53 2024 GMT Not After : Jul 30 09:52:53 2026 GMT Subject: DC = scep, DC = com, CN = entity1 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:ac:75:3b:57:1c:08:88:74:45:6a:5c:f8:96:eb: f1:8a:78:29:9a:1c:6f:e0:00:58:9e:30:3c:a1:8a: 52:9d:62:d0:8d:22:89:ab:fb:02:9e:e7:c3:fe:21: a3:62:e9:c3:3f:31:30:62:d8:ad:19:fa:c0:4e:21: 96:34:23:aa:be:ad:45:5a:7b:40:a8:8c:48:d7:17: 4e:e0:ad:f1:c9:75:2a:c0:b3:6a:22:87:7d:8e:ef: 99:d3:2f:98:27:06:62:ac:39:65:46:28:2a:af:76: c7:38:6f:2b:04:06:a3:c1:0b:34:42:38:90:dd:56: 1a:bb:90:40:b2:fd:a2:1f:6a:8b:10:48:66:f1:04: ae:29:23:9a:2c:4a:d8:cc:06:41:cc:40:11:b3:a2: 6e:87:66:9c:c1:9f:86:be:e3:1a:26:49:d7:7d:c9: 49:8b:c4:60:c8:9e:cf:6d:87:3f:62:08:de:3d:f9: 8a:55:b5:24:c1:a2:d3:c3:59:c4:fd:14:27:76:25: df:20:60:6a:06:98:75:82:df:24:5c:21:12:3e:f9: 83:b2:ea:cf:a0:fd:f1:92:da:bd:da:8b:46:2d:a1: 1e:d1:bf:8f:9b:61:09:16:d5:c3:4c:a2:ac:12:db: b4:0f:07:34:46:92:c7:a5:1c:3d:5d:a5:4b:eb:fb: f3:85 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: BE:68:E6:AB:5E:40:12:CC:AF:77:DB:59:D7:51:DC:E2:0E:84:82:AC X509v3 Authority Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 Authority Information Access: CA Issuers - URI:ldap:///CN=scep-TELDATPKI-CA,CN=AIA,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=scep,DC=com?cACertificate?base?objectClass=certificationAuthority X509v3 Key Usage: critical Digital Signature, Key Encipherment, Data Encipherment 1.3.6.1.4.1.311.21.7: 0..&+.....7.....3......./...(...f<...[...]..d... X509v3 Extended Key Usage: 1.3.6.1.4.1.311.20.1, Microsoft Encrypted File System, Code Signing, Any Extended Key Usage, TLS Web Server Authentication, Signing KDC Response, TLS Web Client Authentication, 1.3.6.1.4.1.311.21.5, 1.3.6.1.4.1.311.20.2.1, 1.3.6.1.5.5.8.2.2 1.3.6.1.4.1.311.21.10: 0y0...+.....7..0.. +.....7 ..0 ..+.......0...U.%.0 ..+.......0...+......0 ..+.......0...+.....7..0.. +.....7...0 ..+....... S/MIME Capabilities: 050...*.H.. ......0...*.H.. ......0...+....0 ..*.H.. .. Signature Algorithm: sha256WithRSAEncryption Signature Value: 3e:1c:53:9b:26:b5:8d:cf:75:9c:c0:05:96:58:e2:d6:b7:35: dc:f1:78:ce:76:f6:5b:63:5c:6b:09:6b:6c:f0:a5:66:30:c1: 65:20:dd:16:3a:0f:9b:e7:58:20:73:92:d6:9d:3c:8c:94:02: 9b:2e:29:72:7a:20:cc:1a:f5:1d:dc:3b:2b:dd:17:09:96:80: 5b:9a:d6:bc:c7:9a:57:d2:30:db:df:98:dc:cf:98:25:cb:27: ee:1f:eb:7b:95:8b:07:46:2d:90:3b:81:b2:8a:76:72:5c:b5: 8a:7c:16:e1:48:82:64:0f:a5:1a:22:35:90:a3:7b:87:fb:8a: 2d:7f:76:27:46:93:0d:05:04:a6:a3:07:f9:52:f6:a2:91:6d: 71:7e:00:61:b7:fb:c6:d0:98:20:57:8e:d9:11:dd:43:ef:1d: cb:6e:8d:ec:25:17:1a:cf:0b:79:f9:5a:62:99:21:03:a0:0f: b1:ad:fd:fe:68:0c:3c:fd:80:bf:7f:12:1c:68:80:88:bd:91: 3f:c9:71:06:ca:f8:65:61:e3:2c:39:ce:85:13:84:d9:13:ab: e9:10:b9:cb:f9:4d:7b:b4:f0:2e:07:a9:05:16:68:9d:8d:f8: 7a:fd:2a:58:8b:3f:b3:25:9b:3a:47:bd:22:81:63:3d:02:59: ca:c5:95:55 ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:4d:5f:dc:42:f4:0b:bb:49:ca:42:00:00:00:00:4d:5f Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Jul 30 09:52:54 2024 GMT Not After : Jul 30 09:52:54 2026 GMT Subject: DC = scep, DC = com, CN = entity2 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:db:87:d3:ba:b3:2f:97:a9:77:6d:91:1f:8a:8e: cf:d8:f0:a1:5b:2e:6a:3d:9b:85:da:73:12:75:55: b4:80:44:7b:1c:cd:ca:44:ce:32:4f:6e:e0:f9:1d: 2a:2e:88:ed:f3:f3:12:ce:8b:ba:d4:2d:35:cb:4f: 4b:9d:f7:35:23:ad:a5:f8:08:ac:b9:2a:89:3c:a6: 2e:90:2d:7a:c9:b0:cc:ea:e3:87:95:ff:63:16:c8: f6:d0:59:f6:3e:84:4c:89:60:10:c3:38:e8:84:c8: 5d:09:6a:d1:52:1c:c0:70:8f:33:f8:7a:36:ac:2a: 88:dd:96:87:6a:e9:27:14:33:e3:cf:23:f6:9d:b5: 0d:3c:87:ab:35:bc:8c:5a:8f:84:d3:90:5c:57:ee: 99:0a:73:f1:85:bd:65:2d:aa:35:f0:a5:c9:de:fd: 5d:0e:84:5d:5e:08:f6:ef:81:e1:22:97:ea:7a:7d: 32:83:64:c6:d7:0b:c3:14:66:13:7e:6d:82:ec:ab: 79:55:47:76:b2:3f:fc:b8:55:c5:a9:f6:58:27:f0: 69:84:99:30:89:e2:c3:43:e2:ce:e8:67:cc:dc:14: b8:ae:fc:89:54:4a:bc:46:60:e3:f5:46:5d:5a:50: b1:ab:16:e3:59:ca:80:ca:9a:2f:fc:a7:f8:23:78: 34:d7 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: C4:E0:4D:3A:5B:21:6F:5A:0F:64:79:EF:5A:42:AF:6A:55:78:9A:B5 X509v3 Authority Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 Authority Information Access: CA Issuers - URI:ldap:///CN=scep-TELDATPKI-CA,CN=AIA,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=scep,DC=com?cACertificate?base?objectClass=certificationAuthority X509v3 Key Usage: critical Digital Signature, Key Encipherment, Data Encipherment 1.3.6.1.4.1.311.21.7: 0..&+.....7.....3......./...(...f<...[...]..d... X509v3 Extended Key Usage: 1.3.6.1.4.1.311.20.1, Microsoft Encrypted File System, Code Signing, Any Extended Key Usage, TLS Web Server Authentication, Signing KDC Response, TLS Web Client Authentication, 1.3.6.1.4.1.311.21.5, 1.3.6.1.4.1.311.20.2.1, 1.3.6.1.5.5.8.2.2 1.3.6.1.4.1.311.21.10: 0y0...+.....7..0.. +.....7 ..0 ..+.......0...U.%.0 ..+.......0...+......0 ..+.......0...+.....7..0.. +.....7...0 ..+....... S/MIME Capabilities: 050...*.H.. ......0...*.H.. ......0...+....0 ..*.H.. .. Signature Algorithm: sha256WithRSAEncryption Signature Value: 39:07:6a:74:e1:44:3c:31:16:eb:1f:07:b3:6a:58:f7:cf:87: e4:8d:12:2a:ee:d9:14:fa:a1:b9:ed:db:31:b7:81:55:27:88: 29:73:05:86:55:20:cc:81:7a:97:bf:5d:4f:78:16:c9:70:ba: 04:7a:ae:72:fb:77:f7:c1:9e:b5:c6:f2:d2:94:b3:62:52:7c: 5c:28:c3:f9:12:20:99:85:49:82:71:6f:56:50:10:1a:93:ed: e0:54:dc:7b:05:e2:bb:27:55:6b:2f:58:98:5e:a0:66:a8:e6: 79:67:d9:73:02:6e:aa:f9:09:2c:7e:12:f8:36:4b:8c:ce:d3: d4:e6:59:f4:ab:c1:de:ad:0d:78:2a:46:b3:5e:fb:3c:c0:63: a4:d2:b6:61:21:3c:3a:54:1e:fb:95:af:06:af:02:e8:36:d2: b8:05:63:56:a9:a1:93:4b:fe:f4:fe:bd:72:02:cd:3b:8a:5b: 64:8c:00:86:73:8d:00:e6:84:13:48:be:db:c3:38:49:53:37: 79:79:b8:7c:7a:d7:44:d6:dd:84:8a:96:a1:6e:39:9b:8c:e0: 17:6b:4f:85:00:d4:d6:6b:7a:de:76:6b:7a:99:b3:9c:ce:c8: f1:a4:ae:95:c1:a4:ab:97:74:09:c3:0d:91:32:ae:23:ec:00: ca:0f:b5:35 ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1a:ea:6d:57:94:fe:a5:9c:42:14:81:ca:79:1b:75:d7 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Dec 14 10:00:35 2023 GMT Not After : Dec 14 10:10:34 2053 GMT Subject: DC = com, DC = scep, CN = scep-TELDATPKI-CA Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:bf:c5:be:9a:32:e2:a5:42:6c:b8:42:b5:7b:21: e5:71:b0:79:46:b1:41:bd:25:c3:40:e1:33:8e:1a: 3b:12:ca:26:1e:f3:c9:44:d6:b5:9a:03:cb:14:f5: 82:6f:a8:7e:47:bc:e7:e0:b3:1f:c6:ff:84:54:2b: fd:b6:0d:e1:4f:c3:b7:6a:0f:98:99:c2:8a:b6:b8: 9d:f3:5d:36:f3:af:48:0f:7d:cd:5a:6c:a8:10:0c: 02:b2:0c:af:b3:d8:c3:b4:de:0e:b8:15:6d:4a:f0: 4e:67:7d:c2:3a:dd:03:f7:3d:80:69:63:2c:f9:97: fa:d3:4d:80:13:dd:24:ac:54:ad:f7:cc:25:94:41: fd:2d:e8:2a:8e:a8:91:96:89:d2:9f:0c:17:03:99: 11:f5:ce:2c:db:78:b7:09:75:d1:96:af:58:82:58: 62:86:63:01:16:68:fc:06:db:92:d0:c5:6d:9d:6d: fd:5d:13:b0:2b:37:2f:9c:ae:3b:e3:34:d6:42:7b: 12:01:93:da:ea:b4:c8:ba:9f:57:35:4f:6a:a1:95: c2:5f:40:9d:6b:c1:72:ec:91:9b:72:cc:6a:b8:9e: dc:08:f0:53:09:4f:d4:09:75:28:99:56:f5:66:be: 7d:ca:59:0e:9b:50:4d:be:98:04:20:4d:98:e6:5f: 58:c5 Exponent: 65537 (0x10001) X509v3 extensions: 1.3.6.1.4.1.311.20.2: ...C.A X509v3 Key Usage: critical Digital Signature, Certificate Sign, CRL Sign X509v3 Basic Constraints: critical CA:TRUE X509v3 Subject Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 1.3.6.1.4.1.311.21.1: ... Signature Algorithm: sha256WithRSAEncryption Signature Value: 6c:44:b8:33:b1:75:08:00:07:7f:2b:a4:80:f2:6a:ff:94:4c: ee:85:cc:61:db:49:59:19:cc:01:2f:c5:45:4b:d2:8d:dc:77: 54:7d:3c:34:75:28:c9:16:28:94:15:51:3d:e6:f7:dc:9b:d8: cd:63:bb:d3:ec:fc:ae:32:7e:cd:be:50:c2:9f:f7:91:de:9e: bb:44:d3:24:09:4d:dd:5f:67:ad:58:ad:7e:cc:9e:9f:8f:c8: 48:f5:d9:03:9a:a3:df:cd:e5:8a:e0:03:9e:36:f9:ba:fd:ff: 0b:a0:15:8c:66:9f:49:bc:e8:94:3e:61:7d:78:ff:48:66:d1: 13:54:1d:41:61:63:28:ba:d9:f8:6a:c4:df:48:16:d2:69:39: c0:38:ea:54:84:e0:40:17:d9:2c:43:58:be:e4:a1:5d:e2:6c: e9:23:55:b7:6e:61:8f:4e:72:4f:c2:d5:c4:7a:74:f5:8e:b3: 0e:2c:bc:5d:7d:ba:f8:ae:3b:f0:d6:b0:2e:1f:3f:fd:2d:77: 7d:52:bf:f7:07:ba:9d:64:60:57:1d:68:34:bb:cb:44:ac:dd: 55:c2:40:a1:98:84:b7:74:50:a4:50:95:0e:12:59:96:b9:af: bc:b3:09:e6:67:39:26:7e:b0:41:07:90:57:72:40:2a:11:7a: 2e:ac:be:b8
Step 16: Ping IP address 192.168.2.1
from DUT0
:
admin@DUT0$ ping 192.168.2.1 local-address 192.168.1.1 count 1 size 56 timeout 1Show output
PING 192.168.2.1 (192.168.2.1) from 192.168.1.1 : 56(84) bytes of data. 64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=0.444 ms --- 192.168.2.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.444/0.444/0.444/0.000 ms
Step 17: Ping IP address 192.168.1.1
from DUT2
:
admin@DUT2$ ping 192.168.1.1 local-address 192.168.2.1 count 1 size 56 timeout 1Show output
PING 192.168.1.1 (192.168.1.1) from 192.168.2.1 : 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.437 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.437/0.437/0.437/0.000 ms
Test SCEP Credentials Not Ready
Description
In this scenario, the credentials (X509 certificates) are not available when the VPN configuration is committed. However, once the credentials are downloaded, the VPN tunnel is set-up automatically.
Scenario
Step 1: Set the following configuration in DUT0
:
set interfaces ethernet eth1 address 10.215.168.64/24 set interfaces ethernet eth1 tcp-mss 1200 set protocols static route 192.168.212.0/22 next-hop 10.215.168.1 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Set the following configuration in DUT2
:
set interfaces ethernet eth1 address 10.215.168.66/24 set interfaces ethernet eth1 tcp-mss 1200 set protocols static route 192.168.212.0/22 next-hop 10.215.168.1 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 3: Ping IP address 192.168.213.25
from DUT0
:
admin@DUT0$ ping 192.168.213.25 count 1 size 56 timeout 1Show output
PING 192.168.213.25 (192.168.213.25) 56(84) bytes of data. 64 bytes from 192.168.213.25: icmp_seq=1 ttl=126 time=0.614 ms --- 192.168.213.25 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.614/0.614/0.614/0.000 ms
Step 4: Ping IP address 192.168.213.25
from DUT2
:
admin@DUT2$ ping 192.168.213.25 count 1 size 56 timeout 1Show output
PING 192.168.213.25 (192.168.213.25) 56(84) bytes of data. 64 bytes from 192.168.213.25: icmp_seq=1 ttl=126 time=0.742 ms --- 192.168.213.25 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.742/0.742/0.742/0.000 ms
Step 5: Modify the following configuration lines in DUT0
:
set interfaces dummy dum0 address 192.168.1.1/24 set interfaces ethernet eth0 address 8.0.0.2/24 set protocols static route 0.0.0.0/0 next-hop 8.0.0.1 set system certificate scep csr CSR cgi-path CertSrv/mscep/mscep.dll/pkiclient.exe set system certificate scep csr CSR distinguished-names 'DC=scep, DC=com, CN=entity1' set system certificate scep csr CSR encrypted-password U2FsdGVkX19c7v2yH1D7wfvQWjK66lGVUSS8JMqnGzBjJaVW1xYz7A+jOjoimCsXsadsWkFF8sfbfBD95k/Lnw== set system certificate scep csr CSR port 443 set system certificate scep csr CSR url 'http://192.168.213.25/' set vpn ipsec auth-profile AUTH local csr CSR set vpn ipsec auth-profile AUTH mirror-config false set vpn ipsec auth-profile AUTH mode x509 set vpn ipsec esp-group ESP-POLICY lifetime 28800 set vpn ipsec esp-group ESP-POLICY proposal 1 encryption null set vpn ipsec esp-group ESP-POLICY proposal 1 hash sha1 set vpn ipsec esp-group ESP-POLICY proposal 1 pfs dh-group15 set vpn ipsec ike-group IKE-POLICY key-exchange ikev2 set vpn ipsec ike-group IKE-POLICY lifetime 28800 set vpn ipsec ike-group IKE-POLICY proposal 1 dh-group 15 set vpn ipsec ike-group IKE-POLICY proposal 1 encryption null set vpn ipsec ike-group IKE-POLICY proposal 1 hash sha1 set vpn ipsec ike-group IKE-POLICY proposal 2 dh-group 15 set vpn ipsec ike-group IKE-POLICY proposal 2 encryption aes256 set vpn ipsec ike-group IKE-POLICY proposal 2 hash sha1 set vpn ipsec logging log-types any log-level 1 set vpn ipsec site-to-site peer PEER auth-profile AUTH set vpn ipsec site-to-site peer PEER connection-type initiate set vpn ipsec site-to-site peer PEER ike-group IKE-POLICY set vpn ipsec site-to-site peer PEER local-address 8.0.0.2 set vpn ipsec site-to-site peer PEER remote-address 9.0.0.2 set vpn ipsec site-to-site peer PEER tunnel 1 esp-group ESP-POLICY set vpn ipsec site-to-site peer PEER tunnel 1 local prefix 192.168.1.0/24 set vpn ipsec site-to-site peer PEER tunnel 1 remote prefix 192.168.2.0/24
Step 6: Set the following configuration in DUT1
:
set interfaces ethernet eth0 address 8.0.0.1/24 set interfaces ethernet eth1 address 9.0.0.1/24 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 7: Modify the following configuration lines in DUT2
:
set interfaces dummy dum0 address 192.168.2.1/24 set interfaces ethernet eth0 address 9.0.0.2/24 set protocols static route 0.0.0.0/0 next-hop 9.0.0.1 set system certificate scep csr CSR cgi-path CertSrv/mscep/mscep.dll/pkiclient.exe set system certificate scep csr CSR distinguished-names 'DC=scep, DC=com, CN=entity2' set system certificate scep csr CSR encrypted-password U2FsdGVkX19JyeHm0TidRkaYVz1QHG52dOOC3Q3Xe0yscH4o5xt7aQCV4zWCB6C5i040RuAGNI4aDIwWu4cQoA== set system certificate scep csr CSR port 443 set system certificate scep csr CSR url 'http://192.168.213.25/' set vpn ipsec auth-profile AUTH local csr CSR set vpn ipsec auth-profile AUTH mirror-config false set vpn ipsec auth-profile AUTH mode x509 set vpn ipsec esp-group ESP-POLICY lifetime 28800 set vpn ipsec esp-group ESP-POLICY proposal 1 encryption null set vpn ipsec esp-group ESP-POLICY proposal 1 hash sha1 set vpn ipsec esp-group ESP-POLICY proposal 1 pfs dh-group15 set vpn ipsec ike-group IKE-POLICY key-exchange ikev2 set vpn ipsec ike-group IKE-POLICY lifetime 28800 set vpn ipsec ike-group IKE-POLICY proposal 1 dh-group 15 set vpn ipsec ike-group IKE-POLICY proposal 1 encryption null set vpn ipsec ike-group IKE-POLICY proposal 1 hash sha1 set vpn ipsec ike-group IKE-POLICY proposal 2 dh-group 15 set vpn ipsec ike-group IKE-POLICY proposal 2 encryption aes256 set vpn ipsec ike-group IKE-POLICY proposal 2 hash sha1 set vpn ipsec logging log-types any log-level 1 set vpn ipsec site-to-site peer PEER auth-profile AUTH set vpn ipsec site-to-site peer PEER connection-type respond set vpn ipsec site-to-site peer PEER ike-group IKE-POLICY set vpn ipsec site-to-site peer PEER local-address 9.0.0.2 set vpn ipsec site-to-site peer PEER remote-address 8.0.0.2 set vpn ipsec site-to-site peer PEER tunnel 1 esp-group ESP-POLICY set vpn ipsec site-to-site peer PEER tunnel 1 local prefix 192.168.2.0/24 set vpn ipsec site-to-site peer PEER tunnel 1 remote prefix 192.168.1.0/24
Step 8: Run command pki scep show CSR
at DUT0
and check if output matches the following regular expressions:
CA_CERT\s+Uninitialized USER_CERT\s+UninitializedShow output
----------------------------------------------- Certificate Status NotBefore NotAfter ----------------------------------------------- CA_CERT Uninitialized USER_CERT Uninitialized
Step 9: Run command pki scep show CSR
at DUT2
and check if output matches the following regular expressions:
CA_CERT\s+Uninitialized USER_CERT\s+UninitializedShow output
----------------------------------------------- Certificate Status NotBefore NotAfter ----------------------------------------------- CA_CERT Uninitialized USER_CERT Uninitialized
Note
The credentials will not be downloaded because the port for the connection to PKI server is configured wrong on purpose. Once the credentials are ready, the VPN should be established automatically.
Step 10: Modify the following configuration lines in DUT2
:
set system certificate scep csr CSR port 80
Step 11: Modify the following configuration lines in DUT0
:
set system certificate scep csr CSR port 80
Step 12: Run command pki scep show CSR
at DUT0
and check if output matches the following regular expressions:
CA_CERT\s+Valid USER_CERT\s+ValidShow output
----------------------------------------------------------------------- Certificate Status NotBefore NotAfter ----------------------------------------------------------------------- CA_CERT Valid Dec 14 10:00:35 2023 GMT Dec 14 10:10:34 2053 GMT USER_CERT Valid Jul 30 09:54:29 2024 GMT Jul 30 09:54:29 2026 GMT
Step 13: Run command pki scep show CSR
at DUT2
and check if output matches the following regular expressions:
CA_CERT\s+Valid USER_CERT\s+ValidShow output
----------------------------------------------------------------------- Certificate Status NotBefore NotAfter ----------------------------------------------------------------------- CA_CERT Valid Dec 14 10:00:35 2023 GMT Dec 14 10:10:34 2053 GMT USER_CERT Valid Jul 30 09:54:24 2024 GMT Jul 30 09:54:24 2026 GMT
Step 14: Run command vpn ipsec show sa
at DUT0
and check if output matches the following regular expressions:
vpn-peer-PEER: \#\d, ESTABLISHED, IKEv2Show output
vpn-peer-PEER: #1, ESTABLISHED, IKEv2, 8a5a920e36a478ad_i* e7e67860d3859bdc_r local 'DC=scep, DC=com, CN=entity1' @ 8.0.0.2[500] remote 'DC=scep, DC=com, CN=entity2' @ 9.0.0.2[500] NULL/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_3072 established 20s ago, rekeying in 25578s peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96 installed 20s ago, rekeying in 15251s, expires in 31660s in cdcb02ad, 0 bytes, 0 packets out c46c6119, 0 bytes, 0 packets local 192.168.1.0/24 remote 192.168.2.0/24
Step 15: Run command vpn ipsec show sa
at DUT2
and check if output matches the following regular expressions:
vpn-peer-PEER: \#\d, ESTABLISHED, IKEv2Show output
vpn-peer-PEER: #1, ESTABLISHED, IKEv2, 8a5a920e36a478ad_i e7e67860d3859bdc_r* local 'DC=scep, DC=com, CN=entity2' @ 9.0.0.2[500] remote 'DC=scep, DC=com, CN=entity1' @ 8.0.0.2[500] NULL/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_3072 established 20s ago, rekeying in 16683s peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96 installed 20s ago, rekeying in 19303s, expires in 31660s in c46c6119, 0 bytes, 0 packets out cdcb02ad, 0 bytes, 0 packets local 192.168.2.0/24 remote 192.168.1.0/24
Step 16: Run command pki show remote-certificate site-to-site PEER filter-issuer TELDAT
at DUT0
and check if output contains the following tokens:
DC = scep, DC = com, CN = entity2Show output
Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:4d:61:c1:19:9c:de:db:97:dd:87:00:00:00:00:4d:61 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Jul 30 09:54:29 2024 GMT Not After : Jul 30 09:54:29 2026 GMT Subject: DC = scep, DC = com, CN = entity1 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:b2:52:7c:18:14:93:d1:ee:ee:03:84:bf:88:1d: 0a:d0:6d:fb:8e:24:c4:d3:63:11:bb:10:4a:62:15: fe:76:89:7e:e2:1f:9c:1e:4d:76:99:b8:a2:7f:d7: 0c:cb:0e:ec:fa:a6:4e:9e:ea:12:0a:1e:95:c0:9b: b4:7b:e4:ab:34:0c:19:1d:8d:95:a7:11:5a:fc:60: b0:bf:dd:bb:d3:be:33:94:8f:aa:e9:42:19:5d:fe: 00:03:63:01:c1:80:1d:84:87:21:b0:9c:21:a0:dc: 25:b6:a7:3c:aa:68:4a:40:c8:1b:9f:6d:cc:f1:54: f4:45:9f:4c:3c:98:2a:2b:2d:f5:3b:4c:6e:ad:05: 39:a4:ee:12:8e:02:2e:58:0c:1a:17:d7:17:bc:07: 4c:21:7b:8b:19:d2:a5:30:c5:9b:86:77:87:09:6b: 62:1a:f8:b8:d4:5a:ac:28:5b:a4:91:13:3d:ac:3a: 00:67:28:cb:49:67:e1:b9:ba:4c:c5:4e:32:09:27: 99:c1:21:ca:fb:e5:ce:6b:4f:01:96:e0:e4:39:f8: 0a:00:8c:74:95:78:db:ea:3a:1a:ca:d9:d4:40:00: 0f:d0:00:31:0b:5b:50:03:74:9b:6d:52:ec:69:e4: 66:d4:d7:83:18:06:67:84:7e:33:31:55:24:19:6e: 03:cf Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: CE:B5:45:D1:25:B6:C8:1F:09:B9:BC:7A:A3:02:31:BB:0E:9F:4F:8D X509v3 Authority Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 Authority Information Access: CA Issuers - URI:ldap:///CN=scep-TELDATPKI-CA,CN=AIA,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=scep,DC=com?cACertificate?base?objectClass=certificationAuthority X509v3 Key Usage: critical Digital Signature, Key Encipherment, Data Encipherment 1.3.6.1.4.1.311.21.7: 0..&+.....7.....3......./...(...f<...[...]..d... X509v3 Extended Key Usage: 1.3.6.1.4.1.311.20.1, Microsoft Encrypted File System, Code Signing, Any Extended Key Usage, TLS Web Server Authentication, Signing KDC Response, TLS Web Client Authentication, 1.3.6.1.4.1.311.21.5, 1.3.6.1.4.1.311.20.2.1, 1.3.6.1.5.5.8.2.2 1.3.6.1.4.1.311.21.10: 0y0...+.....7..0.. +.....7 ..0 ..+.......0...U.%.0 ..+.......0...+......0 ..+.......0...+.....7..0.. +.....7...0 ..+....... S/MIME Capabilities: 050...*.H.. ......0...*.H.. ......0...+....0 ..*.H.. .. Signature Algorithm: sha256WithRSAEncryption Signature Value: b8:94:f5:3d:1f:67:16:ad:15:fb:b3:b8:a1:05:15:39:51:bc: 9e:a3:b3:f0:d9:04:52:ee:ec:e0:47:5b:96:84:5e:7c:1e:a3: f7:12:24:80:b6:dd:08:d1:60:4b:f7:06:04:d8:19:57:f1:f2: 6c:7a:63:ff:0f:01:21:b8:ce:78:bf:ce:d4:5b:e5:20:5b:2c: c3:46:05:ba:1d:67:0c:e1:7e:31:4d:df:1d:91:9a:db:9c:20: a4:3d:64:d7:3f:73:01:23:6f:95:e1:48:70:8a:9a:50:1e:c3: f4:9f:e0:15:d5:76:04:22:9e:e3:88:92:74:6e:aa:c5:7b:1d: 1c:9c:15:8a:08:1f:33:aa:c4:01:21:d3:44:22:cd:2f:aa:2d: 98:b6:4c:b4:e1:4b:81:c2:d9:80:17:e1:52:80:34:7a:d3:87: 95:fc:32:1a:85:b2:82:a1:e8:d1:1f:1f:b2:28:a2:45:f9:50: f4:e9:2d:37:18:ec:83:d9:4a:ba:2d:76:60:cf:6b:e0:4a:6b: 6e:ae:c6:4b:c3:7e:cc:e4:5c:1a:85:16:55:9f:e0:31:7e:b3: 39:dc:4b:fd:98:62:d4:ea:e0:ba:e8:ab:16:a0:5c:ba:fd:8e: 3e:ce:1a:a2:a0:9b:9f:ec:49:5f:bf:58:8c:0e:c0:55:ae:15: 79:39:c2:23 ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:4d:60:16:34:db:9d:0b:6b:ba:1f:00:00:00:00:4d:60 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Jul 30 09:54:24 2024 GMT Not After : Jul 30 09:54:24 2026 GMT Subject: DC = scep, DC = com, CN = entity2 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:9a:7c:76:36:4b:fa:ca:bc:69:3a:8c:2e:a9:2e: 12:58:37:ed:33:5d:95:32:c4:76:7f:45:4d:44:4f: 3c:1f:f9:bf:24:14:eb:69:5f:9a:c7:33:1b:e9:3c: e2:3d:fa:43:f1:03:3f:fe:50:7c:c6:51:e3:18:85: 2d:30:d9:e6:f3:84:69:c2:1e:57:f4:83:5b:92:48: 24:48:7b:0e:b7:43:53:95:1a:e6:86:70:f4:85:17: 8a:e6:1d:d6:e3:e2:a4:90:76:e5:58:e5:0e:2f:f4: 6e:47:9e:eb:7f:54:09:a1:08:25:6a:b6:79:ca:ed: fd:9f:71:95:0e:17:c4:c8:ed:38:7f:cc:35:8c:46: 88:72:fa:80:07:2c:b9:e9:6d:62:44:7d:63:f1:7b: df:b4:b2:48:e7:49:6a:dd:07:1c:28:6c:d9:90:58: 3b:83:01:e0:02:df:05:b5:ac:83:47:90:e8:65:72: f5:c0:64:02:3d:b5:52:b8:19:17:b3:ac:e2:e1:e0: ad:b1:2b:e5:d5:14:bb:96:37:98:97:24:75:d4:c0: 0b:05:06:0b:09:3e:91:bc:96:94:3b:94:47:46:73: 1b:4c:9a:00:f3:9e:ff:5d:5d:87:17:02:94:bd:66: 88:f4:5f:5f:6c:06:2b:76:c2:bb:a7:cf:5d:bf:43: 7a:71 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: 25:C2:9F:77:E7:D5:CE:5A:71:D1:D9:A9:8A:36:88:34:77:17:07:99 X509v3 Authority Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 Authority Information Access: CA Issuers - URI:ldap:///CN=scep-TELDATPKI-CA,CN=AIA,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=scep,DC=com?cACertificate?base?objectClass=certificationAuthority X509v3 Key Usage: critical Digital Signature, Key Encipherment, Data Encipherment 1.3.6.1.4.1.311.21.7: 0..&+.....7.....3......./...(...f<...[...]..d... X509v3 Extended Key Usage: 1.3.6.1.4.1.311.20.1, Microsoft Encrypted File System, Code Signing, Any Extended Key Usage, TLS Web Server Authentication, Signing KDC Response, TLS Web Client Authentication, 1.3.6.1.4.1.311.21.5, 1.3.6.1.4.1.311.20.2.1, 1.3.6.1.5.5.8.2.2 1.3.6.1.4.1.311.21.10: 0y0...+.....7..0.. +.....7 ..0 ..+.......0...U.%.0 ..+.......0...+......0 ..+.......0...+.....7..0.. +.....7...0 ..+....... S/MIME Capabilities: 050...*.H.. ......0...*.H.. ......0...+....0 ..*.H.. .. Signature Algorithm: sha256WithRSAEncryption Signature Value: 07:a4:d3:c3:d7:98:cd:2e:ce:f7:44:02:0a:21:6d:2b:49:bd: 89:1c:0e:ea:74:35:14:1c:db:5a:b2:e3:9f:2a:e6:a3:10:5f: c6:fa:a9:79:f7:f7:98:28:43:e3:11:aa:fb:fe:cf:16:15:70: 3e:c9:f2:06:92:ef:d4:a5:04:62:c4:07:b7:9f:05:1a:4f:52: bc:18:4c:12:67:c6:8f:88:ee:ef:2a:27:c4:cd:11:02:ec:55: c3:b6:18:fe:87:52:38:b1:81:ce:12:7b:13:a4:77:a1:f5:7b: 14:c3:45:83:1b:1d:68:20:9d:ba:5a:91:ea:f9:b1:6e:de:88: 28:8e:da:51:4c:6e:e7:7d:ef:37:f4:62:19:e9:62:f2:2b:38: cb:4e:ae:2f:3b:ff:70:f7:ac:d5:1c:b0:ad:24:2c:36:c6:63: 2a:db:26:42:ab:68:f9:2b:3f:0b:e0:71:77:7c:52:8e:1e:33: 2b:49:9e:1b:87:f9:da:c3:1a:cf:2e:c9:89:77:86:95:6b:c7: 52:ce:e2:d2:19:72:20:f8:fe:20:89:2f:48:64:59:3a:a3:59: fb:86:4d:77:dd:50:a4:c5:41:2a:3a:21:26:f8:48:f1:58:87: 04:10:00:8f:8c:07:cc:3b:fd:29:f4:8c:4c:b3:a0:d3:f1:0a: b3:a6:bb:af ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1a:ea:6d:57:94:fe:a5:9c:42:14:81:ca:79:1b:75:d7 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Dec 14 10:00:35 2023 GMT Not After : Dec 14 10:10:34 2053 GMT Subject: DC = com, DC = scep, CN = scep-TELDATPKI-CA Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:bf:c5:be:9a:32:e2:a5:42:6c:b8:42:b5:7b:21: e5:71:b0:79:46:b1:41:bd:25:c3:40:e1:33:8e:1a: 3b:12:ca:26:1e:f3:c9:44:d6:b5:9a:03:cb:14:f5: 82:6f:a8:7e:47:bc:e7:e0:b3:1f:c6:ff:84:54:2b: fd:b6:0d:e1:4f:c3:b7:6a:0f:98:99:c2:8a:b6:b8: 9d:f3:5d:36:f3:af:48:0f:7d:cd:5a:6c:a8:10:0c: 02:b2:0c:af:b3:d8:c3:b4:de:0e:b8:15:6d:4a:f0: 4e:67:7d:c2:3a:dd:03:f7:3d:80:69:63:2c:f9:97: fa:d3:4d:80:13:dd:24:ac:54:ad:f7:cc:25:94:41: fd:2d:e8:2a:8e:a8:91:96:89:d2:9f:0c:17:03:99: 11:f5:ce:2c:db:78:b7:09:75:d1:96:af:58:82:58: 62:86:63:01:16:68:fc:06:db:92:d0:c5:6d:9d:6d: fd:5d:13:b0:2b:37:2f:9c:ae:3b:e3:34:d6:42:7b: 12:01:93:da:ea:b4:c8:ba:9f:57:35:4f:6a:a1:95: c2:5f:40:9d:6b:c1:72:ec:91:9b:72:cc:6a:b8:9e: dc:08:f0:53:09:4f:d4:09:75:28:99:56:f5:66:be: 7d:ca:59:0e:9b:50:4d:be:98:04:20:4d:98:e6:5f: 58:c5 Exponent: 65537 (0x10001) X509v3 extensions: 1.3.6.1.4.1.311.20.2: ...C.A X509v3 Key Usage: critical Digital Signature, Certificate Sign, CRL Sign X509v3 Basic Constraints: critical CA:TRUE X509v3 Subject Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 1.3.6.1.4.1.311.21.1: ... Signature Algorithm: sha256WithRSAEncryption Signature Value: 6c:44:b8:33:b1:75:08:00:07:7f:2b:a4:80:f2:6a:ff:94:4c: ee:85:cc:61:db:49:59:19:cc:01:2f:c5:45:4b:d2:8d:dc:77: 54:7d:3c:34:75:28:c9:16:28:94:15:51:3d:e6:f7:dc:9b:d8: cd:63:bb:d3:ec:fc:ae:32:7e:cd:be:50:c2:9f:f7:91:de:9e: bb:44:d3:24:09:4d:dd:5f:67:ad:58:ad:7e:cc:9e:9f:8f:c8: 48:f5:d9:03:9a:a3:df:cd:e5:8a:e0:03:9e:36:f9:ba:fd:ff: 0b:a0:15:8c:66:9f:49:bc:e8:94:3e:61:7d:78:ff:48:66:d1: 13:54:1d:41:61:63:28:ba:d9:f8:6a:c4:df:48:16:d2:69:39: c0:38:ea:54:84:e0:40:17:d9:2c:43:58:be:e4:a1:5d:e2:6c: e9:23:55:b7:6e:61:8f:4e:72:4f:c2:d5:c4:7a:74:f5:8e:b3: 0e:2c:bc:5d:7d:ba:f8:ae:3b:f0:d6:b0:2e:1f:3f:fd:2d:77: 7d:52:bf:f7:07:ba:9d:64:60:57:1d:68:34:bb:cb:44:ac:dd: 55:c2:40:a1:98:84:b7:74:50:a4:50:95:0e:12:59:96:b9:af: bc:b3:09:e6:67:39:26:7e:b0:41:07:90:57:72:40:2a:11:7a: 2e:ac:be:b8
Step 17: Run command pki show remote-certificate site-to-site PEER filter-issuer TELDAT
at DUT2
and check if output contains the following tokens:
DC = scep, DC = com, CN = entity1Show output
Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:4d:61:c1:19:9c:de:db:97:dd:87:00:00:00:00:4d:61 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Jul 30 09:54:29 2024 GMT Not After : Jul 30 09:54:29 2026 GMT Subject: DC = scep, DC = com, CN = entity1 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:b2:52:7c:18:14:93:d1:ee:ee:03:84:bf:88:1d: 0a:d0:6d:fb:8e:24:c4:d3:63:11:bb:10:4a:62:15: fe:76:89:7e:e2:1f:9c:1e:4d:76:99:b8:a2:7f:d7: 0c:cb:0e:ec:fa:a6:4e:9e:ea:12:0a:1e:95:c0:9b: b4:7b:e4:ab:34:0c:19:1d:8d:95:a7:11:5a:fc:60: b0:bf:dd:bb:d3:be:33:94:8f:aa:e9:42:19:5d:fe: 00:03:63:01:c1:80:1d:84:87:21:b0:9c:21:a0:dc: 25:b6:a7:3c:aa:68:4a:40:c8:1b:9f:6d:cc:f1:54: f4:45:9f:4c:3c:98:2a:2b:2d:f5:3b:4c:6e:ad:05: 39:a4:ee:12:8e:02:2e:58:0c:1a:17:d7:17:bc:07: 4c:21:7b:8b:19:d2:a5:30:c5:9b:86:77:87:09:6b: 62:1a:f8:b8:d4:5a:ac:28:5b:a4:91:13:3d:ac:3a: 00:67:28:cb:49:67:e1:b9:ba:4c:c5:4e:32:09:27: 99:c1:21:ca:fb:e5:ce:6b:4f:01:96:e0:e4:39:f8: 0a:00:8c:74:95:78:db:ea:3a:1a:ca:d9:d4:40:00: 0f:d0:00:31:0b:5b:50:03:74:9b:6d:52:ec:69:e4: 66:d4:d7:83:18:06:67:84:7e:33:31:55:24:19:6e: 03:cf Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: CE:B5:45:D1:25:B6:C8:1F:09:B9:BC:7A:A3:02:31:BB:0E:9F:4F:8D X509v3 Authority Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 Authority Information Access: CA Issuers - URI:ldap:///CN=scep-TELDATPKI-CA,CN=AIA,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=scep,DC=com?cACertificate?base?objectClass=certificationAuthority X509v3 Key Usage: critical Digital Signature, Key Encipherment, Data Encipherment 1.3.6.1.4.1.311.21.7: 0..&+.....7.....3......./...(...f<...[...]..d... X509v3 Extended Key Usage: 1.3.6.1.4.1.311.20.1, Microsoft Encrypted File System, Code Signing, Any Extended Key Usage, TLS Web Server Authentication, Signing KDC Response, TLS Web Client Authentication, 1.3.6.1.4.1.311.21.5, 1.3.6.1.4.1.311.20.2.1, 1.3.6.1.5.5.8.2.2 1.3.6.1.4.1.311.21.10: 0y0...+.....7..0.. +.....7 ..0 ..+.......0...U.%.0 ..+.......0...+......0 ..+.......0...+.....7..0.. +.....7...0 ..+....... S/MIME Capabilities: 050...*.H.. ......0...*.H.. ......0...+....0 ..*.H.. .. Signature Algorithm: sha256WithRSAEncryption Signature Value: b8:94:f5:3d:1f:67:16:ad:15:fb:b3:b8:a1:05:15:39:51:bc: 9e:a3:b3:f0:d9:04:52:ee:ec:e0:47:5b:96:84:5e:7c:1e:a3: f7:12:24:80:b6:dd:08:d1:60:4b:f7:06:04:d8:19:57:f1:f2: 6c:7a:63:ff:0f:01:21:b8:ce:78:bf:ce:d4:5b:e5:20:5b:2c: c3:46:05:ba:1d:67:0c:e1:7e:31:4d:df:1d:91:9a:db:9c:20: a4:3d:64:d7:3f:73:01:23:6f:95:e1:48:70:8a:9a:50:1e:c3: f4:9f:e0:15:d5:76:04:22:9e:e3:88:92:74:6e:aa:c5:7b:1d: 1c:9c:15:8a:08:1f:33:aa:c4:01:21:d3:44:22:cd:2f:aa:2d: 98:b6:4c:b4:e1:4b:81:c2:d9:80:17:e1:52:80:34:7a:d3:87: 95:fc:32:1a:85:b2:82:a1:e8:d1:1f:1f:b2:28:a2:45:f9:50: f4:e9:2d:37:18:ec:83:d9:4a:ba:2d:76:60:cf:6b:e0:4a:6b: 6e:ae:c6:4b:c3:7e:cc:e4:5c:1a:85:16:55:9f:e0:31:7e:b3: 39:dc:4b:fd:98:62:d4:ea:e0:ba:e8:ab:16:a0:5c:ba:fd:8e: 3e:ce:1a:a2:a0:9b:9f:ec:49:5f:bf:58:8c:0e:c0:55:ae:15: 79:39:c2:23 ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:4d:60:16:34:db:9d:0b:6b:ba:1f:00:00:00:00:4d:60 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Jul 30 09:54:24 2024 GMT Not After : Jul 30 09:54:24 2026 GMT Subject: DC = scep, DC = com, CN = entity2 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:9a:7c:76:36:4b:fa:ca:bc:69:3a:8c:2e:a9:2e: 12:58:37:ed:33:5d:95:32:c4:76:7f:45:4d:44:4f: 3c:1f:f9:bf:24:14:eb:69:5f:9a:c7:33:1b:e9:3c: e2:3d:fa:43:f1:03:3f:fe:50:7c:c6:51:e3:18:85: 2d:30:d9:e6:f3:84:69:c2:1e:57:f4:83:5b:92:48: 24:48:7b:0e:b7:43:53:95:1a:e6:86:70:f4:85:17: 8a:e6:1d:d6:e3:e2:a4:90:76:e5:58:e5:0e:2f:f4: 6e:47:9e:eb:7f:54:09:a1:08:25:6a:b6:79:ca:ed: fd:9f:71:95:0e:17:c4:c8:ed:38:7f:cc:35:8c:46: 88:72:fa:80:07:2c:b9:e9:6d:62:44:7d:63:f1:7b: df:b4:b2:48:e7:49:6a:dd:07:1c:28:6c:d9:90:58: 3b:83:01:e0:02:df:05:b5:ac:83:47:90:e8:65:72: f5:c0:64:02:3d:b5:52:b8:19:17:b3:ac:e2:e1:e0: ad:b1:2b:e5:d5:14:bb:96:37:98:97:24:75:d4:c0: 0b:05:06:0b:09:3e:91:bc:96:94:3b:94:47:46:73: 1b:4c:9a:00:f3:9e:ff:5d:5d:87:17:02:94:bd:66: 88:f4:5f:5f:6c:06:2b:76:c2:bb:a7:cf:5d:bf:43: 7a:71 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: 25:C2:9F:77:E7:D5:CE:5A:71:D1:D9:A9:8A:36:88:34:77:17:07:99 X509v3 Authority Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 Authority Information Access: CA Issuers - URI:ldap:///CN=scep-TELDATPKI-CA,CN=AIA,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=scep,DC=com?cACertificate?base?objectClass=certificationAuthority X509v3 Key Usage: critical Digital Signature, Key Encipherment, Data Encipherment 1.3.6.1.4.1.311.21.7: 0..&+.....7.....3......./...(...f<...[...]..d... X509v3 Extended Key Usage: 1.3.6.1.4.1.311.20.1, Microsoft Encrypted File System, Code Signing, Any Extended Key Usage, TLS Web Server Authentication, Signing KDC Response, TLS Web Client Authentication, 1.3.6.1.4.1.311.21.5, 1.3.6.1.4.1.311.20.2.1, 1.3.6.1.5.5.8.2.2 1.3.6.1.4.1.311.21.10: 0y0...+.....7..0.. +.....7 ..0 ..+.......0...U.%.0 ..+.......0...+......0 ..+.......0...+.....7..0.. +.....7...0 ..+....... S/MIME Capabilities: 050...*.H.. ......0...*.H.. ......0...+....0 ..*.H.. .. Signature Algorithm: sha256WithRSAEncryption Signature Value: 07:a4:d3:c3:d7:98:cd:2e:ce:f7:44:02:0a:21:6d:2b:49:bd: 89:1c:0e:ea:74:35:14:1c:db:5a:b2:e3:9f:2a:e6:a3:10:5f: c6:fa:a9:79:f7:f7:98:28:43:e3:11:aa:fb:fe:cf:16:15:70: 3e:c9:f2:06:92:ef:d4:a5:04:62:c4:07:b7:9f:05:1a:4f:52: bc:18:4c:12:67:c6:8f:88:ee:ef:2a:27:c4:cd:11:02:ec:55: c3:b6:18:fe:87:52:38:b1:81:ce:12:7b:13:a4:77:a1:f5:7b: 14:c3:45:83:1b:1d:68:20:9d:ba:5a:91:ea:f9:b1:6e:de:88: 28:8e:da:51:4c:6e:e7:7d:ef:37:f4:62:19:e9:62:f2:2b:38: cb:4e:ae:2f:3b:ff:70:f7:ac:d5:1c:b0:ad:24:2c:36:c6:63: 2a:db:26:42:ab:68:f9:2b:3f:0b:e0:71:77:7c:52:8e:1e:33: 2b:49:9e:1b:87:f9:da:c3:1a:cf:2e:c9:89:77:86:95:6b:c7: 52:ce:e2:d2:19:72:20:f8:fe:20:89:2f:48:64:59:3a:a3:59: fb:86:4d:77:dd:50:a4:c5:41:2a:3a:21:26:f8:48:f1:58:87: 04:10:00:8f:8c:07:cc:3b:fd:29:f4:8c:4c:b3:a0:d3:f1:0a: b3:a6:bb:af ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1a:ea:6d:57:94:fe:a5:9c:42:14:81:ca:79:1b:75:d7 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Dec 14 10:00:35 2023 GMT Not After : Dec 14 10:10:34 2053 GMT Subject: DC = com, DC = scep, CN = scep-TELDATPKI-CA Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:bf:c5:be:9a:32:e2:a5:42:6c:b8:42:b5:7b:21: e5:71:b0:79:46:b1:41:bd:25:c3:40:e1:33:8e:1a: 3b:12:ca:26:1e:f3:c9:44:d6:b5:9a:03:cb:14:f5: 82:6f:a8:7e:47:bc:e7:e0:b3:1f:c6:ff:84:54:2b: fd:b6:0d:e1:4f:c3:b7:6a:0f:98:99:c2:8a:b6:b8: 9d:f3:5d:36:f3:af:48:0f:7d:cd:5a:6c:a8:10:0c: 02:b2:0c:af:b3:d8:c3:b4:de:0e:b8:15:6d:4a:f0: 4e:67:7d:c2:3a:dd:03:f7:3d:80:69:63:2c:f9:97: fa:d3:4d:80:13:dd:24:ac:54:ad:f7:cc:25:94:41: fd:2d:e8:2a:8e:a8:91:96:89:d2:9f:0c:17:03:99: 11:f5:ce:2c:db:78:b7:09:75:d1:96:af:58:82:58: 62:86:63:01:16:68:fc:06:db:92:d0:c5:6d:9d:6d: fd:5d:13:b0:2b:37:2f:9c:ae:3b:e3:34:d6:42:7b: 12:01:93:da:ea:b4:c8:ba:9f:57:35:4f:6a:a1:95: c2:5f:40:9d:6b:c1:72:ec:91:9b:72:cc:6a:b8:9e: dc:08:f0:53:09:4f:d4:09:75:28:99:56:f5:66:be: 7d:ca:59:0e:9b:50:4d:be:98:04:20:4d:98:e6:5f: 58:c5 Exponent: 65537 (0x10001) X509v3 extensions: 1.3.6.1.4.1.311.20.2: ...C.A X509v3 Key Usage: critical Digital Signature, Certificate Sign, CRL Sign X509v3 Basic Constraints: critical CA:TRUE X509v3 Subject Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 1.3.6.1.4.1.311.21.1: ... Signature Algorithm: sha256WithRSAEncryption Signature Value: 6c:44:b8:33:b1:75:08:00:07:7f:2b:a4:80:f2:6a:ff:94:4c: ee:85:cc:61:db:49:59:19:cc:01:2f:c5:45:4b:d2:8d:dc:77: 54:7d:3c:34:75:28:c9:16:28:94:15:51:3d:e6:f7:dc:9b:d8: cd:63:bb:d3:ec:fc:ae:32:7e:cd:be:50:c2:9f:f7:91:de:9e: bb:44:d3:24:09:4d:dd:5f:67:ad:58:ad:7e:cc:9e:9f:8f:c8: 48:f5:d9:03:9a:a3:df:cd:e5:8a:e0:03:9e:36:f9:ba:fd:ff: 0b:a0:15:8c:66:9f:49:bc:e8:94:3e:61:7d:78:ff:48:66:d1: 13:54:1d:41:61:63:28:ba:d9:f8:6a:c4:df:48:16:d2:69:39: c0:38:ea:54:84:e0:40:17:d9:2c:43:58:be:e4:a1:5d:e2:6c: e9:23:55:b7:6e:61:8f:4e:72:4f:c2:d5:c4:7a:74:f5:8e:b3: 0e:2c:bc:5d:7d:ba:f8:ae:3b:f0:d6:b0:2e:1f:3f:fd:2d:77: 7d:52:bf:f7:07:ba:9d:64:60:57:1d:68:34:bb:cb:44:ac:dd: 55:c2:40:a1:98:84:b7:74:50:a4:50:95:0e:12:59:96:b9:af: bc:b3:09:e6:67:39:26:7e:b0:41:07:90:57:72:40:2a:11:7a: 2e:ac:be:b8
Step 18: Ping IP address 192.168.2.1
from DUT0
:
admin@DUT0$ ping 192.168.2.1 local-address 192.168.1.1 count 1 size 56 timeout 1Show output
PING 192.168.2.1 (192.168.2.1) from 192.168.1.1 : 56(84) bytes of data. 64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=0.493 ms --- 192.168.2.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.493/0.493/0.493/0.000 ms
Step 19: Ping IP address 192.168.1.1
from DUT2
:
admin@DUT2$ ping 192.168.1.1 local-address 192.168.2.1 count 1 size 56 timeout 1Show output
PING 192.168.1.1 (192.168.1.1) from 192.168.2.1 : 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.451 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.451/0.451/0.451/0.000 ms