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.

../../../../_images/scep.svg

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 1
Show 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.324 ms

--- 192.168.213.25 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.324/0.324/0.324/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 1
Show 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.704 ms

--- 192.168.213.25 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.704/0.704/0.704/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 U2FsdGVkX18eThLm3iPSd1jw+hwnUmvZBTx3FcPgkZvtUsYhGglj2Ftvw8ul+y5skjnP4o3whYdadrhyBM8iqQ==
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 U2FsdGVkX18hHrJZvhvaofaB9uVhULwIWvfB5t4foCGaJYX8wyKoGt1NCV215PSwboEKaZdbXrBMzlHnbS++1A==
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+Valid
Show output
-----------------------------------------------------------------------
Certificate  Status         NotBefore                  NotAfter
-----------------------------------------------------------------------
CA_CERT      Valid   Dec 14 10:00:35 2023 GMT  Dec 14 10:10:34 2053 GMT
USER_CERT    Valid   Jul 17 15:34:52 2024 GMT  Jul 17 15:34:52 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+Valid
Show output
-----------------------------------------------------------------------
Certificate  Status         NotBefore                  NotAfter
-----------------------------------------------------------------------
CA_CERT      Valid   Dec 14 10:00:35 2023 GMT  Dec 14 10:10:34 2053 GMT
USER_CERT    Valid   Jul 17 15:34:53 2024 GMT  Jul 17 15:34:53 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, IKEv2
Show output
vpn-peer-PEER: #1, ESTABLISHED, IKEv2, 70c80354ec83d45f_i* b4ef8a86798105fa_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 17697s
  peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96
    installed 19s ago, rekeying in 18712s, expires in 31661s
    in  c7923f07,      0 bytes,     0 packets
    out ca7f4fa6,      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, IKEv2
Show output
vpn-peer-PEER: #1, ESTABLISHED, IKEv2, 70c80354ec83d45f_i b4ef8a86798105fa_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 26964s
  peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96
    installed 19s ago, rekeying in 17316s, expires in 31661s
    in  ca7f4fa6,      0 bytes,     0 packets
    out c7923f07,      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 = entity2
Show output
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            1c:00:00:47:e9:2e:d5:ea:42:58:aa:62:86:00:00:00:00:47:e9
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA
        Validity
            Not Before: Jul 17 15:34:52 2024 GMT
            Not After : Jul 17 15:34:52 2026 GMT
        Subject: DC = scep, DC = com, CN = entity1
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:8b:b4:a4:ce:37:54:3a:04:a2:51:dc:70:9d:c3:
                    2e:9d:40:77:1a:fa:f4:7a:0b:e6:47:7c:c9:9d:04:
                    45:81:ec:f8:17:4d:e7:96:3c:59:cd:86:4e:30:ee:
                    43:9d:23:1c:ee:df:03:de:4e:74:a2:1a:7b:b9:e5:
                    48:b2:1c:40:d9:87:ba:1d:38:88:e4:8f:8e:fe:11:
                    63:5d:72:38:06:e4:5e:10:91:23:e9:66:83:41:62:
                    41:66:9e:2a:7f:ce:01:b2:ce:89:da:0c:11:fb:6c:
                    da:a6:6e:75:85:43:67:3a:44:9e:b2:44:2d:a5:ae:
                    bb:2b:fa:5e:b4:8e:13:a7:ba:42:e9:ed:ca:8b:56:
                    cc:e5:74:a0:d3:38:40:25:2e:25:fe:77:9d:4a:0c:
                    0a:d0:a9:4c:2c:8e:76:02:20:fe:c6:75:66:a3:82:
                    51:df:40:80:fb:b7:55:20:53:50:f3:fa:1c:95:a0:
                    3e:a4:67:a3:57:7c:4b:30:b6:1c:80:1b:21:93:4e:
                    20:55:de:a6:b7:f2:85:7f:a8:ea:9f:88:cf:20:d9:
                    cc:ce:72:e0:33:8d:41:07:38:d7:ea:81:3c:5c:28:
                    02:2f:16:eb:bf:48:e0:87:c2:8c:a4:99:f9:03:93:
                    5f:d2:d0:99:b0:bf:3f:d3:82:9f:2f:af:55:33:ed:
                    48:f5
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Subject Key Identifier:
                28:81:52:01:8F:99:A9:BE:DA:AF:CC:11:36:26:C1:75:B4:50:88:C1
            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:
        6a:26:8e:52:8b:d8:27:be:db:75:08:42:c9:2e:13:0b:9a:ab:
        70:d2:aa:b6:03:27:ab:85:41:f9:7f:a4:62:59:0d:da:7b:cd:
        6f:7f:7d:f1:54:f4:3f:be:d2:65:0e:71:a5:57:d1:40:1c:5d:
        6e:99:61:25:2c:56:2d:d7:08:63:56:15:e1:72:61:d7:dc:3a:
        a4:8f:ae:ba:c0:dc:4f:20:de:f5:e1:be:f0:fc:83:c9:07:c3:
        f9:a1:5a:0c:4c:d7:9a:25:36:db:71:8f:68:30:f2:45:84:d1:
        f3:73:cb:d8:a5:c3:bd:4f:d0:33:ec:6a:dc:af:93:fd:4a:ff:
        a2:1a:1b:8d:b6:fd:61:23:52:a3:3c:09:c4:b8:8d:51:22:4c:
        7d:04:c0:30:2f:39:44:f4:0d:8e:27:3f:5a:8e:90:67:d9:19:
        c9:e1:b3:bd:d2:f1:9a:a8:d4:97:b4:e6:37:15:de:6a:ff:67:
        d0:b5:f4:93:45:ba:f2:9a:69:e1:c6:8b:86:1a:31:84:ab:fa:
        cb:7e:39:79:08:c8:06:0b:92:e7:0a:c6:d6:32:2f:38:df:55:
        fc:f5:3a:2e:c3:ef:71:ac:f8:e9:3c:3a:e0:f1:76:c4:e6:13:
        e0:2f:2e:75:c3:67:a6:7c:91:95:d3:ba:e5:f7:92:65:db:04:
        02:34:c7:d9

