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 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 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.605 ms --- 192.168.213.25 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.605/0.605/0.605/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.698 ms --- 192.168.213.25 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.698/0.698/0.698/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 U2FsdGVkX1/iSvh0/3P+bH3yOs++LyNqHDnRuu1LWPEj77RQHp0bEQE3YXZbFB/991/GXnMvsUQ4HbmC2PT9Rg== 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+PcyqqEfqKG2lnh6EJXpOknlJsF1Gtf4VFpDneoydw86+ALrOnSucYG+EqVdIFe0OFhCvurRjsvg== 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 Oct 7 11:04:03 2024 GMT Oct 7 11:04:03 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 Oct 7 11:04:05 2024 GMT Oct 7 11:04:05 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, 42f3d7e7f42f7ad2_i* 24ef66d52699c9e2_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 28638s peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96 installed 19s ago, rekeying in 26964s, expires in 31661s in c681eb71, 0 bytes, 0 packets out cc393f20, 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, 42f3d7e7f42f7ad2_i 24ef66d52699c9e2_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 24145s peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96 installed 19s ago, rekeying in 22702s, expires in 31661s in cc393f20, 0 bytes, 0 packets out c681eb71, 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:68:5c:7c:d9:49:8b:63:e6:f8:12:00:00:00:00:68:5c Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Oct 7 11:04:03 2024 GMT Not After : Oct 7 11:04:03 2026 GMT Subject: DC = scep, DC = com, CN = entity1 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:c7:f3:86:f5:9b:f2:41:83:bd:64:b7:9c:90:8d: 5c:86:17:03:18:5b:de:38:bd:98:8b:a1:58:e1:6d: 35:cb:7d:cc:95:73:da:d2:a7:a8:ef:24:af:5e:ce: 77:2b:53:a2:0d:ba:72:3f:94:9f:51:44:63:93:dd: 89:da:4c:26:38:4b:72:2e:3e:01:7a:79:4e:be:be: 95:b8:fc:4a:5d:47:16:8a:99:f6:89:5f:17:e5:e1: 8c:52:52:7e:29:eb:a1:c2:8b:e9:19:1d:43:c8:33: 5a:83:32:ae:8a:91:f1:cb:fd:59:04:a7:17:9e:b2: 31:7d:84:d7:b4:4a:51:17:ca:47:37:aa:6f:7c:50: b3:05:73:47:3c:ca:6b:9a:e0:74:4c:52:20:e4:cd: 73:bd:d8:0d:d5:02:f0:03:1a:9c:b9:d5:e2:d7:3c: 0b:a6:8f:0e:9c:55:64:b6:aa:0e:1a:3a:89:21:b4: b9:75:f3:02:a9:e5:a5:c3:a1:da:d0:0c:07:6c:9e: 58:da:ee:a4:6b:ad:46:da:90:d9:1b:e0:65:9e:9d: f0:b8:8e:c4:58:8e:9c:8a:d8:1a:e2:a8:29:68:e1: 3c:b9:91:ae:58:50:d5:56:65:c6:73:d6:0f:26:8a: 3f:9d:69:1a:08:bc:5b:86:fd:b0:62:55:bd:bb:dd: ea:cf Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: 4D:15:7E:6A:C6:FA:30:1B:F8:B6:2B:90:2B:5F:CD:89:12:E0:7A:1E 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: 3a:e6:35:25:6f:37:c1:cd:b6:da:26:ea:b4:24:c7:97:a9:da: 69:bf:cf:64:a5:8d:4f:89:d2:b9:f7:a1:42:8f:ce:d8:d2:34: 80:ab:bb:1c:18:56:41:f3:fa:75:4c:d6:68:ce:88:fe:5a:b4: f3:6a:c6:f8:fc:c4:6f:de:7d:27:76:4a:36:96:99:2c:63:d1: c0:6c:f7:97:cc:2c:bb:5d:7d:07:ea:78:6d:e8:ba:24:72:b8: 0c:c5:fc:ab:91:b7:36:7c:a9:c0:5a:d4:52:92:27:25:84:e6: 7d:54:9d:41:1e:a1:e3:91:28:b5:34:38:72:82:28:72:6b:5e: ec:4b:a0:0f:48:f1:49:83:a5:d5:bd:44:be:04:33:d3:50:c1: eb:bf:6c:bf:45:2f:7a:07:65:7d:00:f0:89:85:35:19:d5:bc: 90:57:29:1c:75:41:8c:6c:32:61:9f:b2:76:02:23:6c:10:a4: 4b:3a:d7:43:0c:51:58:16:69:ec:61:1c:75:e8:6f:19:ed:3e: e0:53:21:58:36:b4:e8:39:40:45:47:76:f7:d0:cd:ea:7b:46: f9:1a:3c:46:97:85:68:cd:85:80:f9:35:82:31:6c:d2:19:52: 93:b4:2c:fd:bb:4c:4d:c6:a7:2e:3b:94:d6:9c:bc:5b:93:c5: f7:e0:f2:75 ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:68:5d:86:6f:b1:7d:f6:88:06:0d:00:00:00:00:68:5d Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Oct 7 11:04:05 2024 GMT Not After : Oct 7 11:04:05 2026 GMT Subject: DC = scep, DC = com, CN = entity2 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:d1:f3:98:1e:5f:b0:a4:50:89:d1:5a:4f:16:8f: 13:19:2a:d3:ef:07:98:9b:e4:b9:be:1f:32:f0:42: 4d:aa:b4:d4:0e:fe:43:44:96:6c:26:f6:e7:6e:6b: 8d:92:5f:80:00:aa:6e:14:54:e6:f9:70:c2:8b:f5: ec:a5:d5:b2:1d:8c:8b:5f:8d:98:9f:90:74:f7:15: a7:72:2d:70:cc:6b:75:4e:51:85:b1:2a:da:2c:36: 98:a8:0e:20:0e:0a:cf:59:6a:88:35:f0:d4:b2:96: 6a:df:87:00:a0:d0:01:40:34:5d:10:44:6f:4c:e0: b8:8e:83:f8:c4:f4:bd:ce:27:57:64:a5:c4:f9:56: 28:f3:54:16:7f:40:0c:50:fb:23:82:40:06:a6:f3: 01:02:64:8a:73:8c:55:9e:ee:0f:8a:b3:f6:5e:a6: ae:1a:58:a8:e5:8d:fb:6e:0c:25:a4:b0:fd:01:58: 07:95:37:28:99:50:6b:5e:92:16:d8:31:ca:c0:e8: 18:e8:5c:bf:fe:d4:07:03:b4:6d:78:34:e8:e8:e5: 71:d8:59:51:03:0c:b6:d2:e4:15:c7:7d:d7:14:28: f6:06:cb:10:94:00:bb:73:0d:28:17:b0:8b:72:2c: 2c:77:ea:e3:b6:a0:b8:63:74:cb:4d:c3:b0:ef:a1: 22:41 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: E9:E2:1A:EB:46:7E:1F:CC:4A:19:76:AB:DE:FB:EB:E7:A5:0F:3A:66 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: 96:58:b9:57:1e:a1:1a:39:95:25:58:67:1d:45:c1:26:bf:2c: e7:a9:32:14:e7:83:ab:71:ac:d8:9c:f3:66:a9:f8:65:f3:ac: 03:69:0e:9c:da:8c:37:89:d8:12:27:72:c4:bb:ad:43:15:eb: 18:1e:20:ab:d2:66:88:d9:e6:c2:e1:6b:b7:4e:b3:6d:05:f0: 6b:84:e4:51:10:8c:68:86:ff:eb:dc:91:ea:a7:fe:91:5f:7d: 13:e7:7b:7c:31:09:79:97:4f:a6:18:a2:a9:23:cc:f1:18:95: d5:c9:97:f1:90:9e:09:f4:42:0c:39:1f:97:8a:56:d9:c9:ec: 5a:f3:31:55:8a:ad:5c:89:a1:92:6e:76:38:a2:d4:11:86:9d: cb:31:b3:de:5f:d8:3a:2f:a4:17:dd:21:ab:b2:f9:71:97:71: 98:6e:42:fb:6d:ca:67:7b:65:a7:a3:10:5c:c2:30:11:6a:3e: ef:dc:32:09:29:a4:4d:26:4a:a7:d0:4c:41:b1:7e:7b:98:eb: 55:e3:f6:fb:6c:3c:bd:61:00:1f:50:f8:e3:1b:f3:74:5e:91: 91:c2:7b:0d:67:36:d5:84:08:89:e1:b9:7a:c8:c6:48:cc:1d: 2b:23:d5:c3:c8:29:80:29:3c:81:cf:da:24:bc:02:2a:46:e3: e6:ca:15:f0 ---------------------------------------------------------------------- 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:68:5c:7c:d9:49:8b:63:e6:f8:12:00:00:00:00:68:5c Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Oct 7 11:04:03 2024 GMT Not After : Oct 7 11:04:03 2026 GMT Subject: DC = scep, DC = com, CN = entity1 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:c7:f3:86:f5:9b:f2:41:83:bd:64:b7:9c:90:8d: 5c:86:17:03:18:5b:de:38:bd:98:8b:a1:58:e1:6d: 35:cb:7d:cc:95:73:da:d2:a7:a8:ef:24:af:5e:ce: 77:2b:53:a2:0d:ba:72:3f:94:9f:51:44:63:93:dd: 89:da:4c:26:38:4b:72:2e:3e:01:7a:79:4e:be:be: 95:b8:fc:4a:5d:47:16:8a:99:f6:89:5f:17:e5:e1: 8c:52:52:7e:29:eb:a1:c2:8b:e9:19:1d:43:c8:33: 5a:83:32:ae:8a:91:f1:cb:fd:59:04:a7:17:9e:b2: 31:7d:84:d7:b4:4a:51:17:ca:47:37:aa:6f:7c:50: b3:05:73:47:3c:ca:6b:9a:e0:74:4c:52:20:e4:cd: 73:bd:d8:0d:d5:02:f0:03:1a:9c:b9:d5:e2:d7:3c: 0b:a6:8f:0e:9c:55:64:b6:aa:0e:1a:3a:89:21:b4: b9:75:f3:02:a9:e5:a5:c3:a1:da:d0:0c:07:6c:9e: 58:da:ee:a4:6b:ad:46:da:90:d9:1b:e0:65:9e:9d: f0:b8:8e:c4:58:8e:9c:8a:d8:1a:e2:a8:29:68:e1: 3c:b9:91:ae:58:50:d5:56:65:c6:73:d6:0f:26:8a: 3f:9d:69:1a:08:bc:5b:86:fd:b0:62:55:bd:bb:dd: ea:cf Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: 4D:15:7E:6A:C6:FA:30:1B:F8:B6:2B:90:2B:5F:CD:89:12:E0:7A:1E 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: 3a:e6:35:25:6f:37:c1:cd:b6:da:26:ea:b4:24:c7:97:a9:da: 69:bf:cf:64:a5:8d:4f:89:d2:b9:f7:a1:42:8f:ce:d8:d2:34: 80:ab:bb:1c:18:56:41:f3:fa:75:4c:d6:68:ce:88:fe:5a:b4: f3:6a:c6:f8:fc:c4:6f:de:7d:27:76:4a:36:96:99:2c:63:d1: c0:6c:f7:97:cc:2c:bb:5d:7d:07:ea:78:6d:e8:ba:24:72:b8: 0c:c5:fc:ab:91:b7:36:7c:a9:c0:5a:d4:52:92:27:25:84:e6: 7d:54:9d:41:1e:a1:e3:91:28:b5:34:38:72:82:28:72:6b:5e: ec:4b:a0:0f:48:f1:49:83:a5:d5:bd:44:be:04:33:d3:50:c1: eb:bf:6c:bf:45:2f:7a:07:65:7d:00:f0:89:85:35:19:d5:bc: 90:57:29:1c:75:41:8c:6c:32:61:9f:b2:76:02:23:6c:10:a4: 4b:3a:d7:43:0c:51:58:16:69:ec:61:1c:75:e8:6f:19:ed:3e: e0:53:21:58:36:b4:e8:39:40:45:47:76:f7:d0:cd:ea:7b:46: f9:1a:3c:46:97:85:68:cd:85:80:f9:35:82:31:6c:d2:19:52: 93:b4:2c:fd:bb:4c:4d:c6:a7:2e:3b:94:d6:9c:bc:5b:93:c5: f7:e0:f2:75 ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:68:5d:86:6f:b1:7d:f6:88:06:0d:00:00:00:00:68:5d Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Oct 7 11:04:05 2024 GMT Not After : Oct 7 11:04:05 2026 GMT Subject: DC = scep, DC = com, CN = entity2 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:d1:f3:98:1e:5f:b0:a4:50:89:d1:5a:4f:16:8f: 13:19:2a:d3:ef:07:98:9b:e4:b9:be:1f:32:f0:42: 4d:aa:b4:d4:0e:fe:43:44:96:6c:26:f6:e7:6e:6b: 8d:92:5f:80:00:aa:6e:14:54:e6:f9:70:c2:8b:f5: ec:a5:d5:b2:1d:8c:8b:5f:8d:98:9f:90:74:f7:15: a7:72:2d:70:cc:6b:75:4e:51:85:b1:2a:da:2c:36: 98:a8:0e:20:0e:0a:cf:59:6a:88:35:f0:d4:b2:96: 6a:df:87:00:a0:d0:01:40:34:5d:10:44:6f:4c:e0: b8:8e:83:f8:c4:f4:bd:ce:27:57:64:a5:c4:f9:56: 28:f3:54:16:7f:40:0c:50:fb:23:82:40:06:a6:f3: 01:02:64:8a:73:8c:55:9e:ee:0f:8a:b3:f6:5e:a6: ae:1a:58:a8:e5:8d:fb:6e:0c:25:a4:b0:fd:01:58: 07:95:37:28:99:50:6b:5e:92:16:d8:31:ca:c0:e8: 18:e8:5c:bf:fe:d4:07:03:b4:6d:78:34:e8:e8:e5: 71:d8:59:51:03:0c:b6:d2:e4:15:c7:7d:d7:14:28: f6:06:cb:10:94:00:bb:73:0d:28:17:b0:8b:72:2c: 2c:77:ea:e3:b6:a0:b8:63:74:cb:4d:c3:b0:ef:a1: 22:41 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: E9:E2:1A:EB:46:7E:1F:CC:4A:19:76:AB:DE:FB:EB:E7:A5:0F:3A:66 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: 96:58:b9:57:1e:a1:1a:39:95:25:58:67:1d:45:c1:26:bf:2c: e7:a9:32:14:e7:83:ab:71:ac:d8:9c:f3:66:a9:f8:65:f3:ac: 03:69:0e:9c:da:8c:37:89:d8:12:27:72:c4:bb:ad:43:15:eb: 18:1e:20:ab:d2:66:88:d9:e6:c2:e1:6b:b7:4e:b3:6d:05:f0: 6b:84:e4:51:10:8c:68:86:ff:eb:dc:91:ea:a7:fe:91:5f:7d: 13:e7:7b:7c:31:09:79:97:4f:a6:18:a2:a9:23:cc:f1:18:95: d5:c9:97:f1:90:9e:09:f4:42:0c:39:1f:97:8a:56:d9:c9:ec: 5a:f3:31:55:8a:ad:5c:89:a1:92:6e:76:38:a2:d4:11:86:9d: cb:31:b3:de:5f:d8:3a:2f:a4:17:dd:21:ab:b2:f9:71:97:71: 98:6e:42:fb:6d:ca:67:7b:65:a7:a3:10:5c:c2:30:11:6a:3e: ef:dc:32:09:29:a4:4d:26:4a:a7:d0:4c:41:b1:7e:7b:98:eb: 55:e3:f6:fb:6c:3c:bd:61:00:1f:50:f8:e3:1b:f3:74:5e:91: 91:c2:7b:0d:67:36:d5:84:08:89:e1:b9:7a:c8:c6:48:cc:1d: 2b:23:d5:c3:c8:29:80:29:3c:81:cf:da:24:bc:02:2a:46:e3: e6:ca:15:f0 ---------------------------------------------------------------------- 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.446 ms --- 192.168.2.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.446/0.446/0.446/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.498 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.498/0.498/0.498/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 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 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.676 ms --- 192.168.213.25 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.676/0.676/0.676/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.695 ms --- 192.168.213.25 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.695/0.695/0.695/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 U2FsdGVkX18cQB8wdOZyg12TEEyvilwejBYR36SR3TNf1GVEMqNIDXUPgZDQXORqj1cY1Phebgi7UihNJd39dg== 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 U2FsdGVkX1/QQkXSCdJq0RsFKU6S2s6Pv2EZaoUdY7durv/3TLkoPTMi2BlkmpoKPxWYOb8fIPKV/fLxe3tpdw== 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 Oct 7 11:05:40 2024 GMT Oct 7 11:05:40 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 Oct 7 11:05:34 2024 GMT Oct 7 11:05:34 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, 49c66c99d43a6920_i* 5e6748241b61289f_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 20976s peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96 installed 20s ago, rekeying in 22375s, expires in 31660s in c96b6aab, 0 bytes, 0 packets out c2c541ac, 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, 49c66c99d43a6920_i 5e6748241b61289f_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 14652s peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96 installed 20s ago, rekeying in 16208s, expires in 31660s in c2c541ac, 0 bytes, 0 packets out c96b6aab, 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:68:5f:52:02:b6:7b:d8:c6:d8:6b:00:00:00:00:68:5f Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Oct 7 11:05:40 2024 GMT Not After : Oct 7 11:05:40 2026 GMT Subject: DC = scep, DC = com, CN = entity1 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:a9:fe:d2:30:10:ec:90:25:93:06:8d:67:53:8f: 9c:b8:20:1d:f4:78:01:78:2d:2c:85:f2:9b:b3:c1: ff:97:d0:9d:a9:d0:a2:63:f6:35:9c:12:8f:c5:d5: 42:60:17:61:04:99:55:e0:d3:ba:99:89:fe:f2:be: b8:a3:ff:cf:b9:15:de:1f:64:a6:e1:06:5a:d2:08: 01:58:c4:8b:9e:af:b0:e2:99:37:17:a2:95:63:1c: f3:41:9b:92:ec:66:a8:0a:4a:38:67:cb:ba:7e:40: 50:05:12:b8:53:97:6f:73:18:bf:45:64:41:37:53: 6b:4f:f2:bb:c1:46:6f:c6:a6:e7:d4:76:96:8c:4b: 78:5e:2b:9f:6c:6e:5a:c7:ba:25:3b:76:17:ca:53: 6a:be:6f:8a:e0:82:08:97:b6:4a:5a:af:44:89:71: 97:8e:83:29:9c:37:e5:9d:05:f5:f2:0f:04:e0:59: ae:5e:fa:76:f1:9a:62:48:f8:1e:41:e7:b6:97:53: cb:8e:5e:67:fb:9f:b9:5c:ad:7c:0c:6b:bb:12:26: 60:45:4d:41:b3:5c:24:80:bb:69:3d:86:9d:00:78: 4b:91:27:d8:4f:dd:44:c8:23:ff:fb:0b:ad:7c:72: 92:a9:17:d6:fc:3e:c2:3f:c6:2f:90:5b:ab:c8:9c: ed:8d Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: 03:48:9F:85:62:34:0B:06:28:19:9A:EC:B6:B2:94:B7:1A:2A:4C:70 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: a6:2d:b2:f7:b3:f8:bb:a0:c9:bf:df:37:4f:7b:0a:77:b2:23: 3b:e9:bd:d6:b0:ca:a4:91:9e:6e:e4:55:45:f1:5f:c3:0b:d6: e5:ef:fb:18:28:78:91:89:f9:9c:b5:f4:e7:85:fd:5e:86:d7: 9b:ac:5c:11:c4:4b:88:7e:65:84:3a:c0:15:e9:c5:e7:9f:37: a1:dd:a6:6d:9c:48:01:e4:a5:a9:a1:b0:fc:07:3f:cf:5f:95: b4:ef:31:b2:4d:b5:1b:96:98:60:bb:64:9d:4c:9b:f7:e9:4c: 4f:80:d3:7f:59:e3:5a:b6:ef:42:2c:9b:94:02:85:5a:21:59: 0a:82:a2:1a:85:ff:02:ca:44:81:de:ca:96:e4:ba:ad:70:53: 1c:5b:c3:df:3d:cc:83:0b:a0:53:f3:ee:1d:96:30:13:6a:cd: 27:6c:5e:5d:d1:36:82:aa:53:11:39:99:73:49:8a:0d:43:a3: f5:7d:2c:1a:c2:17:d9:ee:3c:96:d9:aa:6a:c2:1c:a1:49:e5: 3d:97:4d:94:63:ec:ea:e8:3a:65:e8:5e:49:b2:e7:56:84:cc: ae:f7:48:bb:59:a7:49:1e:67:cd:ce:be:ff:3d:cd:63:a3:df: 2c:9d:bc:7d:e6:db:28:ae:cf:4a:bb:0b:9d:ab:29:dc:35:8d: c1:62:94:18 ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:68:5e:d2:b8:f1:13:7b:da:e1:90:00:00:00:00:68:5e Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Oct 7 11:05:34 2024 GMT Not After : Oct 7 11:05:34 2026 GMT Subject: DC = scep, DC = com, CN = entity2 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:e4:10:27:8c:32:da:f6:40:04:c2:14:cd:7a:4d: d6:0c:2d:6f:b5:3e:24:98:1f:0c:7f:6a:e4:29:79: 6e:7e:93:ab:4f:30:3d:fe:38:7a:a0:47:db:58:c3: e6:0a:b2:40:75:60:5c:59:3b:60:03:8f:30:da:95: 93:df:f4:c7:23:fd:34:a5:08:51:d3:8e:52:97:8f: ed:80:35:17:73:22:80:c9:21:ad:f3:8b:d1:f9:bd: 0c:fa:c7:55:cf:9f:62:f6:d1:83:42:97:b6:97:d2: 38:0f:97:e1:25:7d:9d:97:6f:4d:3a:2e:86:28:1f: 3e:0f:12:8b:b1:40:10:1e:79:62:84:56:84:13:12: fb:76:e3:0b:58:f5:fc:d8:6e:9b:49:f6:e0:d3:39: 52:12:9d:26:86:aa:9b:d2:d8:db:fc:72:95:13:55: 6d:ba:8d:6a:81:c8:6b:2d:df:69:97:1f:d6:60:59: 3c:82:16:5c:fb:84:28:11:ee:54:8c:64:c2:c0:0e: c4:a7:9e:3b:15:6f:f3:a7:e9:c3:77:df:5a:ea:e9: b5:1f:5a:c9:bd:d4:90:9c:25:8f:2d:dc:80:dc:0b: e2:8f:7a:f3:11:9b:30:93:7a:03:a3:b3:8f:56:09: 55:0f:73:06:80:9b:ec:33:15:88:7f:35:a4:7b:11: b6:c9 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: D7:7E:26:A5:52:4B:B1:B6:7D:D1:A6:DF:28:EE:BA:83:68:EC:2F:4C 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: a2:74:11:59:f1:11:f9:e4:df:03:15:c6:01:e9:a8:45:37:a3: 75:1a:81:12:ea:db:8f:44:5a:01:be:cc:fa:bf:2b:5c:f4:ab: 34:ec:31:92:58:27:d5:23:eb:6d:d7:c5:7f:69:36:75:b3:2b: 10:21:4c:1a:87:27:7a:86:1b:77:e0:c3:7b:23:b2:b4:f1:4f: f6:5b:29:1d:0b:b8:05:43:72:84:c0:5f:3e:5f:10:84:24:18: 4c:66:0d:b8:b2:59:92:c1:44:10:db:a6:94:33:82:7e:73:55: 9c:84:24:3e:ab:2c:bf:ca:6a:3a:ef:ff:89:e5:8f:25:37:e8: 88:51:55:c6:b8:a3:cc:64:e8:8c:f6:70:b6:26:9d:08:c2:2f: 6b:98:4f:16:1d:f1:53:b9:bb:21:f7:2c:d1:c3:82:90:39:e1: 02:53:2f:e9:01:4e:cd:55:0a:88:1a:bd:68:2a:ef:ef:30:cb: ad:18:90:09:b2:30:5a:63:48:8c:55:44:29:07:11:65:b8:ca: 5b:d5:44:3e:11:de:9b:8e:4f:cd:d8:50:9b:b4:ed:47:82:90: d9:53:07:26:cc:41:0b:8b:e5:5b:a3:e1:9a:05:47:de:34:20: 52:ec:b0:25:31:ad:eb:b9:c2:1a:0a:58:d4:68:f6:37:68:e7: cd:c6:f4:82 ---------------------------------------------------------------------- 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:68:5f:52:02:b6:7b:d8:c6:d8:6b:00:00:00:00:68:5f Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Oct 7 11:05:40 2024 GMT Not After : Oct 7 11:05:40 2026 GMT Subject: DC = scep, DC = com, CN = entity1 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:a9:fe:d2:30:10:ec:90:25:93:06:8d:67:53:8f: 9c:b8:20:1d:f4:78:01:78:2d:2c:85:f2:9b:b3:c1: ff:97:d0:9d:a9:d0:a2:63:f6:35:9c:12:8f:c5:d5: 42:60:17:61:04:99:55:e0:d3:ba:99:89:fe:f2:be: b8:a3:ff:cf:b9:15:de:1f:64:a6:e1:06:5a:d2:08: 01:58:c4:8b:9e:af:b0:e2:99:37:17:a2:95:63:1c: f3:41:9b:92:ec:66:a8:0a:4a:38:67:cb:ba:7e:40: 50:05:12:b8:53:97:6f:73:18:bf:45:64:41:37:53: 6b:4f:f2:bb:c1:46:6f:c6:a6:e7:d4:76:96:8c:4b: 78:5e:2b:9f:6c:6e:5a:c7:ba:25:3b:76:17:ca:53: 6a:be:6f:8a:e0:82:08:97:b6:4a:5a:af:44:89:71: 97:8e:83:29:9c:37:e5:9d:05:f5:f2:0f:04:e0:59: ae:5e:fa:76:f1:9a:62:48:f8:1e:41:e7:b6:97:53: cb:8e:5e:67:fb:9f:b9:5c:ad:7c:0c:6b:bb:12:26: 60:45:4d:41:b3:5c:24:80:bb:69:3d:86:9d:00:78: 4b:91:27:d8:4f:dd:44:c8:23:ff:fb:0b:ad:7c:72: 92:a9:17:d6:fc:3e:c2:3f:c6:2f:90:5b:ab:c8:9c: ed:8d Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: 03:48:9F:85:62:34:0B:06:28:19:9A:EC:B6:B2:94:B7:1A:2A:4C:70 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: a6:2d:b2:f7:b3:f8:bb:a0:c9:bf:df:37:4f:7b:0a:77:b2:23: 3b:e9:bd:d6:b0:ca:a4:91:9e:6e:e4:55:45:f1:5f:c3:0b:d6: e5:ef:fb:18:28:78:91:89:f9:9c:b5:f4:e7:85:fd:5e:86:d7: 9b:ac:5c:11:c4:4b:88:7e:65:84:3a:c0:15:e9:c5:e7:9f:37: a1:dd:a6:6d:9c:48:01:e4:a5:a9:a1:b0:fc:07:3f:cf:5f:95: b4:ef:31:b2:4d:b5:1b:96:98:60:bb:64:9d:4c:9b:f7:e9:4c: 4f:80:d3:7f:59:e3:5a:b6:ef:42:2c:9b:94:02:85:5a:21:59: 0a:82:a2:1a:85:ff:02:ca:44:81:de:ca:96:e4:ba:ad:70:53: 1c:5b:c3:df:3d:cc:83:0b:a0:53:f3:ee:1d:96:30:13:6a:cd: 27:6c:5e:5d:d1:36:82:aa:53:11:39:99:73:49:8a:0d:43:a3: f5:7d:2c:1a:c2:17:d9:ee:3c:96:d9:aa:6a:c2:1c:a1:49:e5: 3d:97:4d:94:63:ec:ea:e8:3a:65:e8:5e:49:b2:e7:56:84:cc: ae:f7:48:bb:59:a7:49:1e:67:cd:ce:be:ff:3d:cd:63:a3:df: 2c:9d:bc:7d:e6:db:28:ae:cf:4a:bb:0b:9d:ab:29:dc:35:8d: c1:62:94:18 ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:68:5e:d2:b8:f1:13:7b:da:e1:90:00:00:00:00:68:5e Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Oct 7 11:05:34 2024 GMT Not After : Oct 7 11:05:34 2026 GMT Subject: DC = scep, DC = com, CN = entity2 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:e4:10:27:8c:32:da:f6:40:04:c2:14:cd:7a:4d: d6:0c:2d:6f:b5:3e:24:98:1f:0c:7f:6a:e4:29:79: 6e:7e:93:ab:4f:30:3d:fe:38:7a:a0:47:db:58:c3: e6:0a:b2:40:75:60:5c:59:3b:60:03:8f:30:da:95: 93:df:f4:c7:23:fd:34:a5:08:51:d3:8e:52:97:8f: ed:80:35:17:73:22:80:c9:21:ad:f3:8b:d1:f9:bd: 0c:fa:c7:55:cf:9f:62:f6:d1:83:42:97:b6:97:d2: 38:0f:97:e1:25:7d:9d:97:6f:4d:3a:2e:86:28:1f: 3e:0f:12:8b:b1:40:10:1e:79:62:84:56:84:13:12: fb:76:e3:0b:58:f5:fc:d8:6e:9b:49:f6:e0:d3:39: 52:12:9d:26:86:aa:9b:d2:d8:db:fc:72:95:13:55: 6d:ba:8d:6a:81:c8:6b:2d:df:69:97:1f:d6:60:59: 3c:82:16:5c:fb:84:28:11:ee:54:8c:64:c2:c0:0e: c4:a7:9e:3b:15:6f:f3:a7:e9:c3:77:df:5a:ea:e9: b5:1f:5a:c9:bd:d4:90:9c:25:8f:2d:dc:80:dc:0b: e2:8f:7a:f3:11:9b:30:93:7a:03:a3:b3:8f:56:09: 55:0f:73:06:80:9b:ec:33:15:88:7f:35:a4:7b:11: b6:c9 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: D7:7E:26:A5:52:4B:B1:B6:7D:D1:A6:DF:28:EE:BA:83:68:EC:2F:4C 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: a2:74:11:59:f1:11:f9:e4:df:03:15:c6:01:e9:a8:45:37:a3: 75:1a:81:12:ea:db:8f:44:5a:01:be:cc:fa:bf:2b:5c:f4:ab: 34:ec:31:92:58:27:d5:23:eb:6d:d7:c5:7f:69:36:75:b3:2b: 10:21:4c:1a:87:27:7a:86:1b:77:e0:c3:7b:23:b2:b4:f1:4f: f6:5b:29:1d:0b:b8:05:43:72:84:c0:5f:3e:5f:10:84:24:18: 4c:66:0d:b8:b2:59:92:c1:44:10:db:a6:94:33:82:7e:73:55: 9c:84:24:3e:ab:2c:bf:ca:6a:3a:ef:ff:89:e5:8f:25:37:e8: 88:51:55:c6:b8:a3:cc:64:e8:8c:f6:70:b6:26:9d:08:c2:2f: 6b:98:4f:16:1d:f1:53:b9:bb:21:f7:2c:d1:c3:82:90:39:e1: 02:53:2f:e9:01:4e:cd:55:0a:88:1a:bd:68:2a:ef:ef:30:cb: ad:18:90:09:b2:30:5a:63:48:8c:55:44:29:07:11:65:b8:ca: 5b:d5:44:3e:11:de:9b:8e:4f:cd:d8:50:9b:b4:ed:47:82:90: d9:53:07:26:cc:41:0b:8b:e5:5b:a3:e1:9a:05:47:de:34:20: 52:ec:b0:25:31:ad:eb:b9:c2:1a:0a:58:d4:68:f6:37:68:e7: cd:c6:f4:82 ---------------------------------------------------------------------- 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.540 ms --- 192.168.2.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.540/0.540/0.540/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.599 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.599/0.599/0.599/0.000 ms