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.617 ms --- 192.168.213.25 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.617/0.617/0.617/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.548 ms --- 192.168.213.25 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.548/0.548/0.548/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 U2FsdGVkX18IG4KXONCVW+BcLBZvHgNWohgYkI/rKseOmj2NUjzwsEpl1ZeGEzXHefwajqqAWObScVGCJMpaug== 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+0xbrVd+uvxvCdxDhBJgpOgxwgHPhvsJSuLqxqNP6Qkg6jLNFzQNc58BgDg0aWpHdoZ5ayahJVvw== 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 Dec 4 16:32:11 2024 GMT Dec 4 16:32:11 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 Dec 4 16:32:13 2024 GMT Dec 4 16:32:13 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, 09aa23611340495b_i* ed738edd95ee3ea5_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 18s ago, rekeying in 25702s peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96 installed 19s ago, rekeying in 24538s, expires in 31662s in cadf5625, 0 bytes, 0 packets out c6ffc1a8, 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, 09aa23611340495b_i ed738edd95ee3ea5_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 25748s peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96 installed 19s ago, rekeying in 15825s, expires in 31661s in c6ffc1a8, 0 bytes, 0 packets out cadf5625, 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:7f:56:0e:e9:b6:12:c9:b1:b4:f3:00:00:00:00:7f:56 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Dec 4 16:32:11 2024 GMT Not After : Dec 4 16:32:11 2026 GMT Subject: DC = scep, DC = com, CN = entity1 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:cc:61:4e:2a:ec:2b:d7:0c:12:1a:37:ac:ce:c6: 74:13:43:ff:9e:7e:71:eb:4a:72:19:7f:40:49:76: 95:e8:74:7c:6c:a9:32:77:36:ff:49:da:3c:2b:04: 48:43:f0:13:71:7b:8c:64:f3:37:8b:a6:a5:bc:20: f4:d0:fb:5f:1c:14:37:8a:f8:7c:26:34:a1:a8:52: e0:75:9d:0a:08:89:8b:66:7e:c3:90:38:58:13:4d: dc:ed:74:0b:b1:c3:13:af:60:da:d4:3c:51:c6:c0: 48:98:cb:a3:af:88:a5:be:a4:9d:33:7b:5d:63:40: a7:65:e5:f2:ec:08:d4:94:a7:6e:b5:5e:16:a5:9b: 53:e0:24:36:95:d9:7e:53:44:8a:0c:c4:57:74:44: a3:99:14:7f:5d:06:96:97:b8:15:03:c2:75:58:e1: fd:1c:9b:b9:e2:09:fd:5f:92:eb:c3:f5:36:7f:a8: d4:18:a3:f2:af:6c:26:c3:d0:20:58:79:9f:b9:61: ed:43:9b:25:9e:d8:92:a1:34:33:8c:ae:9f:50:19: 54:69:f4:e2:3e:82:78:f9:a3:1e:ab:e4:15:67:23: 39:16:01:36:48:80:83:55:89:b7:25:22:58:4c:a5: 69:38:3c:44:8e:84:bd:5f:2a:48:65:e7:e6:f3:e7: ff:b7 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: 98:87:C3:15:1E:43:45:E5:14:8D:87:38:2B:48:AF:A9:E7:24:A9:08 X509v3 Authority Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 X509v3 CRL Distribution Points: Full Name: URI:http://192.168.213.25/CertEnroll/scep-TELDATPKI-CA.crl 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: b7:2f:01:2f:f1:71:64:98:98:22:c3:d2:88:26:86:d2:e0:cd: 13:71:e9:50:cd:ea:b1:a0:3f:2d:7f:1f:53:84:34:41:37:9e: 2b:80:d0:91:96:f7:e0:58:47:b3:7f:46:57:0c:14:14:a7:fb: a1:2f:b8:13:03:f7:87:35:e5:c8:0a:63:0d:7a:6f:b9:20:8f: 1d:b6:bb:22:8c:9d:05:48:97:1a:4d:d0:d3:6d:f7:fb:6f:01: 35:69:91:76:e4:d3:11:c5:5b:c4:57:71:e8:c7:1c:8e:9f:67: c9:7e:3f:b1:20:bf:85:50:eb:a1:d2:45:bc:7e:84:7a:91:da: 47:3b:1f:59:f6:98:a1:92:07:54:f0:e1:94:df:c7:66:c2:49: d9:92:f7:06:78:f1:90:e3:e2:33:c4:16:a3:ca:79:9e:99:9b: 0a:61:92:84:88:dd:cd:ac:ed:e6:68:8b:10:be:69:4d:e2:5e: 73:8f:a1:01:55:de:f3:9c:e9:33:d1:69:7e:73:09:78:ce:f2: 94:db:2f:3d:de:95:39:47:6d:e2:8f:67:17:f5:aa:f6:b7:ed: d8:eb:40:e7:59:f1:77:7f:a9:0c:cc:e0:06:d8:9d:f0:ee:a5: a8:df:e3:b7:1f:36:7d:e3:52:a1:72:e0:ca:80:2c:00:40:75: 60:14:3c:5d ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:7f:57:a3:26:eb:be:06:e9:5e:fa:00:00:00:00:7f:57 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Dec 4 16:32:13 2024 GMT Not After : Dec 4 16:32:13 2026 GMT Subject: DC = scep, DC = com, CN = entity2 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:a9:39:1f:a6:98:17:2f:d9:3a:45:50:1a:4c:2f: e7:d4:2d:aa:6d:96:24:2d:f1:b4:e1:fd:23:4d:9f: b3:5f:d0:fe:b9:09:b6:3a:37:41:7a:83:cb:4c:c0: 11:7f:6f:ed:ee:08:75:c5:52:ac:ab:43:67:5d:4b: 3a:ca:1a:b7:24:ed:46:cd:53:fa:15:51:ef:51:f1: d4:01:9d:a9:0e:35:84:81:af:39:d8:af:62:92:50: 5a:43:ac:45:1e:47:a6:46:6e:93:4e:93:ce:09:aa: 6f:63:dc:d1:88:46:94:17:3a:f1:2c:89:13:9a:8b: 5b:5b:be:e4:f2:b4:26:fc:6c:51:ac:3a:aa:8f:09: b3:e3:da:4e:4f:bf:5c:6f:d9:dc:93:6a:4c:f9:1b: 08:65:4f:8b:56:18:c5:fc:a8:32:54:84:77:f6:38: 28:48:56:52:c2:d6:56:05:1d:94:39:a4:b0:f6:f3: 20:d3:6d:2b:fc:2c:20:84:ee:33:96:fe:65:11:87: b2:70:a5:89:bc:fe:12:16:25:72:2a:f0:30:1a:98: 14:d5:ab:a2:9f:02:92:4a:c6:c3:d8:92:ea:6e:41: 1f:5f:f9:69:4a:cf:fb:97:78:d5:44:7b:a2:ba:bd: 40:4e:30:1c:0a:2a:b7:74:fe:57:f6:2c:4f:76:2d: 60:cf Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: FF:38:4A:6C:AB:46:A5:29:A4:01:D4:AE:11:19:3E:97:36:04:33:C3 X509v3 Authority Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 X509v3 CRL Distribution Points: Full Name: URI:http://192.168.213.25/CertEnroll/scep-TELDATPKI-CA.crl 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: 8f:6e:04:7b:0e:93:bb:0c:59:45:71:8a:1d:5e:bb:ac:42:10: cd:88:ee:8b:b8:0d:7c:66:5b:cb:4e:04:97:c1:f3:37:c8:d4: 95:1b:51:3d:51:ac:32:9e:3f:be:85:a1:40:1e:6e:69:0b:da: 68:54:53:dc:50:fe:f8:6b:b9:16:99:aa:08:37:87:bc:d8:d2: d4:db:89:2c:e6:18:d3:75:5b:2d:f6:c4:82:db:6d:49:27:44: cf:1a:5b:b1:4d:96:10:98:79:93:89:79:26:ce:b9:98:8e:3e: 96:62:7b:25:ef:d1:11:af:74:6a:e5:e2:05:44:dd:27:47:3e: 21:99:02:8f:66:37:98:38:e3:97:7f:1a:b5:04:7a:a9:00:ba: 89:db:20:cd:cb:63:40:01:cc:44:04:ac:15:77:39:ef:83:64: 3d:d3:2a:4c:31:d3:69:0e:be:a6:39:ae:d9:c7:98:fa:1f:e5: 4f:2e:c0:03:d6:46:dc:4e:3a:a6:94:d8:b4:b7:bd:19:b2:43: f9:ac:ca:b9:30:c8:33:84:28:b2:55:a6:57:88:40:cb:29:f1: 17:a7:1b:a2:2e:d7:d4:b7:59:03:89:c7:b2:fb:bf:af:dc:59: 9f:78:66:24:0d:3f:7c:b5:81:1a:6f:fd:ac:22:67:ad:23:35: 5c:bf:f4:9c ---------------------------------------------------------------------- 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:7f:56:0e:e9:b6:12:c9:b1:b4:f3:00:00:00:00:7f:56 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Dec 4 16:32:11 2024 GMT Not After : Dec 4 16:32:11 2026 GMT Subject: DC = scep, DC = com, CN = entity1 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:cc:61:4e:2a:ec:2b:d7:0c:12:1a:37:ac:ce:c6: 74:13:43:ff:9e:7e:71:eb:4a:72:19:7f:40:49:76: 95:e8:74:7c:6c:a9:32:77:36:ff:49:da:3c:2b:04: 48:43:f0:13:71:7b:8c:64:f3:37:8b:a6:a5:bc:20: f4:d0:fb:5f:1c:14:37:8a:f8:7c:26:34:a1:a8:52: e0:75:9d:0a:08:89:8b:66:7e:c3:90:38:58:13:4d: dc:ed:74:0b:b1:c3:13:af:60:da:d4:3c:51:c6:c0: 48:98:cb:a3:af:88:a5:be:a4:9d:33:7b:5d:63:40: a7:65:e5:f2:ec:08:d4:94:a7:6e:b5:5e:16:a5:9b: 53:e0:24:36:95:d9:7e:53:44:8a:0c:c4:57:74:44: a3:99:14:7f:5d:06:96:97:b8:15:03:c2:75:58:e1: fd:1c:9b:b9:e2:09:fd:5f:92:eb:c3:f5:36:7f:a8: d4:18:a3:f2:af:6c:26:c3:d0:20:58:79:9f:b9:61: ed:43:9b:25:9e:d8:92:a1:34:33:8c:ae:9f:50:19: 54:69:f4:e2:3e:82:78:f9:a3:1e:ab:e4:15:67:23: 39:16:01:36:48:80:83:55:89:b7:25:22:58:4c:a5: 69:38:3c:44:8e:84:bd:5f:2a:48:65:e7:e6:f3:e7: ff:b7 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: 98:87:C3:15:1E:43:45:E5:14:8D:87:38:2B:48:AF:A9:E7:24:A9:08 X509v3 Authority Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 X509v3 CRL Distribution Points: Full Name: URI:http://192.168.213.25/CertEnroll/scep-TELDATPKI-CA.crl 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: b7:2f:01:2f:f1:71:64:98:98:22:c3:d2:88:26:86:d2:e0:cd: 13:71:e9:50:cd:ea:b1:a0:3f:2d:7f:1f:53:84:34:41:37:9e: 2b:80:d0:91:96:f7:e0:58:47:b3:7f:46:57:0c:14:14:a7:fb: a1:2f:b8:13:03:f7:87:35:e5:c8:0a:63:0d:7a:6f:b9:20:8f: 1d:b6:bb:22:8c:9d:05:48:97:1a:4d:d0:d3:6d:f7:fb:6f:01: 35:69:91:76:e4:d3:11:c5:5b:c4:57:71:e8:c7:1c:8e:9f:67: c9:7e:3f:b1:20:bf:85:50:eb:a1:d2:45:bc:7e:84:7a:91:da: 47:3b:1f:59:f6:98:a1:92:07:54:f0:e1:94:df:c7:66:c2:49: d9:92:f7:06:78:f1:90:e3:e2:33:c4:16:a3:ca:79:9e:99:9b: 0a:61:92:84:88:dd:cd:ac:ed:e6:68:8b:10:be:69:4d:e2:5e: 73:8f:a1:01:55:de:f3:9c:e9:33:d1:69:7e:73:09:78:ce:f2: 94:db:2f:3d:de:95:39:47:6d:e2:8f:67:17:f5:aa:f6:b7:ed: d8:eb:40:e7:59:f1:77:7f:a9:0c:cc:e0:06:d8:9d:f0:ee:a5: a8:df:e3:b7:1f:36:7d:e3:52:a1:72:e0:ca:80:2c:00:40:75: 60:14:3c:5d ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:7f:57:a3:26:eb:be:06:e9:5e:fa:00:00:00:00:7f:57 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Dec 4 16:32:13 2024 GMT Not After : Dec 4 16:32:13 2026 GMT Subject: DC = scep, DC = com, CN = entity2 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:a9:39:1f:a6:98:17:2f:d9:3a:45:50:1a:4c:2f: e7:d4:2d:aa:6d:96:24:2d:f1:b4:e1:fd:23:4d:9f: b3:5f:d0:fe:b9:09:b6:3a:37:41:7a:83:cb:4c:c0: 11:7f:6f:ed:ee:08:75:c5:52:ac:ab:43:67:5d:4b: 3a:ca:1a:b7:24:ed:46:cd:53:fa:15:51:ef:51:f1: d4:01:9d:a9:0e:35:84:81:af:39:d8:af:62:92:50: 5a:43:ac:45:1e:47:a6:46:6e:93:4e:93:ce:09:aa: 6f:63:dc:d1:88:46:94:17:3a:f1:2c:89:13:9a:8b: 5b:5b:be:e4:f2:b4:26:fc:6c:51:ac:3a:aa:8f:09: b3:e3:da:4e:4f:bf:5c:6f:d9:dc:93:6a:4c:f9:1b: 08:65:4f:8b:56:18:c5:fc:a8:32:54:84:77:f6:38: 28:48:56:52:c2:d6:56:05:1d:94:39:a4:b0:f6:f3: 20:d3:6d:2b:fc:2c:20:84:ee:33:96:fe:65:11:87: b2:70:a5:89:bc:fe:12:16:25:72:2a:f0:30:1a:98: 14:d5:ab:a2:9f:02:92:4a:c6:c3:d8:92:ea:6e:41: 1f:5f:f9:69:4a:cf:fb:97:78:d5:44:7b:a2:ba:bd: 40:4e:30:1c:0a:2a:b7:74:fe:57:f6:2c:4f:76:2d: 60:cf Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: FF:38:4A:6C:AB:46:A5:29:A4:01:D4:AE:11:19:3E:97:36:04:33:C3 X509v3 Authority Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 X509v3 CRL Distribution Points: Full Name: URI:http://192.168.213.25/CertEnroll/scep-TELDATPKI-CA.crl 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: 8f:6e:04:7b:0e:93:bb:0c:59:45:71:8a:1d:5e:bb:ac:42:10: cd:88:ee:8b:b8:0d:7c:66:5b:cb:4e:04:97:c1:f3:37:c8:d4: 95:1b:51:3d:51:ac:32:9e:3f:be:85:a1:40:1e:6e:69:0b:da: 68:54:53:dc:50:fe:f8:6b:b9:16:99:aa:08:37:87:bc:d8:d2: d4:db:89:2c:e6:18:d3:75:5b:2d:f6:c4:82:db:6d:49:27:44: cf:1a:5b:b1:4d:96:10:98:79:93:89:79:26:ce:b9:98:8e:3e: 96:62:7b:25:ef:d1:11:af:74:6a:e5:e2:05:44:dd:27:47:3e: 21:99:02:8f:66:37:98:38:e3:97:7f:1a:b5:04:7a:a9:00:ba: 89:db:20:cd:cb:63:40:01:cc:44:04:ac:15:77:39:ef:83:64: 3d:d3:2a:4c:31:d3:69:0e:be:a6:39:ae:d9:c7:98:fa:1f:e5: 4f:2e:c0:03:d6:46:dc:4e:3a:a6:94:d8:b4:b7:bd:19:b2:43: f9:ac:ca:b9:30:c8:33:84:28:b2:55:a6:57:88:40:cb:29:f1: 17:a7:1b:a2:2e:d7:d4:b7:59:03:89:c7:b2:fb:bf:af:dc:59: 9f:78:66:24:0d:3f:7c:b5:81:1a:6f:fd:ac:22:67:ad:23:35: 5c:bf:f4:9c ---------------------------------------------------------------------- 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=14.0 ms --- 192.168.2.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 13.975/13.975/13.975/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.766 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.766/0.766/0.766/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.641 ms --- 192.168.213.25 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.641/0.641/0.641/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.588 ms --- 192.168.213.25 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.588/0.588/0.588/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 U2FsdGVkX19ARCgoAIJAK2HiMbPCMKl3S5ht/bRsG4RLcS+qdtUOCNQT0V2taWA+G4O7B4e16YtaY/jkeFFzfQ== 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/GpsqWxc0Pq1ofy31FOqlIhCnOm8YVT8W1p/evVrG3FSNmoI/cbzdX8mYlaf4t40rZGPcWYOyQYw== 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 Dec 4 16:33:45 2024 GMT Dec 4 16:33:45 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 Dec 4 16:33:40 2024 GMT Dec 4 16:33:40 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, b8c8da2f0c8fcb6f_i* 57c187a5b79a75b3_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 14610s peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96 installed 20s ago, rekeying in 22276s, expires in 31660s in c9352b53, 0 bytes, 0 packets out cfef4dd5, 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, b8c8da2f0c8fcb6f_i 57c187a5b79a75b3_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 23795s peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96 installed 20s ago, rekeying in 18643s, expires in 31660s in cfef4dd5, 0 bytes, 0 packets out c9352b53, 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:7f:59:34:1c:d6:e1:d4:70:2d:a0:00:00:00:00:7f:59 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Dec 4 16:33:45 2024 GMT Not After : Dec 4 16:33:45 2026 GMT Subject: DC = scep, DC = com, CN = entity1 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:bf:38:6c:4a:c9:21:3c:7b:db:af:88:69:3e:c2: 9f:fa:76:f5:b2:59:70:83:85:7e:81:a0:62:07:88: a8:37:de:01:07:e9:15:65:04:17:7b:1e:5c:95:f3: da:17:fb:42:b4:91:43:b7:6d:84:42:c3:35:f0:8a: 5e:93:85:85:0a:bf:21:74:88:b4:29:a1:6e:4d:70: 18:30:fb:cf:5a:89:23:02:a9:3a:36:bb:11:ad:be: 5a:18:67:1e:ad:22:7e:25:bd:81:f4:93:52:50:fd: 8b:fd:7b:af:7a:d6:0c:d0:94:6c:f1:f0:5d:ba:ad: 98:7a:7c:6a:65:7f:60:7a:be:0d:af:53:7d:d0:c6: 7c:40:7a:b7:43:ba:0a:f8:4e:a5:43:2a:91:24:eb: 14:17:80:19:ea:fc:c5:85:dc:3c:6d:2b:08:a4:4c: 37:d3:45:e2:1e:58:29:79:51:b3:e3:1f:40:f8:2e: 0e:10:d4:c0:75:f8:59:86:ef:6c:59:fe:97:c2:a4: c5:ae:d5:43:b1:2e:35:f4:76:9d:8d:d9:0e:51:81: 12:a8:2f:05:31:74:3f:83:5f:7a:d2:31:20:f1:f0: 33:0a:11:03:cf:ab:f3:bb:6d:24:71:43:9f:84:fe: 01:d6:1f:78:ec:22:71:27:55:40:1b:03:9a:8d:46: 63:4b Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: 6D:08:C8:A4:31:CE:18:64:49:FB:B4:33:DA:BB:57:04:55:AB:3D:20 X509v3 Authority Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 X509v3 CRL Distribution Points: Full Name: URI:http://192.168.213.25/CertEnroll/scep-TELDATPKI-CA.crl 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: 3b:1f:55:03:6a:ac:c1:35:00:cd:99:91:bb:97:6a:a6:d4:37: 41:08:d1:51:fe:a6:cd:db:f4:0d:d0:1a:15:f6:6e:b1:73:b8: d0:a4:bc:02:ae:01:c9:39:4f:11:89:a5:c0:23:0d:08:5d:b3: b5:72:44:7a:16:5b:cb:71:c0:d6:72:7d:22:8d:24:38:10:ea: 6c:2f:16:b0:91:d3:c3:3e:25:8a:b7:a9:7d:0e:b4:0c:a7:fc: 85:40:9e:24:d7:f3:59:8a:b8:bf:e5:1a:27:2b:d0:b6:31:35: f3:35:f4:9b:7a:7c:a5:a1:68:16:d9:88:fd:69:88:9b:5b:f2: db:72:ca:ce:3e:23:2a:39:cc:95:c7:b3:02:40:72:5c:58:a4: ec:a0:3d:eb:3f:17:95:0e:7e:1e:a5:0a:a8:8c:ce:01:73:e2: 5b:32:ae:f6:96:b9:f8:b0:76:94:82:b3:a5:ca:ce:3a:f6:66: 69:7f:7b:3f:34:b5:be:1b:3a:5a:28:b6:0d:0d:a3:13:3e:85: 39:46:e3:cd:f7:df:75:03:07:8e:36:52:96:f1:2f:70:ac:ee: 4c:bf:27:79:27:e9:32:77:54:f3:52:ea:70:40:87:e9:ae:77: 18:48:41:05:ae:05:32:2e:24:31:9e:e6:5a:0a:2f:39:92:b8: 07:92:5d:1c ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:7f:58:0e:9e:3c:77:92:77:f1:a3:00:00:00:00:7f:58 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Dec 4 16:33:40 2024 GMT Not After : Dec 4 16:33:40 2026 GMT Subject: DC = scep, DC = com, CN = entity2 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:b9:d6:dd:33:3f:28:39:4f:bb:a5:31:a1:d6:c5: 1d:bc:3e:07:42:70:f2:ed:47:4c:e9:05:79:56:2e: 45:59:05:31:f1:34:09:11:58:7d:ba:d3:d7:5d:6d: 34:c7:fd:db:8b:31:67:ff:06:81:1f:db:62:ee:33: d6:8a:1b:54:f6:f2:46:23:41:7c:47:21:d3:b9:94: d8:11:63:9a:59:ea:87:63:6f:06:50:81:f6:99:94: 53:08:bb:db:e3:5d:9b:b8:84:ee:1a:5c:33:53:11: 21:91:7f:98:48:45:ef:17:b3:4b:bf:8a:79:04:41: d5:b8:46:63:9b:ee:78:56:2e:90:e3:a1:00:03:a5: b3:58:fa:48:02:02:b3:7b:d5:c4:a6:08:92:c1:ca: ea:5f:37:dd:98:6f:c5:b4:e9:42:b9:55:5d:ce:ca: 1a:09:b5:12:ed:fd:82:d4:52:f8:a0:b7:a5:11:96: bf:a3:a4:4e:52:82:e8:b9:a1:0f:10:22:2d:7e:f0: d2:af:a5:d5:d0:15:4f:59:25:aa:7c:70:6f:b5:68: 0e:fe:cb:25:f6:08:11:f5:57:8d:d4:1b:bf:40:77: 8d:ff:f6:35:a5:35:d3:fc:d9:1b:ca:5e:43:f4:7d: 2b:9a:7c:b1:1d:64:c5:39:28:14:01:89:82:c5:99: 3c:23 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: 6E:C6:D2:AE:E0:E8:8F:BD:F5:4D:E8:2A:59:0F:E6:D0:FD:0D:11:90 X509v3 Authority Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 X509v3 CRL Distribution Points: Full Name: URI:http://192.168.213.25/CertEnroll/scep-TELDATPKI-CA.crl 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: 72:a6:8c:f2:a1:0c:20:19:86:5c:75:86:35:b2:0f:cf:8f:16: d8:92:e8:f4:d1:da:ae:e8:41:08:b6:3a:7f:ea:48:7b:b6:1e: f8:b6:6e:a3:4b:7a:fa:15:ee:23:11:0e:19:49:de:b3:14:63: 17:3a:41:56:fb:75:52:5f:aa:68:75:86:21:b8:51:bf:0b:28: 70:9d:9f:23:fc:a6:56:31:68:bd:87:f1:e9:65:35:9c:d1:a6: 4c:60:0b:46:14:54:9a:95:c9:58:e7:dd:7b:47:58:ca:04:78: 9d:1a:36:1e:90:3a:68:56:75:ce:67:b8:a2:d3:33:fa:32:5b: e5:d9:f6:d5:0e:15:f1:7b:14:5e:bc:5f:c6:1b:ed:68:07:6d: 8b:b5:f5:e7:6d:4e:38:5c:5e:aa:23:1a:30:64:72:97:a4:4b: d7:8e:b0:f1:a2:72:67:82:2e:00:c4:0b:27:11:8e:7b:e7:a2: 1e:15:26:31:67:96:97:70:41:c6:ec:71:0f:22:2b:82:51:0b: 26:e0:5c:9f:83:72:ea:69:cf:53:33:6f:06:4c:5a:69:39:26: 8f:7c:c5:8d:82:3b:c9:00:2f:11:fe:1c:c4:b1:32:cc:3a:94: 90:a9:df:2e:7f:4b:e4:e9:a3:79:29:aa:62:08:a0:c1:f5:99: d6:8b:73:40 ---------------------------------------------------------------------- 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:7f:59:34:1c:d6:e1:d4:70:2d:a0:00:00:00:00:7f:59 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Dec 4 16:33:45 2024 GMT Not After : Dec 4 16:33:45 2026 GMT Subject: DC = scep, DC = com, CN = entity1 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:bf:38:6c:4a:c9:21:3c:7b:db:af:88:69:3e:c2: 9f:fa:76:f5:b2:59:70:83:85:7e:81:a0:62:07:88: a8:37:de:01:07:e9:15:65:04:17:7b:1e:5c:95:f3: da:17:fb:42:b4:91:43:b7:6d:84:42:c3:35:f0:8a: 5e:93:85:85:0a:bf:21:74:88:b4:29:a1:6e:4d:70: 18:30:fb:cf:5a:89:23:02:a9:3a:36:bb:11:ad:be: 5a:18:67:1e:ad:22:7e:25:bd:81:f4:93:52:50:fd: 8b:fd:7b:af:7a:d6:0c:d0:94:6c:f1:f0:5d:ba:ad: 98:7a:7c:6a:65:7f:60:7a:be:0d:af:53:7d:d0:c6: 7c:40:7a:b7:43:ba:0a:f8:4e:a5:43:2a:91:24:eb: 14:17:80:19:ea:fc:c5:85:dc:3c:6d:2b:08:a4:4c: 37:d3:45:e2:1e:58:29:79:51:b3:e3:1f:40:f8:2e: 0e:10:d4:c0:75:f8:59:86:ef:6c:59:fe:97:c2:a4: c5:ae:d5:43:b1:2e:35:f4:76:9d:8d:d9:0e:51:81: 12:a8:2f:05:31:74:3f:83:5f:7a:d2:31:20:f1:f0: 33:0a:11:03:cf:ab:f3:bb:6d:24:71:43:9f:84:fe: 01:d6:1f:78:ec:22:71:27:55:40:1b:03:9a:8d:46: 63:4b Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: 6D:08:C8:A4:31:CE:18:64:49:FB:B4:33:DA:BB:57:04:55:AB:3D:20 X509v3 Authority Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 X509v3 CRL Distribution Points: Full Name: URI:http://192.168.213.25/CertEnroll/scep-TELDATPKI-CA.crl 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: 3b:1f:55:03:6a:ac:c1:35:00:cd:99:91:bb:97:6a:a6:d4:37: 41:08:d1:51:fe:a6:cd:db:f4:0d:d0:1a:15:f6:6e:b1:73:b8: d0:a4:bc:02:ae:01:c9:39:4f:11:89:a5:c0:23:0d:08:5d:b3: b5:72:44:7a:16:5b:cb:71:c0:d6:72:7d:22:8d:24:38:10:ea: 6c:2f:16:b0:91:d3:c3:3e:25:8a:b7:a9:7d:0e:b4:0c:a7:fc: 85:40:9e:24:d7:f3:59:8a:b8:bf:e5:1a:27:2b:d0:b6:31:35: f3:35:f4:9b:7a:7c:a5:a1:68:16:d9:88:fd:69:88:9b:5b:f2: db:72:ca:ce:3e:23:2a:39:cc:95:c7:b3:02:40:72:5c:58:a4: ec:a0:3d:eb:3f:17:95:0e:7e:1e:a5:0a:a8:8c:ce:01:73:e2: 5b:32:ae:f6:96:b9:f8:b0:76:94:82:b3:a5:ca:ce:3a:f6:66: 69:7f:7b:3f:34:b5:be:1b:3a:5a:28:b6:0d:0d:a3:13:3e:85: 39:46:e3:cd:f7:df:75:03:07:8e:36:52:96:f1:2f:70:ac:ee: 4c:bf:27:79:27:e9:32:77:54:f3:52:ea:70:40:87:e9:ae:77: 18:48:41:05:ae:05:32:2e:24:31:9e:e6:5a:0a:2f:39:92:b8: 07:92:5d:1c ---------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1c:00:00:7f:58:0e:9e:3c:77:92:77:f1:a3:00:00:00:00:7f:58 Signature Algorithm: sha256WithRSAEncryption Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA Validity Not Before: Dec 4 16:33:40 2024 GMT Not After : Dec 4 16:33:40 2026 GMT Subject: DC = scep, DC = com, CN = entity2 Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:b9:d6:dd:33:3f:28:39:4f:bb:a5:31:a1:d6:c5: 1d:bc:3e:07:42:70:f2:ed:47:4c:e9:05:79:56:2e: 45:59:05:31:f1:34:09:11:58:7d:ba:d3:d7:5d:6d: 34:c7:fd:db:8b:31:67:ff:06:81:1f:db:62:ee:33: d6:8a:1b:54:f6:f2:46:23:41:7c:47:21:d3:b9:94: d8:11:63:9a:59:ea:87:63:6f:06:50:81:f6:99:94: 53:08:bb:db:e3:5d:9b:b8:84:ee:1a:5c:33:53:11: 21:91:7f:98:48:45:ef:17:b3:4b:bf:8a:79:04:41: d5:b8:46:63:9b:ee:78:56:2e:90:e3:a1:00:03:a5: b3:58:fa:48:02:02:b3:7b:d5:c4:a6:08:92:c1:ca: ea:5f:37:dd:98:6f:c5:b4:e9:42:b9:55:5d:ce:ca: 1a:09:b5:12:ed:fd:82:d4:52:f8:a0:b7:a5:11:96: bf:a3:a4:4e:52:82:e8:b9:a1:0f:10:22:2d:7e:f0: d2:af:a5:d5:d0:15:4f:59:25:aa:7c:70:6f:b5:68: 0e:fe:cb:25:f6:08:11:f5:57:8d:d4:1b:bf:40:77: 8d:ff:f6:35:a5:35:d3:fc:d9:1b:ca:5e:43:f4:7d: 2b:9a:7c:b1:1d:64:c5:39:28:14:01:89:82:c5:99: 3c:23 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: 6E:C6:D2:AE:E0:E8:8F:BD:F5:4D:E8:2A:59:0F:E6:D0:FD:0D:11:90 X509v3 Authority Key Identifier: AF:CF:34:AD:5B:BC:15:CF:9E:0B:FB:4A:ED:09:79:E0:01:68:5D:B8 X509v3 CRL Distribution Points: Full Name: URI:http://192.168.213.25/CertEnroll/scep-TELDATPKI-CA.crl 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: 72:a6:8c:f2:a1:0c:20:19:86:5c:75:86:35:b2:0f:cf:8f:16: d8:92:e8:f4:d1:da:ae:e8:41:08:b6:3a:7f:ea:48:7b:b6:1e: f8:b6:6e:a3:4b:7a:fa:15:ee:23:11:0e:19:49:de:b3:14:63: 17:3a:41:56:fb:75:52:5f:aa:68:75:86:21:b8:51:bf:0b:28: 70:9d:9f:23:fc:a6:56:31:68:bd:87:f1:e9:65:35:9c:d1:a6: 4c:60:0b:46:14:54:9a:95:c9:58:e7:dd:7b:47:58:ca:04:78: 9d:1a:36:1e:90:3a:68:56:75:ce:67:b8:a2:d3:33:fa:32:5b: e5:d9:f6:d5:0e:15:f1:7b:14:5e:bc:5f:c6:1b:ed:68:07:6d: 8b:b5:f5:e7:6d:4e:38:5c:5e:aa:23:1a:30:64:72:97:a4:4b: d7:8e:b0:f1:a2:72:67:82:2e:00:c4:0b:27:11:8e:7b:e7:a2: 1e:15:26:31:67:96:97:70:41:c6:ec:71:0f:22:2b:82:51:0b: 26:e0:5c:9f:83:72:ea:69:cf:53:33:6f:06:4c:5a:69:39:26: 8f:7c:c5:8d:82:3b:c9:00:2f:11:fe:1c:c4:b1:32:cc:3a:94: 90:a9:df:2e:7f:4b:e4:e9:a3:79:29:aa:62:08:a0:c1:f5:99: d6:8b:73:40 ---------------------------------------------------------------------- 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.920 ms --- 192.168.2.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.920/0.920/0.920/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.786 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.786/0.786/0.786/0.000 ms