----------------------------------------------------------------------

Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            1c:00:00:47:ea:91:fa:56:e2:c2:58:cc:c3:00:00:00:00:47:ea
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA
        Validity
            Not Before: Jul 17 15:34:53 2024 GMT
            Not After : Jul 17 15:34:53 2026 GMT
        Subject: DC = scep, DC = com, CN = entity2
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:b8:94:f6:09:17:fe:59:5e:c9:4d:1f:74:2c:74:
                    e4:09:b6:b6:2d:c6:65:58:3d:cf:fb:8b:9e:42:99:
                    24:ab:52:7a:ad:60:35:fe:0a:12:e8:74:ca:05:b6:
                    0d:a4:8e:4e:26:ad:6e:b0:48:34:3b:29:6e:9c:0d:
                    94:7b:6d:79:f5:b3:40:70:63:6f:f9:6e:88:1d:ce:
                    82:d0:32:ab:7f:e6:da:06:98:7b:5a:86:b3:39:e1:
                    79:b9:22:e9:39:cf:5e:16:d7:b9:b8:81:b3:aa:e4:
                    e6:a0:32:20:a2:f7:b4:ec:0b:18:f5:18:74:1b:89:
                    13:77:52:92:ab:9a:66:06:26:c8:11:c0:fb:d8:93:
                    e7:47:fb:6d:77:6f:e5:12:47:c7:9e:39:88:57:ab:
                    e9:7f:ef:fc:86:35:6b:4f:09:7a:c4:9e:33:85:02:
                    79:fc:74:15:9c:e4:7f:3c:93:b7:ed:b6:74:3f:2f:
                    1a:63:9a:9b:9e:cf:22:4d:dc:e9:9d:af:31:2e:04:
                    48:e6:bd:67:50:fd:2f:30:0c:31:4d:c3:d2:d6:b3:
                    f8:63:58:cd:e4:90:84:6a:ce:d5:92:ba:2d:02:6d:
                    85:10:e4:01:6a:aa:b1:3d:b8:a5:76:d5:97:e3:ce:
                    7d:8a:37:c0:74:11:2b:37:95:1d:4f:23:4f:c5:d0:
                    4d:33
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Subject Key Identifier:
                44:F8:05:31:A1:6C:F8:B3:2D:AE:F9:96:3E:73:4C:C6:A0:9E:91:B4
            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:
        33:9d:b6:49:ad:8a:d7:54:73:db:d3:9e:6b:0c:d9:83:c0:6c:
        c7:9f:16:0e:60:c4:69:bc:f0:97:b8:18:79:a9:e9:3a:6a:ec:
        0b:30:a2:9a:fa:40:80:23:6d:1e:af:4f:b1:64:fe:bc:05:2d:
        c2:ab:4e:b8:b8:20:d3:7a:b8:ad:73:39:ac:ff:9f:7a:70:cc:
        d8:f3:0d:37:fb:3d:c0:2f:f2:e9:f1:35:4a:1b:c7:05:7b:f6:
        37:1c:e9:f6:87:1f:14:45:b2:1b:51:0a:ef:de:13:a6:68:4a:
        53:46:69:f2:fc:6c:89:d3:27:10:ac:f1:9e:bf:97:68:af:18:
        02:4c:1e:5d:08:5e:6d:5a:c6:79:17:51:df:ee:4c:11:b7:ee:
        b0:82:a8:cf:45:54:8d:e5:77:8b:e6:09:70:21:83:05:1c:f4:
        48:7c:2f:8b:f4:ac:42:dd:f0:13:55:cc:4a:dc:95:79:ba:1f:
        98:9a:bb:75:46:3a:7e:68:60:4e:c2:c7:dc:f0:19:db:e2:44:
        6f:80:ec:a8:f1:75:8d:b0:08:c2:46:de:5a:5b:9a:b1:1a:9d:
        14:b8:3a:e5:ae:21:67:51:a7:a9:df:62:6e:cb:95:78:32:87:
        9e:b5:e0:54:fb:ff:57:78:b0:98:a1:c3:97:c0:2b:46:cf:6e:
        ae:03:c9:1c

