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.730 ms --- 192.168.213.25 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.730/0.730/0.730/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.675 ms --- 192.168.213.25 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.675/0.675/0.675/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+SLKU3ULanrfwIJkAWNDhgmTXLiFahCUSpUHX6Zk9ZwhNm7j5DWG+jaVHzt4lu0O490fo4lLXhbw== 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 U2FsdGVkX18Mm261U+wdiH2D3PXH4hUATPKsurXYT4QnhClbOAGOwtsGFT+Rc0l0tkiRazoVIbK9IvYYtg9OEw== 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 9 10:52:02 2024 GMT Oct 9 10:52:02 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 9 10:52:06 2024 GMT Oct 9 10:52:06 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, cee583b87a792373_i* 891572907ceb3cc1_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 28403s peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96 installed 19s ago, rekeying in 24112s, expires in 31661s in ca6eafe4, 0 bytes, 0 packets out c841492e, 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, cee583b87a792373_i 891572907ceb3cc1_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 17812s peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96 installed 20s ago, rekeying in 22890s, expires in 31660s in c841492e, 0 bytes, 0 packets out ca6eafe4, 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:69:88:89:10:27:df:b7:01:6e:e0:00:00:00:00:69:88 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Oct 9 10:52:02 2024 GMT Not After : Oct 9 10:52:02 2026 GMT Subject: DC = scep, DC = com, CN = entity1 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:be:1f:d7:16:31:79:23:bc:06:32:4e:8b:a5:23: 58:56:77:58:7a:15:44:45:cb:eb:95:26:a9:5d:3a: 32:92:75:cf:d7:25:64:30:59:99:bd:8f:e5:bf:9b: 71:43:41:b8:bd:b5:22:8a:61:db:fc:c8:3e:4d:8c: d5:78:93:d4:e2:db:e5:c8:1e:b3:4e:8c:78:6a:9f: 32:fa:1c:27:3b:d6:5d:33:08:ff:bc:3e:ed:a6:91: 73:fe:27:47:c9:18:45:00:7b:8d:57:90:c4:54:27: d5:6b:10:48:a3:93:d5:15:e2:b3:e4:a8:6f:af:49: 20:71:53:65:1c:ba:d5:5e:77:18:0a:2b:ff:cd:2e: 44:24:8e:14:80:d8:c3:51:b3:e6:67:85:c3:ae:d5: 1d:e8:02:5b:7a:bb:87:96:ea:56:25:5c:ef:f0:44: 76:75:e0:40:5b:33:82:be:98:21:94:4e:69:d8:8a: 2d:03:2d:e5:2e:39:18:28:df:0a:e9:ee:8d:69:b2: 15:cd:68:54:aa:8d:38:b0:35:6d:15:3f:f8:3b:63: 58:1c:72:b0:06:04:ca:1f:83:82:1b:ce:c1:58:ff: b3:b3:eb:e7:c4:21:25:59:19:69:22:5b:12:79:28: d0:52:63:4b:fd:b2:2d:44:b7:67:ab:e4:4e:ea:62: b1:cf Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: 57:BD:5D:C6:00:87:3D:62:77:5D:4C:C4:56:E8:2E:9C:5A:E7:96:C8 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: 2f:43:e3:65:a6:30:6a:40:26:b3:c2:4b:f2:93:6d:b3:60:f9: a8:bd:bd:60:8a:8e:ce:3b:7c:55:a9:3e:8a:f6:fb:40:87:1b: 8d:f1:03:87:39:70:91:93:68:dd:53:7d:a5:b1:54:80:8d:ce: fa:74:0b:54:04:3f:9d:ae:5b:51:f5:d9:c9:9d:11:13:0a:99: 6f:fc:36:79:12:8e:c4:67:e9:ca:f8:3f:d1:ff:64:af:64:a2: ba:55:97:da:7f:72:19:c4:8d:41:ce:08:e0:f4:92:a9:81:8a: 84:9d:c4:8b:1a:79:8f:93:92:1d:36:9d:32:0a:c2:be:9f:1d: d5:47:89:2f:e0:a0:cc:cd:c8:8a:2e:97:62:b3:3f:eb:d7:af: 36:bf:29:6b:3e:21:ff:48:18:59:68:2b:cb:e9:30:29:70:00: 0b:24:c0:4d:84:0d:fc:0f:a1:02:88:fa:15:54:cc:05:d8:5c: 8a:24:fd:26:05:f8:8f:ac:e2:0f:7d:10:2a:95:04:27:59:1b: 1d:e7:61:5a:68:9a:3e:57:1d:31:c0:60:c9:22:eb:80:df:3b: 93:94:9e:75:1b:db:26:b8:82:33:c0:06:b7:dd:85:12:6d:18: 52:ca:c0:b0:f7:6b:1a:28:48:f8:39:56:3e:f0:9b:11:86:d7: d3:e7:32:1f ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:69:89:19:6e:2f:ef:5b:f5:8c:6c:00:00:00:00:69:89 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Oct 9 10:52:06 2024 GMT Not After : Oct 9 10:52:06 2026 GMT Subject: DC = scep, DC = com, CN = entity2 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:e6:b3:ea:8b:02:e6:ee:15:7a:2d:fe:36:d4:4f: a0:67:d8:54:64:66:53:a7:5c:4b:b7:62:42:08:68: 4f:e3:bd:43:3a:6e:81:8d:2e:c2:6e:97:9d:da:5d: 6b:64:49:62:4b:b2:e8:c0:e1:36:61:3c:90:e3:fd: bd:24:4e:63:80:0d:a3:dc:0c:fa:1a:4b:f2:90:86: 8b:93:a9:e8:91:30:02:86:cc:6b:ac:6e:95:cb:7c: e0:1d:ad:68:0f:9c:94:d1:12:0f:25:89:3a:d5:00: 96:86:76:e5:b3:2c:26:0b:60:16:fa:72:b1:b6:b0: 46:ac:a0:82:c2:0a:21:b5:e9:15:28:b1:f4:80:69: 93:f8:4d:be:47:e8:e0:5d:f3:60:49:25:92:22:20: 4a:b6:17:b7:89:33:03:49:6e:5b:db:71:7f:79:b7: 07:1c:7b:43:9f:48:2d:8b:0e:ed:8f:d7:73:98:52: 78:89:3c:5a:54:a2:c2:bb:e8:1f:01:e8:e2:19:40: c1:18:67:2d:4f:e4:c8:a6:25:9c:50:ee:4d:a1:81: a9:e3:84:ff:d5:6f:b7:d9:93:e3:17:61:9b:00:50: ca:97:78:18:2e:50:52:ac:f2:b6:6f:4c:11:06:50: 12:fa:c9:5b:a7:65:b5:b6:d0:31:16:74:da:a7:54: 39:59 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: EA:3E:B0:4E:4B:E3:B0:4B:0F:08:DC:22:8C:68:D7:26:52:CD:AB:3A 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: 45:7e:11:4b:fe:e2:84:44:f4:4b:ea:12:4f:9e:2c:37:cc:22: d2:76:94:f4:c9:6c:fc:de:03:c9:eb:e3:84:a4:fd:52:68:84: 80:b7:aa:a9:7c:24:e8:25:d4:d9:b4:3b:03:50:e8:7f:55:e6: 98:fc:73:dc:81:cb:c8:74:35:97:57:03:f9:34:31:03:93:0b: c1:04:0e:b2:a8:24:3a:8c:6b:09:3e:73:ea:ab:c9:c4:93:72: ed:6f:e4:c9:1b:96:e3:a9:a5:a6:7a:c4:53:e1:b1:08:c5:2f: 00:5d:cd:aa:71:30:54:35:63:e8:1d:c1:7a:ed:51:d3:5e:d6: 39:7b:e5:2e:f1:78:44:c8:ec:33:32:cf:65:3c:1c:24:4c:3d: 3c:71:17:11:c4:7a:12:a6:53:66:be:02:2e:bf:f7:06:3c:0f: ff:c8:37:f2:01:90:67:e5:b3:2b:64:47:f5:b7:48:f3:03:a5: ac:89:ed:2d:a8:ed:1d:87:18:68:87:b8:9c:17:c0:7b:51:9d: 57:8f:0a:a2:aa:8e:75:44:06:53:d2:1b:6d:d6:88:42:3b:ec: e7:44:e9:22:03:61:cb:60:4d:f1:42:6f:37:4f:81:8c:aa:19: 81:58:c0:ca:f5:91:78:7a:77:94:6b:16:7c:47:f7:c2:5b:5d: 9e:61:b4:d6 ---------------------------------------------------------------------- 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:69:88:89:10:27:df:b7:01:6e:e0:00:00:00:00:69:88 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Oct 9 10:52:02 2024 GMT Not After : Oct 9 10:52:02 2026 GMT Subject: DC = scep, DC = com, CN = entity1 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:be:1f:d7:16:31:79:23:bc:06:32:4e:8b:a5:23: 58:56:77:58:7a:15:44:45:cb:eb:95:26:a9:5d:3a: 32:92:75:cf:d7:25:64:30:59:99:bd:8f:e5:bf:9b: 71:43:41:b8:bd:b5:22:8a:61:db:fc:c8:3e:4d:8c: d5:78:93:d4:e2:db:e5:c8:1e:b3:4e:8c:78:6a:9f: 32:fa:1c:27:3b:d6:5d:33:08:ff:bc:3e:ed:a6:91: 73:fe:27:47:c9:18:45:00:7b:8d:57:90:c4:54:27: d5:6b:10:48:a3:93:d5:15:e2:b3:e4:a8:6f:af:49: 20:71:53:65:1c:ba:d5:5e:77:18:0a:2b:ff:cd:2e: 44:24:8e:14:80:d8:c3:51:b3:e6:67:85:c3:ae:d5: 1d:e8:02:5b:7a:bb:87:96:ea:56:25:5c:ef:f0:44: 76:75:e0:40:5b:33:82:be:98:21:94:4e:69:d8:8a: 2d:03:2d:e5:2e:39:18:28:df:0a:e9:ee:8d:69:b2: 15:cd:68:54:aa:8d:38:b0:35:6d:15:3f:f8:3b:63: 58:1c:72:b0:06:04:ca:1f:83:82:1b:ce:c1:58:ff: b3:b3:eb:e7:c4:21:25:59:19:69:22:5b:12:79:28: d0:52:63:4b:fd:b2:2d:44:b7:67:ab:e4:4e:ea:62: b1:cf Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: 57:BD:5D:C6:00:87:3D:62:77:5D:4C:C4:56:E8:2E:9C:5A:E7:96:C8 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: 2f:43:e3:65:a6:30:6a:40:26:b3:c2:4b:f2:93:6d:b3:60:f9: a8:bd:bd:60:8a:8e:ce:3b:7c:55:a9:3e:8a:f6:fb:40:87:1b: 8d:f1:03:87:39:70:91:93:68:dd:53:7d:a5:b1:54:80:8d:ce: fa:74:0b:54:04:3f:9d:ae:5b:51:f5:d9:c9:9d:11:13:0a:99: 6f:fc:36:79:12:8e:c4:67:e9:ca:f8:3f:d1:ff:64:af:64:a2: ba:55:97:da:7f:72:19:c4:8d:41:ce:08:e0:f4:92:a9:81:8a: 84:9d:c4:8b:1a:79:8f:93:92:1d:36:9d:32:0a:c2:be:9f:1d: d5:47:89:2f:e0:a0:cc:cd:c8:8a:2e:97:62:b3:3f:eb:d7:af: 36:bf:29:6b:3e:21:ff:48:18:59:68:2b:cb:e9:30:29:70:00: 0b:24:c0:4d:84:0d:fc:0f:a1:02:88:fa:15:54:cc:05:d8:5c: 8a:24:fd:26:05:f8:8f:ac:e2:0f:7d:10:2a:95:04:27:59:1b: 1d:e7:61:5a:68:9a:3e:57:1d:31:c0:60:c9:22:eb:80:df:3b: 93:94:9e:75:1b:db:26:b8:82:33:c0:06:b7:dd:85:12:6d:18: 52:ca:c0:b0:f7:6b:1a:28:48:f8:39:56:3e:f0:9b:11:86:d7: d3:e7:32:1f ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:69:89:19:6e:2f:ef:5b:f5:8c:6c:00:00:00:00:69:89 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Oct 9 10:52:06 2024 GMT Not After : Oct 9 10:52:06 2026 GMT Subject: DC = scep, DC = com, CN = entity2 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:e6:b3:ea:8b:02:e6:ee:15:7a:2d:fe:36:d4:4f: a0:67:d8:54:64:66:53:a7:5c:4b:b7:62:42:08:68: 4f:e3:bd:43:3a:6e:81:8d:2e:c2:6e:97:9d:da:5d: 6b:64:49:62:4b:b2:e8:c0:e1:36:61:3c:90:e3:fd: bd:24:4e:63:80:0d:a3:dc:0c:fa:1a:4b:f2:90:86: 8b:93:a9:e8:91:30:02:86:cc:6b:ac:6e:95:cb:7c: e0:1d:ad:68:0f:9c:94:d1:12:0f:25:89:3a:d5:00: 96:86:76:e5:b3:2c:26:0b:60:16:fa:72:b1:b6:b0: 46:ac:a0:82:c2:0a:21:b5:e9:15:28:b1:f4:80:69: 93:f8:4d:be:47:e8:e0:5d:f3:60:49:25:92:22:20: 4a:b6:17:b7:89:33:03:49:6e:5b:db:71:7f:79:b7: 07:1c:7b:43:9f:48:2d:8b:0e:ed:8f:d7:73:98:52: 78:89:3c:5a:54:a2:c2:bb:e8:1f:01:e8:e2:19:40: c1:18:67:2d:4f:e4:c8:a6:25:9c:50:ee:4d:a1:81: a9:e3:84:ff:d5:6f:b7:d9:93:e3:17:61:9b:00:50: ca:97:78:18:2e:50:52:ac:f2:b6:6f:4c:11:06:50: 12:fa:c9:5b:a7:65:b5:b6:d0:31:16:74:da:a7:54: 39:59 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: EA:3E:B0:4E:4B:E3:B0:4B:0F:08:DC:22:8C:68:D7:26:52:CD:AB:3A 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: 45:7e:11:4b:fe:e2:84:44:f4:4b:ea:12:4f:9e:2c:37:cc:22: d2:76:94:f4:c9:6c:fc:de:03:c9:eb:e3:84:a4:fd:52:68:84: 80:b7:aa:a9:7c:24:e8:25:d4:d9:b4:3b:03:50:e8:7f:55:e6: 98:fc:73:dc:81:cb:c8:74:35:97:57:03:f9:34:31:03:93:0b: c1:04:0e:b2:a8:24:3a:8c:6b:09:3e:73:ea:ab:c9:c4:93:72: ed:6f:e4:c9:1b:96:e3:a9:a5:a6:7a:c4:53:e1:b1:08:c5:2f: 00:5d:cd:aa:71:30:54:35:63:e8:1d:c1:7a:ed:51:d3:5e:d6: 39:7b:e5:2e:f1:78:44:c8:ec:33:32:cf:65:3c:1c:24:4c:3d: 3c:71:17:11:c4:7a:12:a6:53:66:be:02:2e:bf:f7:06:3c:0f: ff:c8:37:f2:01:90:67:e5:b3:2b:64:47:f5:b7:48:f3:03:a5: ac:89:ed:2d:a8:ed:1d:87:18:68:87:b8:9c:17:c0:7b:51:9d: 57:8f:0a:a2:aa:8e:75:44:06:53:d2:1b:6d:d6:88:42:3b:ec: e7:44:e9:22:03:61:cb:60:4d:f1:42:6f:37:4f:81:8c:aa:19: 81:58:c0:ca:f5:91:78:7a:77:94:6b:16:7c:47:f7:c2:5b:5d: 9e:61:b4:d6 ---------------------------------------------------------------------- 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.653 ms --- 192.168.2.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.653/0.653/0.653/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.657 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.657/0.657/0.657/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.694 ms --- 192.168.213.25 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.694/0.694/0.694/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.610 ms --- 192.168.213.25 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.610/0.610/0.610/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+qn9xOpcg4ZjJlZIBD64L6eHNDOqkWcApnlFu3/XhNXjz7/M4ChpIX5QYhQG2VLWJMicy+dlH6+A== 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/rc1kluoLn72/pYK6U1cCI00w3PzRavfDZtOvjb/srIoImayoTR5Nd6pMW44S5S/ktxPrQTA3IGA== 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 9 10:53:47 2024 GMT Oct 9 10:53:47 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 9 10:53:41 2024 GMT Oct 9 10:53:41 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, 203d93ff2488ec1f_i* 76e9da7e47f3625b_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 17074s peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96 installed 20s ago, rekeying in 19300s, expires in 31660s in cd531b0b, 0 bytes, 0 packets out c975e800, 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, 203d93ff2488ec1f_i 76e9da7e47f3625b_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 26289s peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96 installed 20s ago, rekeying in 14814s, expires in 31660s in c975e800, 0 bytes, 0 packets out cd531b0b, 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:69:8b:56:53:79:0f:ef:bb:32:a6:00:00:00:00:69:8b Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Oct 9 10:53:47 2024 GMT Not After : Oct 9 10:53:47 2026 GMT Subject: DC = scep, DC = com, CN = entity1 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:96:87:70:0c:59:fa:6b:c5:43:c5:c9:12:f5:10: 53:17:bc:68:39:ac:fb:5b:e1:6a:0e:ae:b8:bf:00: f8:09:58:eb:24:d4:3f:4b:51:b0:3c:37:99:64:8a: 6b:5c:1c:52:1e:bf:25:a1:6c:d6:80:30:ef:68:4b: a4:a9:25:b7:a7:d1:49:f5:fc:07:d3:4b:f2:15:0b: df:0d:b7:dd:8d:c6:99:81:03:02:df:3e:2e:79:28: 86:db:6a:af:07:0d:d7:02:65:34:87:d7:35:34:40: 0a:78:f1:d4:80:b4:bb:8f:52:61:6b:7f:ad:d1:a1: ff:4e:0a:88:31:23:ce:ee:0f:e2:d9:54:58:70:0f: 56:e0:20:35:9b:07:83:f2:e2:4e:01:5c:a4:e1:8a: 44:1b:ad:1a:15:eb:b5:8d:05:06:dd:1c:cc:96:2f: ac:7b:67:ff:53:0f:65:c5:59:e9:f2:9c:0d:c3:c5: f2:b0:2d:c8:a6:e7:11:7a:1d:cc:e6:85:f3:53:7c: 0c:58:a6:1c:ad:05:34:df:e1:b9:f2:92:6e:9c:1f: 97:d6:b9:27:62:9a:f3:57:d7:03:00:cc:2d:c8:ef: 24:e7:26:42:c7:83:b1:29:eb:c5:0f:39:c9:69:5f: 2b:6a:46:1c:e9:23:fc:bd:54:8d:e1:4a:3d:e0:fb: ed:2f Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: FA:AD:56:48:1F:A8:C4:37:FD:D9:5B:72:98:6B:E0:8D:AC:BF:A5:4D 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: bc:db:19:bf:ae:52:99:50:91:c0:4d:80:cc:85:ef:49:83:fb: b3:d1:07:5d:11:9d:a5:a2:9d:27:5b:29:1a:a8:0f:b2:4b:a7: cb:d6:c5:1e:1b:a1:62:d7:4c:bd:0f:07:1d:c9:ba:3c:eb:a0: b5:7a:0c:9b:5d:57:45:c4:f9:33:1b:b2:9d:80:9b:73:3d:43: 8d:2d:80:50:d9:6f:f4:00:af:2c:40:a1:0c:27:ec:fb:7e:56: 96:d7:4b:02:5a:5c:ca:7a:c4:aa:23:4a:a7:0f:8a:51:6a:d3: a7:48:88:1e:97:4c:9e:d7:c8:cb:f3:08:d6:37:8a:4b:cc:5e: b0:30:24:48:b5:ba:5d:1b:4d:cf:2c:9e:1a:d0:51:cb:5b:48: b5:c5:5c:fc:12:ed:19:65:82:4d:3f:eb:3e:30:75:0e:5f:b5: b8:7d:ce:36:19:eb:b9:b6:87:ae:87:c3:c9:79:ed:d9:bb:e2: 01:ed:4d:c5:8d:c3:23:c7:bc:49:d5:18:b5:ab:55:b5:bd:bb: 40:2a:df:05:70:0c:1e:5a:d1:b4:3c:cd:3f:6a:b6:a2:08:1b: 0e:ab:16:8e:74:e4:e0:4e:94:16:80:c0:3a:cd:81:5b:2a:11: 61:fe:0c:c6:15:60:b5:41:f5:5e:4f:87:46:03:dd:dd:69:bf: dd:9b:c7:9f ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:69:8a:00:17:78:4c:93:66:a6:24:00:00:00:00:69:8a Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Oct 9 10:53:41 2024 GMT Not After : Oct 9 10:53:41 2026 GMT Subject: DC = scep, DC = com, CN = entity2 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:bc:39:34:04:06:ba:62:72:bf:e9:38:f5:8e:03: 46:99:c4:99:23:4e:9f:38:36:07:e0:d7:d6:c7:f6: 8b:fc:62:95:63:0f:96:9c:e6:2e:69:8c:b2:da:c5: e9:d5:2b:77:3b:a1:96:c4:5b:31:dd:6d:67:2e:98: 84:0c:80:6c:71:10:35:12:e3:21:df:28:e4:40:8d: 56:e6:23:6e:28:3a:90:b2:0b:03:8e:cc:23:9a:13: 0a:a0:4a:ec:aa:91:92:f5:26:42:c2:90:33:1c:84: 6c:46:46:9c:3d:df:91:8d:e9:55:ff:6e:68:c1:9b: 11:21:28:d9:f5:23:69:fd:3e:70:ff:4d:7a:af:33: 74:89:36:e7:24:87:d6:d4:04:f4:b4:b8:13:5a:7b: 95:34:79:33:44:ff:9c:35:24:82:d3:a6:f2:60:24: 2d:87:ff:49:f9:dc:6c:73:a4:38:b3:5f:ba:7d:05: 09:b0:0b:6d:19:b4:bd:54:21:4e:be:6a:bb:53:91: 25:a2:c4:b7:15:27:12:2c:af:64:00:09:32:c3:ca: f4:e4:8e:a2:58:2d:dd:bc:ef:b9:0a:9d:88:76:90: 40:b6:8f:1d:13:1b:03:2d:c2:98:28:4e:dd:91:39: 6f:40:74:dd:20:47:52:ce:09:19:92:18:83:f6:c2: 35:75 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: 7C:36:9F:E7:FB:96:BA:BD:BE:76:E8:D1:98:AF:5A:CD:D1:A8:4E:AD 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: af:bb:6c:64:eb:c4:91:50:4b:71:76:31:d5:5e:2c:08:fa:c5: 41:94:11:fc:cf:eb:b3:3e:95:82:ed:31:29:47:73:54:75:72: bf:f7:07:61:20:cc:9e:ea:15:80:54:1f:ab:c3:f2:81:1e:2c: e4:42:c8:de:6f:a5:87:80:75:aa:ba:56:10:2f:79:5c:ed:9c: 60:83:a3:16:cd:37:52:26:69:65:90:e7:94:2f:90:47:8d:be: ce:87:60:04:7e:c4:1d:46:98:3f:d9:35:5e:4d:d0:2d:cd:e7: 7a:b5:ab:1e:6a:11:a0:4c:17:41:59:59:56:63:2d:62:2f:ca: ae:d8:48:e5:14:aa:9d:bc:e3:62:3d:d3:b2:38:87:a5:d3:6d: ed:a7:71:ef:a9:95:84:7d:94:48:6d:a2:9a:8c:28:7a:d7:c1: 57:82:fa:eb:ea:d6:32:68:18:12:37:82:ad:61:50:ce:28:65: af:79:af:5c:60:15:61:8c:4e:3e:92:c9:0a:b6:07:27:8c:bc: 89:e1:59:c3:6e:84:13:33:6f:2c:f7:0e:67:57:3e:58:9b:9d: 94:cb:44:55:45:32:b8:5d:ee:50:f6:57:fb:c8:d6:95:7d:56: 8e:55:cf:5b:24:7e:2f:6c:e9:64:dc:7b:6b:13:57:00:a7:01: 34:f8:43:45 ---------------------------------------------------------------------- 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:69:8b:56:53:79:0f:ef:bb:32:a6:00:00:00:00:69:8b Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Oct 9 10:53:47 2024 GMT Not After : Oct 9 10:53:47 2026 GMT Subject: DC = scep, DC = com, CN = entity1 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:96:87:70:0c:59:fa:6b:c5:43:c5:c9:12:f5:10: 53:17:bc:68:39:ac:fb:5b:e1:6a:0e:ae:b8:bf:00: f8:09:58:eb:24:d4:3f:4b:51:b0:3c:37:99:64:8a: 6b:5c:1c:52:1e:bf:25:a1:6c:d6:80:30:ef:68:4b: a4:a9:25:b7:a7:d1:49:f5:fc:07:d3:4b:f2:15:0b: df:0d:b7:dd:8d:c6:99:81:03:02:df:3e:2e:79:28: 86:db:6a:af:07:0d:d7:02:65:34:87:d7:35:34:40: 0a:78:f1:d4:80:b4:bb:8f:52:61:6b:7f:ad:d1:a1: ff:4e:0a:88:31:23:ce:ee:0f:e2:d9:54:58:70:0f: 56:e0:20:35:9b:07:83:f2:e2:4e:01:5c:a4:e1:8a: 44:1b:ad:1a:15:eb:b5:8d:05:06:dd:1c:cc:96:2f: ac:7b:67:ff:53:0f:65:c5:59:e9:f2:9c:0d:c3:c5: f2:b0:2d:c8:a6:e7:11:7a:1d:cc:e6:85:f3:53:7c: 0c:58:a6:1c:ad:05:34:df:e1:b9:f2:92:6e:9c:1f: 97:d6:b9:27:62:9a:f3:57:d7:03:00:cc:2d:c8:ef: 24:e7:26:42:c7:83:b1:29:eb:c5:0f:39:c9:69:5f: 2b:6a:46:1c:e9:23:fc:bd:54:8d:e1:4a:3d:e0:fb: ed:2f Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: FA:AD:56:48:1F:A8:C4:37:FD:D9:5B:72:98:6B:E0:8D:AC:BF:A5:4D 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: bc:db:19:bf:ae:52:99:50:91:c0:4d:80:cc:85:ef:49:83:fb: b3:d1:07:5d:11:9d:a5:a2:9d:27:5b:29:1a:a8:0f:b2:4b:a7: cb:d6:c5:1e:1b:a1:62:d7:4c:bd:0f:07:1d:c9:ba:3c:eb:a0: b5:7a:0c:9b:5d:57:45:c4:f9:33:1b:b2:9d:80:9b:73:3d:43: 8d:2d:80:50:d9:6f:f4:00:af:2c:40:a1:0c:27:ec:fb:7e:56: 96:d7:4b:02:5a:5c:ca:7a:c4:aa:23:4a:a7:0f:8a:51:6a:d3: a7:48:88:1e:97:4c:9e:d7:c8:cb:f3:08:d6:37:8a:4b:cc:5e: b0:30:24:48:b5:ba:5d:1b:4d:cf:2c:9e:1a:d0:51:cb:5b:48: b5:c5:5c:fc:12:ed:19:65:82:4d:3f:eb:3e:30:75:0e:5f:b5: b8:7d:ce:36:19:eb:b9:b6:87:ae:87:c3:c9:79:ed:d9:bb:e2: 01:ed:4d:c5:8d:c3:23:c7:bc:49:d5:18:b5:ab:55:b5:bd:bb: 40:2a:df:05:70:0c:1e:5a:d1:b4:3c:cd:3f:6a:b6:a2:08:1b: 0e:ab:16:8e:74:e4:e0:4e:94:16:80:c0:3a:cd:81:5b:2a:11: 61:fe:0c:c6:15:60:b5:41:f5:5e:4f:87:46:03:dd:dd:69:bf: dd:9b:c7:9f ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:69:8a:00:17:78:4c:93:66:a6:24:00:00:00:00:69:8a Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Oct 9 10:53:41 2024 GMT Not After : Oct 9 10:53:41 2026 GMT Subject: DC = scep, DC = com, CN = entity2 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:bc:39:34:04:06:ba:62:72:bf:e9:38:f5:8e:03: 46:99:c4:99:23:4e:9f:38:36:07:e0:d7:d6:c7:f6: 8b:fc:62:95:63:0f:96:9c:e6:2e:69:8c:b2:da:c5: e9:d5:2b:77:3b:a1:96:c4:5b:31:dd:6d:67:2e:98: 84:0c:80:6c:71:10:35:12:e3:21:df:28:e4:40:8d: 56:e6:23:6e:28:3a:90:b2:0b:03:8e:cc:23:9a:13: 0a:a0:4a:ec:aa:91:92:f5:26:42:c2:90:33:1c:84: 6c:46:46:9c:3d:df:91:8d:e9:55:ff:6e:68:c1:9b: 11:21:28:d9:f5:23:69:fd:3e:70:ff:4d:7a:af:33: 74:89:36:e7:24:87:d6:d4:04:f4:b4:b8:13:5a:7b: 95:34:79:33:44:ff:9c:35:24:82:d3:a6:f2:60:24: 2d:87:ff:49:f9:dc:6c:73:a4:38:b3:5f:ba:7d:05: 09:b0:0b:6d:19:b4:bd:54:21:4e:be:6a:bb:53:91: 25:a2:c4:b7:15:27:12:2c:af:64:00:09:32:c3:ca: f4:e4:8e:a2:58:2d:dd:bc:ef:b9:0a:9d:88:76:90: 40:b6:8f:1d:13:1b:03:2d:c2:98:28:4e:dd:91:39: 6f:40:74:dd:20:47:52:ce:09:19:92:18:83:f6:c2: 35:75 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: 7C:36:9F:E7:FB:96:BA:BD:BE:76:E8:D1:98:AF:5A:CD:D1:A8:4E:AD 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: af:bb:6c:64:eb:c4:91:50:4b:71:76:31:d5:5e:2c:08:fa:c5: 41:94:11:fc:cf:eb:b3:3e:95:82:ed:31:29:47:73:54:75:72: bf:f7:07:61:20:cc:9e:ea:15:80:54:1f:ab:c3:f2:81:1e:2c: e4:42:c8:de:6f:a5:87:80:75:aa:ba:56:10:2f:79:5c:ed:9c: 60:83:a3:16:cd:37:52:26:69:65:90:e7:94:2f:90:47:8d:be: ce:87:60:04:7e:c4:1d:46:98:3f:d9:35:5e:4d:d0:2d:cd:e7: 7a:b5:ab:1e:6a:11:a0:4c:17:41:59:59:56:63:2d:62:2f:ca: ae:d8:48:e5:14:aa:9d:bc:e3:62:3d:d3:b2:38:87:a5:d3:6d: ed:a7:71:ef:a9:95:84:7d:94:48:6d:a2:9a:8c:28:7a:d7:c1: 57:82:fa:eb:ea:d6:32:68:18:12:37:82:ad:61:50:ce:28:65: af:79:af:5c:60:15:61:8c:4e:3e:92:c9:0a:b6:07:27:8c:bc: 89:e1:59:c3:6e:84:13:33:6f:2c:f7:0e:67:57:3e:58:9b:9d: 94:cb:44:55:45:32:b8:5d:ee:50:f6:57:fb:c8:d6:95:7d:56: 8e:55:cf:5b:24:7e:2f:6c:e9:64:dc:7b:6b:13:57:00:a7:01: 34:f8:43:45 ---------------------------------------------------------------------- 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.614 ms --- 192.168.2.1 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 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.776 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.776/0.776/0.776/0.000 ms