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 protocols static route 192.168.212.0/22 next-hop 10.215.168.1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT2:

set interfaces ethernet eth1 address 10.215.168.66/24
set protocols static route 192.168.212.0/22 next-hop 10.215.168.1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Ping IP address 192.168.213.25 from DUT0:

admin@DUT0$ ping 192.168.213.25 count 1 size 56 timeout 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.668 ms

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

--- 192.168.213.25 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.628/0.628/0.628/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 U2FsdGVkX19CUWSAqO5p3R1aOd2K7/U0NPIg9N0Q+03GwJxxACZNbdi5+N9dpaqh3IBH6E4pJVrLVRE9p7rECQ==
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 U2FsdGVkX19msHTG/Kt9LEazLjmgWeT/mPPH3dffc+giHDMoDyApBovGgxoWifY0RmrBzeqvWG/SWuTs1tgCkw==
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\s+Valid
usercert\s+Valid
Show output
-------------------------------------------------------------------------------------
Certificate  Status     Usage             NotBefore                  NotAfter
-------------------------------------------------------------------------------------
ca           Valid   Signature     Dec 14 10:00:35 2023 GMT  Dec 14 10:10:34 2053 GMT
ra           Valid   Encipherment  Dec 21 09:33:45 2023 GMT  Dec 20 09:33:45 2025 GMT
ra-2         Valid   Signature     Dec 21 09:33:43 2023 GMT  Dec 20 09:33:43 2025 GMT
usercert     Valid   -             Feb  3 14:38:07 2025 GMT  Feb  3 18:38:07 2025 GMT

Step 9: Run command pki scep show CSR at DUT2 and check if output matches the following regular expressions:

ca\s+Valid
usercert\s+Valid
Show output
-------------------------------------------------------------------------------------
Certificate  Status     Usage             NotBefore                  NotAfter
-------------------------------------------------------------------------------------
ca           Valid   Signature     Dec 14 10:00:35 2023 GMT  Dec 14 10:10:34 2053 GMT
ra           Valid   Encipherment  Dec 21 09:33:45 2023 GMT  Dec 20 09:33:45 2025 GMT
ra-2         Valid   Signature     Dec 21 09:33:43 2023 GMT  Dec 20 09:33:43 2025 GMT
usercert     Valid   -             Feb  3 14:38:07 2025 GMT  Feb  3 18:38:07 2025 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, ea120d180d066b88_i* 7effcd5f3be7dac1_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 28103s
  peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96
    installed 20s ago, rekeying in 23331s, expires in 31660s
    in  cd2a91d0,      0 bytes,     0 packets
    out cd9a4691,      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, ea120d180d066b88_i 7effcd5f3be7dac1_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 18290s
  peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96
    installed 20s ago, rekeying in 24709s, expires in 31660s
    in  cd9a4691,      0 bytes,     0 packets
    out cd2a91d0,      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:ab:dd:d3:aa:79:fa:7f:8b:d7:06:00:00:00:00:ab:dd
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA
        Validity
            Not Before: Feb  3 14:38:07 2025 GMT
            Not After : Feb  3 18:38:07 2025 GMT
        Subject: DC = scep, DC = com, CN = entity1
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:b3:a0:bc:59:2d:4f:f2:70:6a:96:18:3b:60:89:
                    69:71:b8:b6:17:ac:13:26:e5:54:e1:4b:7d:18:32:
                    97:4e:d9:d5:2d:3e:28:02:fe:6d:5b:66:1c:4c:ac:
                    cc:5a:78:d8:61:1e:c4:18:ae:c8:01:cc:9f:7a:c5:
                    b8:56:56:d7:af:36:b3:b9:07:ff:14:b7:62:20:35:
                    71:c0:b4:4e:c2:12:d0:e3:b0:0a:05:c6:43:d1:e6:
                    29:6a:f9:32:22:84:a0:3d:03:32:36:47:ff:d9:32:
                    91:71:b2:3f:98:44:fa:1d:9c:3e:3d:f4:64:c9:1d:
                    ad:9d:24:b4:a7:f1:66:52:3d:09:38:b1:e4:e2:44:
                    54:b9:b6:05:e3:f5:49:01:ec:c2:4f:40:f7:f1:5e:
                    04:dd:2c:b5:cb:5e:56:77:fc:91:6e:14:76:32:da:
                    96:da:0f:71:26:3a:48:6e:ac:68:7e:b2:c8:fe:1e:
                    1a:98:5c:a8:95:9b:f5:be:fc:e2:92:65:ee:96:c7:
                    cd:85:0a:14:16:9c:2a:7a:38:6c:67:63:c3:78:45:
                    7f:40:a6:2f:d5:63:e1:83:c0:4c:d7:24:8f:61:2d:
                    8b:3e:c3:9a:58:2b:66:d9:af:ba:28:6b:f6:fc:5c:
                    f8:af:2d:d6:59:42:b2:f3:3b:40:c4:a7:7d:03:52:
                    fa:45
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Subject Key Identifier:
                D3:7F:3F:4F:0D:60:18:E7:60:17:E0:79:CC:5F:FF:F2:F4:AF:E3:57
            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:
        1f:01:48:82:2e:04:e4:ea:29:d2:41:f9:11:56:cb:d9:4e:25:
        d6:2c:d7:b0:01:54:6a:2e:53:af:24:ab:3a:a9:7b:ed:b0:0d:
        c4:8f:ea:f1:a4:61:0a:53:c3:cc:27:d6:d6:4e:92:af:93:74:
        f0:a9:dd:be:ae:61:0a:b6:10:d1:6a:3a:f2:96:ba:11:8a:ec:
        c6:29:13:c8:43:e4:d6:bf:b2:a1:0d:7f:e5:9f:0d:96:67:31:
        da:ab:1e:9d:5c:25:3b:b5:43:d2:e5:8a:6d:5b:1d:1a:7e:96:
        ec:43:cb:26:2b:b3:03:5f:86:ba:3a:9d:a3:9f:2b:da:5b:ef:
        23:22:a3:88:23:f7:e1:8b:36:87:78:eb:d9:d1:a3:2c:bb:ce:
        a2:87:c4:ac:1a:84:18:ab:e6:b7:54:ea:ad:ce:82:c7:55:d0:
        ad:31:e3:62:d3:46:89:14:12:bc:cd:2f:17:50:69:20:3c:10:
        4a:18:1d:ff:e8:c5:9d:b6:cc:b9:5d:20:87:21:0d:fd:97:f7:
        4e:26:32:ee:4a:b2:51:40:b8:bd:a1:45:3e:70:aa:47:f1:ab:
        8d:d3:76:6b:fa:f7:8a:2e:5c:f0:dc:b0:ee:e7:0a:20:f9:12:
        93:19:6b:09:19:ad:b1:21:94:ee:4b:12:09:c5:64:ad:de:e7:
        d4:aa:af:d4

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

Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            1c:00:00:ab:de:8b:f3:58:10:9b:33:e1:84:00:00:00:00:ab:de
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA
        Validity
            Not Before: Feb  3 14:38:07 2025 GMT
            Not After : Feb  3 18:38:07 2025 GMT
        Subject: DC = scep, DC = com, CN = entity2
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:a3:c0:00:34:1b:83:b2:4c:5c:2b:a2:16:a8:7b:
                    c6:5c:85:da:94:12:3b:0c:e7:ab:30:de:8e:76:e0:
                    5a:3b:27:6d:6e:9e:22:57:c0:11:a8:a4:eb:70:85:
                    85:7e:cb:a6:19:a4:65:c2:70:70:b0:a6:e8:c2:cb:
                    99:b5:7b:06:fb:da:5e:be:d0:60:b0:79:e4:1a:e3:
                    de:8f:83:a2:83:d3:11:1e:48:a6:7f:d0:6c:48:4c:
                    23:44:16:f6:c0:0c:1d:5b:7c:96:97:68:f8:6c:6b:
                    ba:b2:e4:c3:d9:9b:fd:1f:e2:a1:78:65:53:43:9d:
                    a1:00:61:7e:4d:17:e1:bf:58:18:c8:90:62:21:8c:
                    33:93:dc:06:6b:01:b5:25:b9:e9:b4:f8:c2:b7:b7:
                    40:05:76:57:ad:06:d4:e4:4d:f1:c3:e2:39:cd:42:
                    8b:e1:99:30:2f:ab:68:4e:d7:11:66:0d:be:8b:d3:
                    af:36:a4:32:8d:a2:2b:52:b9:8c:7f:9e:60:65:85:
                    95:5e:a9:d1:58:32:e1:32:4d:75:32:e2:cd:81:85:
                    e7:8d:67:bc:11:f1:73:e4:63:71:dd:ee:3c:8e:12:
                    a8:48:87:05:af:4b:d6:09:a3:b4:75:a9:84:30:4d:
                    37:31:e6:8b:9f:8e:19:ac:a8:71:2b:22:43:7a:c6:
                    7b:b1
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Subject Key Identifier:
                6B:36:7D:7C:EF:BA:0A:60:6B:4B:50:E3:B3:F6:07:4F:14:BD:6F:E7
            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:
        26:f2:1c:3d:82:1a:f4:cb:d5:ea:d5:90:f4:9b:72:ca:37:e8:
        15:be:04:99:41:ea:98:3e:db:f7:6b:0f:f8:58:b7:90:e7:8a:
        d8:c5:78:da:33:db:84:10:c8:3b:70:cd:60:2f:7c:49:b8:1b:
        36:8f:5a:be:25:f9:5f:4f:d0:3e:09:a0:70:c9:98:af:b2:31:
        b1:9f:41:00:51:e1:26:e0:93:4b:a9:4d:ed:87:91:35:d1:52:
        f5:d9:3d:23:b8:a5:6d:90:5c:e8:ef:15:2a:6f:b5:b6:be:92:
        c8:e3:bc:60:cf:ab:02:dc:75:42:2a:a4:db:bf:cf:48:6b:32:
        4a:70:bf:f4:a2:a1:78:5c:7a:13:08:d0:95:b1:d7:e9:c9:ba:
        61:b0:19:fe:5e:49:f0:79:12:64:6e:be:fe:dd:b2:c3:24:0e:
        e6:c4:9a:77:d6:11:8c:6e:72:26:cf:2f:ba:8c:02:53:8e:a9:
        b8:2b:5a:8f:d3:10:5b:f2:13:03:d8:6d:b8:b8:93:93:6e:77:
        ce:7a:e8:9b:e2:4d:72:85:7e:76:fe:7e:99:5b:44:b3:35:51:
        4e:d7:ec:06:69:f6:7f:61:af:d4:5a:6d:a5:64:b2:3d:30:8c:
        3e:93:32:76:4c:8c:b2:82:d5:1c:af:3b:21:28:e8:2c:f4:68:
        ea:e9:28:44

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

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:ab:dd:d3:aa:79:fa:7f:8b:d7:06:00:00:00:00:ab:dd
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA
        Validity
            Not Before: Feb  3 14:38:07 2025 GMT
            Not After : Feb  3 18:38:07 2025 GMT
        Subject: DC = scep, DC = com, CN = entity1
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:b3:a0:bc:59:2d:4f:f2:70:6a:96:18:3b:60:89:
                    69:71:b8:b6:17:ac:13:26:e5:54:e1:4b:7d:18:32:
                    97:4e:d9:d5:2d:3e:28:02:fe:6d:5b:66:1c:4c:ac:
                    cc:5a:78:d8:61:1e:c4:18:ae:c8:01:cc:9f:7a:c5:
                    b8:56:56:d7:af:36:b3:b9:07:ff:14:b7:62:20:35:
                    71:c0:b4:4e:c2:12:d0:e3:b0:0a:05:c6:43:d1:e6:
                    29:6a:f9:32:22:84:a0:3d:03:32:36:47:ff:d9:32:
                    91:71:b2:3f:98:44:fa:1d:9c:3e:3d:f4:64:c9:1d:
                    ad:9d:24:b4:a7:f1:66:52:3d:09:38:b1:e4:e2:44:
                    54:b9:b6:05:e3:f5:49:01:ec:c2:4f:40:f7:f1:5e:
                    04:dd:2c:b5:cb:5e:56:77:fc:91:6e:14:76:32:da:
                    96:da:0f:71:26:3a:48:6e:ac:68:7e:b2:c8:fe:1e:
                    1a:98:5c:a8:95:9b:f5:be:fc:e2:92:65:ee:96:c7:
                    cd:85:0a:14:16:9c:2a:7a:38:6c:67:63:c3:78:45:
                    7f:40:a6:2f:d5:63:e1:83:c0:4c:d7:24:8f:61:2d:
                    8b:3e:c3:9a:58:2b:66:d9:af:ba:28:6b:f6:fc:5c:
                    f8:af:2d:d6:59:42:b2:f3:3b:40:c4:a7:7d:03:52:
                    fa:45
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Subject Key Identifier:
                D3:7F:3F:4F:0D:60:18:E7:60:17:E0:79:CC:5F:FF:F2:F4:AF:E3:57
            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:
        1f:01:48:82:2e:04:e4:ea:29:d2:41:f9:11:56:cb:d9:4e:25:
        d6:2c:d7:b0:01:54:6a:2e:53:af:24:ab:3a:a9:7b:ed:b0:0d:
        c4:8f:ea:f1:a4:61:0a:53:c3:cc:27:d6:d6:4e:92:af:93:74:
        f0:a9:dd:be:ae:61:0a:b6:10:d1:6a:3a:f2:96:ba:11:8a:ec:
        c6:29:13:c8:43:e4:d6:bf:b2:a1:0d:7f:e5:9f:0d:96:67:31:
        da:ab:1e:9d:5c:25:3b:b5:43:d2:e5:8a:6d:5b:1d:1a:7e:96:
        ec:43:cb:26:2b:b3:03:5f:86:ba:3a:9d:a3:9f:2b:da:5b:ef:
        23:22:a3:88:23:f7:e1:8b:36:87:78:eb:d9:d1:a3:2c:bb:ce:
        a2:87:c4:ac:1a:84:18:ab:e6:b7:54:ea:ad:ce:82:c7:55:d0:
        ad:31:e3:62:d3:46:89:14:12:bc:cd:2f:17:50:69:20:3c:10:
        4a:18:1d:ff:e8:c5:9d:b6:cc:b9:5d:20:87:21:0d:fd:97:f7:
        4e:26:32:ee:4a:b2:51:40:b8:bd:a1:45:3e:70:aa:47:f1:ab:
        8d:d3:76:6b:fa:f7:8a:2e:5c:f0:dc:b0:ee:e7:0a:20:f9:12:
        93:19:6b:09:19:ad:b1:21:94:ee:4b:12:09:c5:64:ad:de:e7:
        d4:aa:af:d4

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

Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            1c:00:00:ab:de:8b:f3:58:10:9b:33:e1:84:00:00:00:00:ab:de
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA
        Validity
            Not Before: Feb  3 14:38:07 2025 GMT
            Not After : Feb  3 18:38:07 2025 GMT
        Subject: DC = scep, DC = com, CN = entity2
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:a3:c0:00:34:1b:83:b2:4c:5c:2b:a2:16:a8:7b:
                    c6:5c:85:da:94:12:3b:0c:e7:ab:30:de:8e:76:e0:
                    5a:3b:27:6d:6e:9e:22:57:c0:11:a8:a4:eb:70:85:
                    85:7e:cb:a6:19:a4:65:c2:70:70:b0:a6:e8:c2:cb:
                    99:b5:7b:06:fb:da:5e:be:d0:60:b0:79:e4:1a:e3:
                    de:8f:83:a2:83:d3:11:1e:48:a6:7f:d0:6c:48:4c:
                    23:44:16:f6:c0:0c:1d:5b:7c:96:97:68:f8:6c:6b:
                    ba:b2:e4:c3:d9:9b:fd:1f:e2:a1:78:65:53:43:9d:
                    a1:00:61:7e:4d:17:e1:bf:58:18:c8:90:62:21:8c:
                    33:93:dc:06:6b:01:b5:25:b9:e9:b4:f8:c2:b7:b7:
                    40:05:76:57:ad:06:d4:e4:4d:f1:c3:e2:39:cd:42:
                    8b:e1:99:30:2f:ab:68:4e:d7:11:66:0d:be:8b:d3:
                    af:36:a4:32:8d:a2:2b:52:b9:8c:7f:9e:60:65:85:
                    95:5e:a9:d1:58:32:e1:32:4d:75:32:e2:cd:81:85:
                    e7:8d:67:bc:11:f1:73:e4:63:71:dd:ee:3c:8e:12:
                    a8:48:87:05:af:4b:d6:09:a3:b4:75:a9:84:30:4d:
                    37:31:e6:8b:9f:8e:19:ac:a8:71:2b:22:43:7a:c6:
                    7b:b1
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Subject Key Identifier:
                6B:36:7D:7C:EF:BA:0A:60:6B:4B:50:E3:B3:F6:07:4F:14:BD:6F:E7
            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:
        26:f2:1c:3d:82:1a:f4:cb:d5:ea:d5:90:f4:9b:72:ca:37:e8:
        15:be:04:99:41:ea:98:3e:db:f7:6b:0f:f8:58:b7:90:e7:8a:
        d8:c5:78:da:33:db:84:10:c8:3b:70:cd:60:2f:7c:49:b8:1b:
        36:8f:5a:be:25:f9:5f:4f:d0:3e:09:a0:70:c9:98:af:b2:31:
        b1:9f:41:00:51:e1:26:e0:93:4b:a9:4d:ed:87:91:35:d1:52:
        f5:d9:3d:23:b8:a5:6d:90:5c:e8:ef:15:2a:6f:b5:b6:be:92:
        c8:e3:bc:60:cf:ab:02:dc:75:42:2a:a4:db:bf:cf:48:6b:32:
        4a:70:bf:f4:a2:a1:78:5c:7a:13:08:d0:95:b1:d7:e9:c9:ba:
        61:b0:19:fe:5e:49:f0:79:12:64:6e:be:fe:dd:b2:c3:24:0e:
        e6:c4:9a:77:d6:11:8c:6e:72:26:cf:2f:ba:8c:02:53:8e:a9:
        b8:2b:5a:8f:d3:10:5b:f2:13:03:d8:6d:b8:b8:93:93:6e:77:
        ce:7a:e8:9b:e2:4d:72:85:7e:76:fe:7e:99:5b:44:b3:35:51:
        4e:d7:ec:06:69:f6:7f:61:af:d4:5a:6d:a5:64:b2:3d:30:8c:
        3e:93:32:76:4c:8c:b2:82:d5:1c:af:3b:21:28:e8:2c:f4:68:
        ea:e9:28:44

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

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.634 ms

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

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