----------------------------------------------------------------------

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 = entity1
Show output
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            1c:00:00:47:e9:2e:d5:ea:42:58:aa:62:86:00:00:00:00:47:e9
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA
        Validity
            Not Before: Jul 17 15:34:52 2024 GMT
            Not After : Jul 17 15:34:52 2026 GMT
        Subject: DC = scep, DC = com, CN = entity1
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:8b:b4:a4:ce:37:54:3a:04:a2:51:dc:70:9d:c3:
                    2e:9d:40:77:1a:fa:f4:7a:0b:e6:47:7c:c9:9d:04:
                    45:81:ec:f8:17:4d:e7:96:3c:59:cd:86:4e:30:ee:
                    43:9d:23:1c:ee:df:03:de:4e:74:a2:1a:7b:b9:e5:
                    48:b2:1c:40:d9:87:ba:1d:38:88:e4:8f:8e:fe:11:
                    63:5d:72:38:06:e4:5e:10:91:23:e9:66:83:41:62:
                    41:66:9e:2a:7f:ce:01:b2:ce:89:da:0c:11:fb:6c:
                    da:a6:6e:75:85:43:67:3a:44:9e:b2:44:2d:a5:ae:
                    bb:2b:fa:5e:b4:8e:13:a7:ba:42:e9:ed:ca:8b:56:
                    cc:e5:74:a0:d3:38:40:25:2e:25:fe:77:9d:4a:0c:
                    0a:d0:a9:4c:2c:8e:76:02:20:fe:c6:75:66:a3:82:
                    51:df:40:80:fb:b7:55:20:53:50:f3:fa:1c:95:a0:
                    3e:a4:67:a3:57:7c:4b:30:b6:1c:80:1b:21:93:4e:
                    20:55:de:a6:b7:f2:85:7f:a8:ea:9f:88:cf:20:d9:
                    cc:ce:72:e0:33:8d:41:07:38:d7:ea:81:3c:5c:28:
                    02:2f:16:eb:bf:48:e0:87:c2:8c:a4:99:f9:03:93:
                    5f:d2:d0:99:b0:bf:3f:d3:82:9f:2f:af:55:33:ed:
                    48:f5
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Subject Key Identifier:
                28:81:52:01:8F:99:A9:BE:DA:AF:CC:11:36:26:C1:75:B4:50:88:C1
            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:
        6a:26:8e:52:8b:d8:27:be:db:75:08:42:c9:2e:13:0b:9a:ab:
        70:d2:aa:b6:03:27:ab:85:41:f9:7f:a4:62:59:0d:da:7b:cd:
        6f:7f:7d:f1:54:f4:3f:be:d2:65:0e:71:a5:57:d1:40:1c:5d:
        6e:99:61:25:2c:56:2d:d7:08:63:56:15:e1:72:61:d7:dc:3a:
        a4:8f:ae:ba:c0:dc:4f:20:de:f5:e1:be:f0:fc:83:c9:07:c3:
        f9:a1:5a:0c:4c:d7:9a:25:36:db:71:8f:68:30:f2:45:84:d1:
        f3:73:cb:d8:a5:c3:bd:4f:d0:33:ec:6a:dc:af:93:fd:4a:ff:
        a2:1a:1b:8d:b6:fd:61:23:52:a3:3c:09:c4:b8:8d:51:22:4c:
        7d:04:c0:30:2f:39:44:f4:0d:8e:27:3f:5a:8e:90:67:d9:19:
        c9:e1:b3:bd:d2:f1:9a:a8:d4:97:b4:e6:37:15:de:6a:ff:67:
        d0:b5:f4:93:45:ba:f2:9a:69:e1:c6:8b:86:1a:31:84:ab:fa:
        cb:7e:39:79:08:c8:06:0b:92:e7:0a:c6:d6:32:2f:38:df:55:
        fc:f5:3a:2e:c3:ef:71:ac:f8:e9:3c:3a:e0:f1:76:c4:e6:13:
        e0:2f:2e:75:c3:67:a6:7c:91:95:d3:ba:e5:f7:92:65:db:04:
        02:34:c7:d9

