This article provides information about Certificate-based (PKI) VPN, via SCEP (Simple Certificate Enrollment Protocol), in a Junos device.
Information about Certificate-based (PKI) VPN, via SCEP (Simple Certificate Enrollment Protocol), in a Junos device.
With Simple Certificate Enrollment Protocol (SCEP), you can configure a Juniper Networks device to obtain a certificate authority (CA) certificate online and start the online enrollment for the specified certificate ID. The CA public key verifies certificates from remote peers. Example: Enrolling a Local Certificate Online Using SCEP Before you begin:
[edit] root@SRX# run request security pki generate-key-pair certificate-id mylocalcert Generated key pair mylocalcert, key size 1024 bits
[edit security] root# show pki { ca-profile mycaprofile { ca-identity 172.27.201.121; enrollment { url http://172.27.201.121/certsrv/mscep/mscep.dll; } revocation-check { disable; } } traceoptions { file pkivpn; flag all; } }
[edit] root@SRX# run request security pki ca-certificate enroll ca-profile mycaprofile
Overview : In this example, the Juniper Networks device is configured to obtain a local certificate online and start the online enrollment for the specified certificate ID with SCEP. The CA profile name is specified as mycaprofile and the CA location as http://172.27.201.121/certsrv/mscep/mscep.dll . The request security pki local-certificate enroll command is used to start the online enrollment for the specified certificate ID. You must specify the CA profile name (for example, mycaprofile), the certificate ID corresponding to a previously generated key-pair (for example, mylocalcert), and the following information: Note : SCEP sends a PKCS #10 format certificate request enveloped in the PKCS #7 format.
root@SRX#run request security pki local-certificate enroll ca-profile mycaprofile certificate-id mylocalcert challenge-password 700000000000000C ip-address 10.11.11.11 subject "DC=Lab,CN=SRX,OU=PTAC,O=Juniper,L=SDB9,ST=MH,C=US"
Once the device certificate is obtained and the online enrollment begins for the certificate ID, the command is asynchronously processed. Verification :
Enter the command: run show security pki local-certificate detail
2025-04-08: corrected visibility settings2012-05-29: article created