Step 18: Run command pki scep request-ca CSR at DUT0 and check if output contains the following tokens:

CA certificates acquisition completed successfully
Show output
CA certificates acquisition completed successfully for CSR 'CSR'

Step 19: Run command pki scep request-ca CSR at DUT2 and check if output contains the following tokens:

CA certificates acquisition completed successfully
Show output
CA certificates acquisition completed successfully for CSR 'CSR'

Test SCEP Credentials Not Ready

Description

In this scenario, the credentials (X509 certificates) are not available when the VPN configuration is committed. However, once the credentials are downloaded, the VPN tunnel is set-up automatically.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth1 address 10.215.168.64/24
set protocols static route 192.168.212.0/22 next-hop 10.215.168.1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT2:

set interfaces ethernet eth1 address 10.215.168.66/24
set protocols static route 192.168.212.0/22 next-hop 10.215.168.1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Ping IP address 192.168.213.25 from DUT0:

admin@DUT0$ ping 192.168.213.25 count 1 size 56 timeout 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.811 ms

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

--- 192.168.213.25 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.637/0.637/0.637/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 U2FsdGVkX191JlGgZk6qaV8ToTepdZ6O1ct7Vz1XJPBBzMqZZQ6dYbyKns/l28xOdHvWbn4dDpGhAcI8fHfgNA==
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+fv38d0bqKrqJiaCjXhyuP86XWk/dmJvWgy8HqunbhGh1YObqBMKsSYX67JVzFzsoyBKyUUxGtbg==
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\s+Uninitialized
usercert\s+Uninitialized
Show output
------------------------------------------------------
Certificate     Status      Usage  NotBefore  NotAfter
------------------------------------------------------
ca           Uninitialized  -      -          -
usercert     Uninitialized  -      -          -