----------------------------------------------------------------------

Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            1c:00:00:47:ea:91:fa:56:e2:c2:58:cc:c3:00:00:00:00:47:ea
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA
        Validity
            Not Before: Jul 17 15:34:53 2024 GMT
            Not After : Jul 17 15:34:53 2026 GMT
        Subject: DC = scep, DC = com, CN = entity2
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:b8:94:f6:09:17:fe:59:5e:c9:4d:1f:74:2c:74:
                    e4:09:b6:b6:2d:c6:65:58:3d:cf:fb:8b:9e:42:99:
                    24:ab:52:7a:ad:60:35:fe:0a:12:e8:74:ca:05:b6:
                    0d:a4:8e:4e:26:ad:6e:b0:48:34:3b:29:6e:9c:0d:
                    94:7b:6d:79:f5:b3:40:70:63:6f:f9:6e:88:1d:ce:
                    82:d0:32:ab:7f:e6:da:06:98:7b:5a:86:b3:39:e1:
                    79:b9:22:e9:39:cf:5e:16:d7:b9:b8:81:b3:aa:e4:
                    e6:a0:32:20:a2:f7:b4:ec:0b:18:f5:18:74:1b:89:
                    13:77:52:92:ab:9a:66:06:26:c8:11:c0:fb:d8:93:
                    e7:47:fb:6d:77:6f:e5:12:47:c7:9e:39:88:57:ab:
                    e9:7f:ef:fc:86:35:6b:4f:09:7a:c4:9e:33:85:02:
                    79:fc:74:15:9c:e4:7f:3c:93:b7:ed:b6:74:3f:2f:
                    1a:63:9a:9b:9e:cf:22:4d:dc:e9:9d:af:31:2e:04:
                    48:e6:bd:67:50:fd:2f:30:0c:31:4d:c3:d2:d6:b3:
                    f8:63:58:cd:e4:90:84:6a:ce:d5:92:ba:2d:02:6d:
                    85:10:e4:01:6a:aa:b1:3d:b8:a5:76:d5:97:e3:ce:
                    7d:8a:37:c0:74:11:2b:37:95:1d:4f:23:4f:c5:d0:
                    4d:33
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Subject Key Identifier:
                44:F8:05:31:A1:6C:F8:B3:2D:AE:F9:96:3E:73:4C:C6:A0:9E:91:B4
            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:
        33:9d:b6:49:ad:8a:d7:54:73:db:d3:9e:6b:0c:d9:83:c0:6c:
        c7:9f:16:0e:60:c4:69:bc:f0:97:b8:18:79:a9:e9:3a:6a:ec:
        0b:30:a2:9a:fa:40:80:23:6d:1e:af:4f:b1:64:fe:bc:05:2d:
        c2:ab:4e:b8:b8:20:d3:7a:b8:ad:73:39:ac:ff:9f:7a:70:cc:
        d8:f3:0d:37:fb:3d:c0:2f:f2:e9:f1:35:4a:1b:c7:05:7b:f6:
        37:1c:e9:f6:87:1f:14:45:b2:1b:51:0a:ef:de:13:a6:68:4a:
        53:46:69:f2:fc:6c:89:d3:27:10:ac:f1:9e:bf:97:68:af:18:
        02:4c:1e:5d:08:5e:6d:5a:c6:79:17:51:df:ee:4c:11:b7:ee:
        b0:82:a8:cf:45:54:8d:e5:77:8b:e6:09:70:21:83:05:1c:f4:
        48:7c:2f:8b:f4:ac:42:dd:f0:13:55:cc:4a:dc:95:79:ba:1f:
        98:9a:bb:75:46:3a:7e:68:60:4e:c2:c7:dc:f0:19:db:e2:44:
        6f:80:ec:a8:f1:75:8d:b0:08:c2:46:de:5a:5b:9a:b1:1a:9d:
        14:b8:3a:e5:ae:21:67:51:a7:a9:df:62:6e:cb:95:78:32:87:
        9e:b5:e0:54:fb:ff:57:78:b0:98:a1:c3:97:c0:2b:46:cf:6e:
        ae:03:c9:1c

----------------------------------------------------------------------

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 1
Show 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.875 ms

--- 192.168.2.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.875/0.875/0.875/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 1
Show 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.976 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.976/0.976/0.976/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 1
Show 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 1
Show 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.718 ms

--- 192.168.213.25 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.718/0.718/0.718/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 U2FsdGVkX19ESt9DnkoWFnU1wVFbV7w80PQdRKe+k7/E4HBLeDd/vhu2mdNBIWU38PNpmeYvPn2Ya722O3vmWw==
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 U2FsdGVkX18xAOCqw067dmcuADJe+sJIg4AAqOXtj6ZbZIOjStSFduDO1wCH16SodvH7q3N5wTgW8GJGPuAWPg==
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+Uninitialized
Show 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+Uninitialized
Show 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+Valid
Show output
-----------------------------------------------------------------------
Certificate  Status         NotBefore                  NotAfter
-----------------------------------------------------------------------
CA_CERT      Valid   Dec 14 10:00:35 2023 GMT  Dec 14 10:10:34 2053 GMT
USER_CERT    Valid   Jul 17 15:36:26 2024 GMT  Jul 17 15:36:26 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+Valid
Show output
-----------------------------------------------------------------------
Certificate  Status         NotBefore                  NotAfter
-----------------------------------------------------------------------
CA_CERT      Valid   Dec 14 10:00:35 2023 GMT  Dec 14 10:10:34 2053 GMT
USER_CERT    Valid   Jul 17 15:36:21 2024 GMT  Jul 17 15:36:21 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, IKEv2
Show output
vpn-peer-PEER: #1, ESTABLISHED, IKEv2, 7cacb4af70687e28_i* a01a6e6004335d4f_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 19788s
  peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96
    installed 20s ago, rekeying in 27442s, expires in 31660s
    in  c64e7f4e,      0 bytes,     0 packets
    out cff37053,      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, IKEv2
Show output
vpn-peer-PEER: #1, ESTABLISHED, IKEv2, 7cacb4af70687e28_i a01a6e6004335d4f_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 17578s
  peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96
    installed 20s ago, rekeying in 21307s, expires in 31660s
    in  cff37053,      0 bytes,     0 packets
    out c64e7f4e,      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 = entity2
Show output
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            1c:00:00:47:ed:00:a6:c1:65:86:d4:e8:d1:00:00:00:00:47:ed
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA
        Validity
            Not Before: Jul 17 15:36:26 2024 GMT
            Not After : Jul 17 15:36:26 2026 GMT
        Subject: DC = scep, DC = com, CN = entity1
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:96:f4:f2:eb:0d:bd:34:62:3b:3c:54:d2:89:f0:
                    66:da:75:87:9b:31:fa:29:d1:54:d7:01:5c:56:d1:
                    17:9b:70:30:10:7e:98:60:03:71:25:80:12:cf:2c:
                    ef:d0:c0:11:42:c6:52:ff:67:eb:1d:f6:a8:b2:fd:
                    bc:db:87:c7:b8:24:64:d9:aa:b5:a3:80:e0:b0:25:
                    e4:98:ca:69:1e:7d:38:0d:ef:2c:3a:bc:ec:15:4d:
                    c0:fe:39:03:b6:8f:9d:77:97:17:00:08:85:33:04:
                    8b:71:64:a1:18:84:3c:7c:0e:3a:7c:98:4b:4f:cd:
                    dd:c0:4c:a8:dd:7d:2a:26:36:4f:75:e2:f1:30:3b:
                    7e:a6:54:70:d2:0e:68:97:4d:2d:ad:51:24:5b:da:
                    e3:51:24:3e:47:9f:5d:f1:49:f0:39:b7:29:f9:80:
                    50:30:80:91:33:f8:50:0b:1d:8f:14:2d:10:e5:e0:
                    e1:4f:f0:57:3b:b7:1e:91:d3:b6:9f:55:10:0e:d6:
                    ca:86:3f:4a:fb:63:b5:6f:e9:51:68:86:d5:47:72:
                    b3:56:1d:9a:85:ae:5f:7f:e8:c5:b1:7e:33:3d:aa:
                    34:09:d3:b5:cb:c6:1a:3a:3d:cf:24:f9:cc:63:7c:
                    15:b3:f9:fc:ca:35:f1:39:2f:b0:84:4b:52:65:f2:
                    ce:d9
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Subject Key Identifier:
                0A:DD:9D:2A:71:6A:91:6F:0D:04:88:44:12:0D:45:0C:A4:E9:CC:E3
            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:
        00:d2:e7:47:47:06:57:85:33:21:5c:d4:e8:dd:10:ac:d2:ae:
        19:c7:80:58:62:b6:10:49:e9:b9:8d:05:af:45:13:42:f6:3b:
        7a:c5:84:a7:48:e5:87:fd:0c:1b:18:95:92:64:16:39:b2:e6:
        3a:35:aa:4e:33:6d:60:04:1b:c0:9e:3b:af:de:ca:f9:ed:de:
        4d:f8:8e:97:33:52:96:d4:af:0d:c2:08:30:3e:82:24:20:1d:
        ec:d0:14:17:af:23:b9:07:8b:2f:b8:9b:23:ee:02:c5:6d:57:
        89:ec:8b:3f:04:e2:90:22:1f:0f:a8:c1:d4:f7:05:60:2f:2b:
        9a:62:50:30:88:bd:4d:8a:c8:9e:ba:2a:78:e5:ac:43:a4:5d:
        ab:27:f5:5a:f4:a6:07:01:aa:0d:6a:7a:03:3d:23:24:55:3e:
        79:95:9b:38:1e:27:fa:c6:22:e9:e0:69:57:56:46:7c:0c:9a:
        d6:90:ba:c3:73:c1:51:2c:e2:a8:5e:3a:c4:bb:e1:28:ab:12:
        db:8a:95:64:af:44:1f:ff:07:8d:ba:14:3a:12:56:70:93:e6:
        b9:0d:76:bf:cc:91:22:80:62:2a:3d:fc:ae:79:d3:97:e3:6d:
        fb:f5:3b:28:ae:00:58:c7:1c:9e:fa:8f:61:c0:a9:0a:e9:2f:
        56:3f:60:1e