Step 9: Run command pki scep show CSR at DUT2 and check if output matches the following regular expressions:

ca\s+Uninitialized
usercert\s+Uninitialized
Show output
------------------------------------------------------
Certificate     Status      Usage  NotBefore  NotAfter
------------------------------------------------------
ca           Uninitialized  -      -          -
usercert     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\s+Valid
usercert\s+Valid
Show output
-------------------------------------------------------------------------------------
Certificate  Status     Usage             NotBefore                  NotAfter
-------------------------------------------------------------------------------------
ca           Valid   Signature     Dec 14 10:00:35 2023 GMT  Dec 14 10:10:34 2053 GMT
ra           Valid   Encipherment  Dec 21 09:33:45 2023 GMT  Dec 20 09:33:45 2025 GMT
ra-2         Valid   Signature     Dec 21 09:33:43 2023 GMT  Dec 20 09:33:43 2025 GMT
usercert     Valid   -             Feb  3 14:40:07 2025 GMT  Feb  3 18:40:07 2025 GMT

Step 13: Run command pki scep show CSR at DUT2 and check if output matches the following regular expressions:

ca\s+Valid
usercert\s+Valid
Show output
-------------------------------------------------------------------------------------
Certificate  Status     Usage             NotBefore                  NotAfter
-------------------------------------------------------------------------------------
ca           Valid   Signature     Dec 14 10:00:35 2023 GMT  Dec 14 10:10:34 2053 GMT
ra           Valid   Encipherment  Dec 21 09:33:45 2023 GMT  Dec 20 09:33:45 2025 GMT
ra-2         Valid   Signature     Dec 21 09:33:43 2023 GMT  Dec 20 09:33:43 2025 GMT
usercert     Valid   -             Feb  3 14:40:01 2025 GMT  Feb  3 18:40:01 2025 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, 2039c3363e804a03_i* a966446c97ee93a5_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 16008s
  peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96
    installed 20s ago, rekeying in 14899s, expires in 31660s
    in  c6426f00,      0 bytes,     0 packets
    out cccbb37a,      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, 2039c3363e804a03_i a966446c97ee93a5_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 21084s
  peer-PEER-tunnel-1: #1, reqid 1, INSTALLED, TUNNEL, ESP:NULL/HMAC_SHA1_96
    installed 20s ago, rekeying in 26336s, expires in 31660s
    in  cccbb37a,      0 bytes,     0 packets
    out c6426f00,      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:ab:e0:f8:ab:db:a7:57:a1:c9:50:00:00:00:00:ab:e0
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA
        Validity
            Not Before: Feb  3 14:40:07 2025 GMT
            Not After : Feb  3 18:40:07 2025 GMT
        Subject: DC = scep, DC = com, CN = entity1
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:ba:60:71:27:8c:08:bc:4f:9d:19:81:a3:9d:ab:
                    35:44:22:ef:d6:74:d1:38:9b:ad:44:cf:53:dc:09:
                    9c:8f:ba:96:11:6f:27:c9:40:f3:c0:80:ef:09:35:
                    2a:00:76:df:ab:0e:89:de:62:67:0b:33:cb:18:e7:
                    be:a5:ea:20:2c:28:b7:8a:42:3a:26:51:d2:00:d7:
                    d8:a5:c0:29:f0:45:72:76:2c:7c:7d:03:4f:f5:da:
                    a6:16:e9:df:b4:8f:16:c4:8a:f2:3c:ad:c8:93:57:
                    45:3c:59:cd:23:7b:ad:bf:31:69:ae:cd:8f:4f:85:
                    89:9d:f6:d1:4c:4b:a6:03:0a:af:39:7c:a6:e3:f8:
                    e7:59:f9:13:26:98:d7:e6:13:13:5a:25:bc:44:66:
                    c4:f0:fb:70:63:a2:66:bb:fb:1a:68:b8:6c:d4:20:
                    e0:e4:43:34:d5:c4:62:01:97:e6:d6:ec:13:a4:03:
                    c3:65:78:51:2c:0d:ec:41:da:77:3c:1c:a1:ed:1c:
                    f3:72:05:38:e5:32:23:62:e7:35:3f:56:55:4f:b5:
                    65:f8:0c:03:bf:04:9a:62:b2:fe:73:e0:41:fa:10:
                    e1:29:a7:33:af:77:af:9c:a0:1a:50:31:94:67:ec:
                    0d:f7:6b:73:cc:9b:ef:6b:34:15:91:20:c6:23:f8:
                    86:e7
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Subject Key Identifier:
                1E:94:67:51:1F:B0:00:08:19:43:C8:83:2D:84:87:55:CE:5C:BB:44
            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:
        58:e5:bb:3b:2c:48:7a:49:1b:a0:b3:e8:dd:19:77:3a:31:d4:
        5e:9d:6e:c8:5c:db:bd:a1:d1:fd:4a:eb:a6:43:3c:79:0e:ee:
        87:c8:19:b5:c0:16:02:7f:6d:45:93:af:f6:16:77:b8:47:5c:
        36:f5:af:44:ad:8a:c9:a1:3b:67:f9:f5:2c:0e:11:16:63:a2:
        51:32:05:f0:4b:c6:b2:e7:65:16:b2:a3:a1:30:6d:e0:1c:1f:
        a1:2e:d3:24:9e:14:eb:02:b9:60:3b:9c:e0:4e:4f:0a:52:b9:
        56:5e:82:59:2a:e9:f5:7e:11:65:f0:dd:7f:55:02:16:52:bd:
        79:92:bc:ae:ab:cb:20:0f:81:f4:0c:6e:25:b0:e3:b3:df:80:
        ab:e5:cc:c7:df:7e:03:21:fd:ef:9b:10:51:60:35:55:2e:24:
        bc:62:54:ef:57:4e:55:77:a3:60:31:81:92:a0:a7:14:d7:e3:
        44:83:93:20:83:0b:3e:0d:9b:f0:62:17:66:e6:a6:d6:8b:11:
        a8:f7:0e:9f:1d:79:53:e0:d5:85:65:2b:5f:36:16:dc:db:94:
        e1:bd:99:50:bd:2c:b5:0f:0e:35:da:cd:58:70:67:8e:3b:68:
        ce:ef:f5:18:63:90:e7:2b:eb:e2:b7:34:16:8a:2b:f2:4c:95:
        98:72:c2:ba

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

Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            1c:00:00:ab:df:3f:2f:05:dd:5b:e0:01:21:00:00:00:00:ab:df
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA
        Validity
            Not Before: Feb  3 14:40:01 2025 GMT
            Not After : Feb  3 18:40:01 2025 GMT
        Subject: DC = scep, DC = com, CN = entity2
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:9f:ea:7f:63:f1:1c:61:ff:72:27:7a:77:5c:6f:
                    de:7b:e5:d0:90:75:6b:56:8d:dd:8e:71:14:5c:68:
                    c4:39:0b:90:0b:84:35:77:e9:2e:f6:d4:bf:35:2b:
                    f5:b6:88:4e:44:19:d9:cb:6c:0f:eb:b4:bb:63:b7:
                    0c:4e:ff:c9:95:ee:1e:6e:d5:9f:95:28:14:63:bc:
                    99:cf:87:33:e5:13:b0:98:83:25:57:91:05:25:05:
                    2d:3f:5a:61:13:1c:2f:99:e1:7a:00:31:2b:3e:7d:
                    19:d1:a2:de:f0:b9:55:2e:42:f7:56:3e:dd:1a:cc:
                    13:41:33:14:a1:65:cc:50:d2:e5:93:f6:81:71:89:
                    11:50:9b:15:0f:2f:79:77:a3:b2:24:00:1e:92:dc:
                    dd:40:e7:8f:53:3f:5a:42:71:89:fa:0c:0b:09:0b:
                    51:bb:a8:f3:bf:67:cf:06:af:43:ae:84:03:5f:db:
                    68:12:6b:25:bf:66:c2:b9:52:a9:e6:0b:77:36:ff:
                    a3:19:8e:45:02:a3:f2:ca:94:56:3d:e1:82:4d:2c:
                    e0:db:67:f7:28:76:db:a6:59:35:ef:26:8d:0a:82:
                    f8:ad:1c:06:e9:b2:27:f7:33:df:9e:8c:7c:4a:a7:
                    20:54:55:c0:61:40:6a:af:cc:2d:88:1d:3f:82:99:
                    ca:93
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Subject Key Identifier:
                F1:F9:78:11:3E:F6:AC:1A:AB:A4:B5:01:F8:54:37:AB:AA:6D:15:02
            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:
        78:57:d0:87:82:c9:e4:17:27:bf:7a:a4:9b:76:f8:1d:38:59:
        a3:a3:ab:cb:c7:33:0d:5b:6b:c0:1d:61:d1:42:54:66:e7:f9:
        a7:e9:39:5c:69:f6:89:11:71:cf:10:31:53:fd:55:a8:a2:fd:
        54:5b:18:dc:75:2c:33:b6:3c:6b:be:9e:29:4f:d8:dc:11:ac:
        29:ff:59:7a:4c:5e:e3:48:6d:2c:8d:9c:02:3f:b4:f3:f1:05:
        ad:04:e4:42:37:de:bf:73:72:69:a0:97:c3:9a:0a:e5:22:2b:
        d6:e2:65:43:ae:cc:39:86:c0:31:9f:2a:b0:44:ec:2e:72:c8:
        70:c6:e6:a4:4d:87:f2:2f:f8:23:59:43:37:82:5a:b9:5a:7a:
        bd:e3:be:60:63:84:4f:b6:bc:f8:64:21:b4:d3:3b:7c:e2:2c:
        d7:13:61:6d:eb:8d:48:f6:c6:b6:44:ba:ca:c6:9b:3a:e4:92:
        3d:c7:3a:dd:16:b0:b9:f7:92:6b:7b:d2:ae:63:76:65:6a:ba:
        62:cb:34:df:25:b8:8b:61:b8:f9:93:a4:a9:b1:fc:e6:65:02:
        93:d0:f0:d2:97:72:69:0e:77:9b:19:3a:22:ca:79:af:dd:c9:
        94:db:be:5c:3d:f2:2e:3c:c0:1d:c3:36:9e:8d:0a:8c:25:0a:
        41:d2:fb:7f

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

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:ab:e0:f8:ab:db:a7:57:a1:c9:50:00:00:00:00:ab:e0
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA
        Validity
            Not Before: Feb  3 14:40:07 2025 GMT
            Not After : Feb  3 18:40:07 2025 GMT
        Subject: DC = scep, DC = com, CN = entity1
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:ba:60:71:27:8c:08:bc:4f:9d:19:81:a3:9d:ab:
                    35:44:22:ef:d6:74:d1:38:9b:ad:44:cf:53:dc:09:
                    9c:8f:ba:96:11:6f:27:c9:40:f3:c0:80:ef:09:35:
                    2a:00:76:df:ab:0e:89:de:62:67:0b:33:cb:18:e7:
                    be:a5:ea:20:2c:28:b7:8a:42:3a:26:51:d2:00:d7:
                    d8:a5:c0:29:f0:45:72:76:2c:7c:7d:03:4f:f5:da:
                    a6:16:e9:df:b4:8f:16:c4:8a:f2:3c:ad:c8:93:57:
                    45:3c:59:cd:23:7b:ad:bf:31:69:ae:cd:8f:4f:85:
                    89:9d:f6:d1:4c:4b:a6:03:0a:af:39:7c:a6:e3:f8:
                    e7:59:f9:13:26:98:d7:e6:13:13:5a:25:bc:44:66:
                    c4:f0:fb:70:63:a2:66:bb:fb:1a:68:b8:6c:d4:20:
                    e0:e4:43:34:d5:c4:62:01:97:e6:d6:ec:13:a4:03:
                    c3:65:78:51:2c:0d:ec:41:da:77:3c:1c:a1:ed:1c:
                    f3:72:05:38:e5:32:23:62:e7:35:3f:56:55:4f:b5:
                    65:f8:0c:03:bf:04:9a:62:b2:fe:73:e0:41:fa:10:
                    e1:29:a7:33:af:77:af:9c:a0:1a:50:31:94:67:ec:
                    0d:f7:6b:73:cc:9b:ef:6b:34:15:91:20:c6:23:f8:
                    86:e7
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Subject Key Identifier:
                1E:94:67:51:1F:B0:00:08:19:43:C8:83:2D:84:87:55:CE:5C:BB:44
            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:
        58:e5:bb:3b:2c:48:7a:49:1b:a0:b3:e8:dd:19:77:3a:31:d4:
        5e:9d:6e:c8:5c:db:bd:a1:d1:fd:4a:eb:a6:43:3c:79:0e:ee:
        87:c8:19:b5:c0:16:02:7f:6d:45:93:af:f6:16:77:b8:47:5c:
        36:f5:af:44:ad:8a:c9:a1:3b:67:f9:f5:2c:0e:11:16:63:a2:
        51:32:05:f0:4b:c6:b2:e7:65:16:b2:a3:a1:30:6d:e0:1c:1f:
        a1:2e:d3:24:9e:14:eb:02:b9:60:3b:9c:e0:4e:4f:0a:52:b9:
        56:5e:82:59:2a:e9:f5:7e:11:65:f0:dd:7f:55:02:16:52:bd:
        79:92:bc:ae:ab:cb:20:0f:81:f4:0c:6e:25:b0:e3:b3:df:80:
        ab:e5:cc:c7:df:7e:03:21:fd:ef:9b:10:51:60:35:55:2e:24:
        bc:62:54:ef:57:4e:55:77:a3:60:31:81:92:a0:a7:14:d7:e3:
        44:83:93:20:83:0b:3e:0d:9b:f0:62:17:66:e6:a6:d6:8b:11:
        a8:f7:0e:9f:1d:79:53:e0:d5:85:65:2b:5f:36:16:dc:db:94:
        e1:bd:99:50:bd:2c:b5:0f:0e:35:da:cd:58:70:67:8e:3b:68:
        ce:ef:f5:18:63:90:e7:2b:eb:e2:b7:34:16:8a:2b:f2:4c:95:
        98:72:c2:ba

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

Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            1c:00:00:ab:df:3f:2f:05:dd:5b:e0:01:21:00:00:00:00:ab:df
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: DC = com, DC = scep, CN = scep-TELDATPKI-CA
        Validity
            Not Before: Feb  3 14:40:01 2025 GMT
            Not After : Feb  3 18:40:01 2025 GMT
        Subject: DC = scep, DC = com, CN = entity2
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:9f:ea:7f:63:f1:1c:61:ff:72:27:7a:77:5c:6f:
                    de:7b:e5:d0:90:75:6b:56:8d:dd:8e:71:14:5c:68:
                    c4:39:0b:90:0b:84:35:77:e9:2e:f6:d4:bf:35:2b:
                    f5:b6:88:4e:44:19:d9:cb:6c:0f:eb:b4:bb:63:b7:
                    0c:4e:ff:c9:95:ee:1e:6e:d5:9f:95:28:14:63:bc:
                    99:cf:87:33:e5:13:b0:98:83:25:57:91:05:25:05:
                    2d:3f:5a:61:13:1c:2f:99:e1:7a:00:31:2b:3e:7d:
                    19:d1:a2:de:f0:b9:55:2e:42:f7:56:3e:dd:1a:cc:
                    13:41:33:14:a1:65:cc:50:d2:e5:93:f6:81:71:89:
                    11:50:9b:15:0f:2f:79:77:a3:b2:24:00:1e:92:dc:
                    dd:40:e7:8f:53:3f:5a:42:71:89:fa:0c:0b:09:0b:
                    51:bb:a8:f3:bf:67:cf:06:af:43:ae:84:03:5f:db:
                    68:12:6b:25:bf:66:c2:b9:52:a9:e6:0b:77:36:ff:
                    a3:19:8e:45:02:a3:f2:ca:94:56:3d:e1:82:4d:2c:
                    e0:db:67:f7:28:76:db:a6:59:35:ef:26:8d:0a:82:
                    f8:ad:1c:06:e9:b2:27:f7:33:df:9e:8c:7c:4a:a7:
                    20:54:55:c0:61:40:6a:af:cc:2d:88:1d:3f:82:99:
                    ca:93
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Subject Key Identifier:
                F1:F9:78:11:3E:F6:AC:1A:AB:A4:B5:01:F8:54:37:AB:AA:6D:15:02
            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:
        78:57:d0:87:82:c9:e4:17:27:bf:7a:a4:9b:76:f8:1d:38:59:
        a3:a3:ab:cb:c7:33:0d:5b:6b:c0:1d:61:d1:42:54:66:e7:f9:
        a7:e9:39:5c:69:f6:89:11:71:cf:10:31:53:fd:55:a8:a2:fd:
        54:5b:18:dc:75:2c:33:b6:3c:6b:be:9e:29:4f:d8:dc:11:ac:
        29:ff:59:7a:4c:5e:e3:48:6d:2c:8d:9c:02:3f:b4:f3:f1:05:
        ad:04:e4:42:37:de:bf:73:72:69:a0:97:c3:9a:0a:e5:22:2b:
        d6:e2:65:43:ae:cc:39:86:c0:31:9f:2a:b0:44:ec:2e:72:c8:
        70:c6:e6:a4:4d:87:f2:2f:f8:23:59:43:37:82:5a:b9:5a:7a:
        bd:e3:be:60:63:84:4f:b6:bc:f8:64:21:b4:d3:3b:7c:e2:2c:
        d7:13:61:6d:eb:8d:48:f6:c6:b6:44:ba:ca:c6:9b:3a:e4:92:
        3d:c7:3a:dd:16:b0:b9:f7:92:6b:7b:d2:ae:63:76:65:6a:ba:
        62:cb:34:df:25:b8:8b:61:b8:f9:93:a4:a9:b1:fc:e6:65:02:
        93:d0:f0:d2:97:72:69:0e:77:9b:19:3a:22:ca:79:af:dd:c9:
        94:db:be:5c:3d:f2:2e:3c:c0:1d:c3:36:9e:8d:0a:8c:25:0a:
        41:d2:fb:7f

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

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.572 ms

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

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