----------------------------------------------------------------------

Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            1c:00:00:47:ec:31:0f:a5:ff:53:11:c0:d0:00:00:00:00:47:ec
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA
        Validity
            Not Before: Jul 17 15:36:21 2024 GMT
            Not After : Jul 17 15:36:21 2026 GMT
        Subject: DC = scep, DC = com, CN = entity2
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:b7:23:c1:fa:12:9a:de:88:a0:ec:ea:61:26:85:
                    17:b1:fb:39:13:e5:be:db:5f:64:eb:0e:80:58:b4:
                    27:f8:13:40:bb:16:17:f5:f1:0b:fe:55:1e:c4:fd:
                    07:4a:b0:5c:ac:28:f2:d2:85:01:8f:d9:d2:af:9d:
                    0a:a0:35:c2:8b:4a:a3:52:ee:d1:92:7f:8d:73:47:
                    a9:35:c2:e6:e4:47:5d:fc:81:8f:e8:a0:cd:ec:d2:
                    87:e5:aa:c0:b7:77:61:09:e6:c9:99:c2:be:f4:a7:
                    33:50:e9:c9:1d:f1:f7:3c:55:70:2b:4e:2e:a8:c2:
                    45:b6:95:d1:45:5b:fd:36:fd:36:ae:ec:71:12:d2:
                    63:8d:9a:95:08:bb:dd:c7:2e:e9:c6:57:99:85:c3:
                    52:94:aa:d3:6a:ea:08:8b:c5:76:5f:27:09:0d:76:
                    3e:b2:1b:39:99:a2:a3:2b:c2:d9:c9:e4:3d:c5:39:
                    72:71:eb:17:9d:2a:e1:c9:83:28:a3:80:41:c8:c2:
                    11:84:ad:89:04:3f:f1:42:c0:05:8d:f4:2e:38:6d:
                    10:76:1f:ea:90:23:42:ee:15:8c:6b:f6:0c:11:ec:
                    ab:cc:3d:60:a5:f7:5d:27:f2:cd:ac:55:37:a7:fe:
                    8b:84:8c:eb:b6:7a:84:23:b8:b1:5d:8b:5f:23:e7:
                    4c:55
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Subject Key Identifier:
                CD:BD:48:21:B9:1B:49:83:24:7F:9D:D6:20:5C:41:14:AD:6F:E5:92
            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:
        86:c8:fb:15:fd:9f:3d:3a:79:0a:ac:27:be:21:41:0a:64:b0:
        c9:a8:d3:2f:88:43:df:ae:6a:d9:22:f1:e9:5b:4f:28:0c:19:
        80:84:de:cf:f0:db:77:f9:25:fd:2c:6d:aa:53:25:e6:4d:8d:
        4d:d3:51:a7:a2:8a:57:66:ce:c4:a9:3a:7a:ea:88:7e:5e:99:
        31:dd:89:c5:6c:e5:6c:23:11:91:c8:40:54:90:ef:ff:11:33:
        b2:79:5b:cc:03:5e:99:7c:1e:68:24:51:af:33:60:17:a3:c4:
        1b:3c:ec:b3:da:f0:3f:0b:de:6d:09:44:3c:cb:be:bc:48:91:
        20:c2:cc:16:02:40:58:4a:3c:0a:bd:27:aa:45:3f:08:b6:1e:
        46:e8:c6:b9:d8:02:9f:16:5f:b3:56:1b:8a:57:1f:3b:f8:1b:
        f9:cc:b5:4c:64:f2:37:43:4c:b9:24:73:35:e6:b4:c3:07:79:
        26:d2:71:4c:b1:5a:29:ff:34:dc:5b:38:9f:59:a4:20:64:9b:
        3c:00:f2:17:f5:84:cf:0e:06:c9:dc:2e:ed:23:64:84:4a:d4:
        be:57:43:be:cf:25:8f:2a:2e:81:0b:b5:7b:7b:56:d9:9b:12:
        48:c1:c3:d8:9b:37:53:39:07:da:e4:03:6e:8d:58:77:4d:ed:
        d0:6f:91:e6

----------------------------------------------------------------------

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 = entity1
Show output
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            1c:00:00:47:ed:00:a6:c1:65:86:d4:e8:d1:00:00:00:00:47:ed
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA
        Validity
            Not Before: Jul 17 15:36:26 2024 GMT
            Not After : Jul 17 15:36:26 2026 GMT
        Subject: DC = scep, DC = com, CN = entity1
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:96:f4:f2:eb:0d:bd:34:62:3b:3c:54:d2:89:f0:
                    66:da:75:87:9b:31:fa:29:d1:54:d7:01:5c:56:d1:
                    17:9b:70:30:10:7e:98:60:03:71:25:80:12:cf:2c:
                    ef:d0:c0:11:42:c6:52:ff:67:eb:1d:f6:a8:b2:fd:
                    bc:db:87:c7:b8:24:64:d9:aa:b5:a3:80:e0:b0:25:
                    e4:98:ca:69:1e:7d:38:0d:ef:2c:3a:bc:ec:15:4d:
                    c0:fe:39:03:b6:8f:9d:77:97:17:00:08:85:33:04:
                    8b:71:64:a1:18:84:3c:7c:0e:3a:7c:98:4b:4f:cd:
                    dd:c0:4c:a8:dd:7d:2a:26:36:4f:75:e2:f1:30:3b:
                    7e:a6:54:70:d2:0e:68:97:4d:2d:ad:51:24:5b:da:
                    e3:51:24:3e:47:9f:5d:f1:49:f0:39:b7:29:f9:80:
                    50:30:80:91:33:f8:50:0b:1d:8f:14:2d:10:e5:e0:
                    e1:4f:f0:57:3b:b7:1e:91:d3:b6:9f:55:10:0e:d6:
                    ca:86:3f:4a:fb:63:b5:6f:e9:51:68:86:d5:47:72:
                    b3:56:1d:9a:85:ae:5f:7f:e8:c5:b1:7e:33:3d:aa:
                    34:09:d3:b5:cb:c6:1a:3a:3d:cf:24:f9:cc:63:7c:
                    15:b3:f9:fc:ca:35:f1:39:2f:b0:84:4b:52:65:f2:
                    ce:d9
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Subject Key Identifier:
                0A:DD:9D:2A:71:6A:91:6F:0D:04:88:44:12:0D:45:0C:A4:E9:CC:E3
            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:
        00:d2:e7:47:47:06:57:85:33:21:5c:d4:e8:dd:10:ac:d2:ae:
        19:c7:80:58:62:b6:10:49:e9:b9:8d:05:af:45:13:42:f6:3b:
        7a:c5:84:a7:48:e5:87:fd:0c:1b:18:95:92:64:16:39:b2:e6:
        3a:35:aa:4e:33:6d:60:04:1b:c0:9e:3b:af:de:ca:f9:ed:de:
        4d:f8:8e:97:33:52:96:d4:af:0d:c2:08:30:3e:82:24:20:1d:
        ec:d0:14:17:af:23:b9:07:8b:2f:b8:9b:23:ee:02:c5:6d:57:
        89:ec:8b:3f:04:e2:90:22:1f:0f:a8:c1:d4:f7:05:60:2f:2b:
        9a:62:50:30:88:bd:4d:8a:c8:9e:ba:2a:78:e5:ac:43:a4:5d:
        ab:27:f5:5a:f4:a6:07:01:aa:0d:6a:7a:03:3d:23:24:55:3e:
        79:95:9b:38:1e:27:fa:c6:22:e9:e0:69:57:56:46:7c:0c:9a:
        d6:90:ba:c3:73:c1:51:2c:e2:a8:5e:3a:c4:bb:e1:28:ab:12:
        db:8a:95:64:af:44:1f:ff:07:8d:ba:14:3a:12:56:70:93:e6:
        b9:0d:76:bf:cc:91:22:80:62:2a:3d:fc:ae:79:d3:97:e3:6d:
        fb:f5:3b:28:ae:00:58:c7:1c:9e:fa:8f:61:c0:a9:0a:e9:2f:
        56:3f:60:1e

----------------------------------------------------------------------

Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            1c:00:00:47:ec:31:0f:a5:ff:53:11:c0:d0:00:00:00:00:47:ec
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA
        Validity
            Not Before: Jul 17 15:36:21 2024 GMT
            Not After : Jul 17 15:36:21 2026 GMT
        Subject: DC = scep, DC = com, CN = entity2
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:b7:23:c1:fa:12:9a:de:88:a0:ec:ea:61:26:85:
                    17:b1:fb:39:13:e5:be:db:5f:64:eb:0e:80:58:b4:
                    27:f8:13:40:bb:16:17:f5:f1:0b:fe:55:1e:c4:fd:
                    07:4a:b0:5c:ac:28:f2:d2:85:01:8f:d9:d2:af:9d:
                    0a:a0:35:c2:8b:4a:a3:52:ee:d1:92:7f:8d:73:47:
                    a9:35:c2:e6:e4:47:5d:fc:81:8f:e8:a0:cd:ec:d2:
                    87:e5:aa:c0:b7:77:61:09:e6:c9:99:c2:be:f4:a7:
                    33:50:e9:c9:1d:f1:f7:3c:55:70:2b:4e:2e:a8:c2:
                    45:b6:95:d1:45:5b:fd:36:fd:36:ae:ec:71:12:d2:
                    63:8d:9a:95:08:bb:dd:c7:2e:e9:c6:57:99:85:c3:
                    52:94:aa:d3:6a:ea:08:8b:c5:76:5f:27:09:0d:76:
                    3e:b2:1b:39:99:a2:a3:2b:c2:d9:c9:e4:3d:c5:39:
                    72:71:eb:17:9d:2a:e1:c9:83:28:a3:80:41:c8:c2:
                    11:84:ad:89:04:3f:f1:42:c0:05:8d:f4:2e:38:6d:
                    10:76:1f:ea:90:23:42:ee:15:8c:6b:f6:0c:11:ec:
                    ab:cc:3d:60:a5:f7:5d:27:f2:cd:ac:55:37:a7:fe:
                    8b:84:8c:eb:b6:7a:84:23:b8:b1:5d:8b:5f:23:e7:
                    4c:55
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Subject Key Identifier:
                CD:BD:48:21:B9:1B:49:83:24:7F:9D:D6:20:5C:41:14:AD:6F:E5:92
            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:
        86:c8:fb:15:fd:9f:3d:3a:79:0a:ac:27:be:21:41:0a:64:b0:
        c9:a8:d3:2f:88:43:df:ae:6a:d9:22:f1:e9:5b:4f:28:0c:19:
        80:84:de:cf:f0:db:77:f9:25:fd:2c:6d:aa:53:25:e6:4d:8d:
        4d:d3:51:a7:a2:8a:57:66:ce:c4:a9:3a:7a:ea:88:7e:5e:99:
        31:dd:89:c5:6c:e5:6c:23:11:91:c8:40:54:90:ef:ff:11:33:
        b2:79:5b:cc:03:5e:99:7c:1e:68:24:51:af:33:60:17:a3:c4:
        1b:3c:ec:b3:da:f0:3f:0b:de:6d:09:44:3c:cb:be:bc:48:91:
        20:c2:cc:16:02:40:58:4a:3c:0a:bd:27:aa:45:3f:08:b6:1e:
        46:e8:c6:b9:d8:02:9f:16:5f:b3:56:1b:8a:57:1f:3b:f8:1b:
        f9:cc:b5:4c:64:f2:37:43:4c:b9:24:73:35:e6:b4:c3:07:79:
        26:d2:71:4c:b1:5a:29:ff:34:dc:5b:38:9f:59:a4:20:64:9b:
        3c:00:f2:17:f5:84:cf:0e:06:c9:dc:2e:ed:23:64:84:4a:d4:
        be:57:43:be:cf:25:8f:2a:2e:81:0b:b5:7b:7b:56:d9:9b:12:
        48:c1:c3:d8:9b:37:53:39:07:da:e4:03:6e:8d:58:77:4d:ed:
        d0:6f:91:e6

----------------------------------------------------------------------

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 1
Show 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.793 ms

--- 192.168.2.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.793/0.793/0.793/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 1
Show 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=1.10 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.098/1.098/1.098/0.000 ms