Requesting a CA Digital Certificate
Requesting a CA Digital Certificate
You can request a CA digital certificate either
online or manually. To request a digital certificate from a CA or
RA online by using SCEP, issue the request security pki ca-certificate
enroll ca-profile ca-profile-name
command.
If you obtained the CA digital certificate manually
through e-mail or other out-of-band mechanism, you must load it manually.
To manually install a certificate in your router, issue the request
security pki ca-certificate load ca-profile profile_name filename /path/filename.cert
command.
Generating a Private/Public Key Pair
A key pair is a critical element of a digital certificate
implementation. The public key is included in the local digital certificate
and the private key is used to decrypt data received from peers. To
generate a private/public key pair, issue the request security
pki generate-key-pair certificate-id certificate-id-name
command.
Generating and Enrolling a Local Digital Certificate
You can generate and enroll a local digital certificate
either online or manually. To generate and enroll a local certificate
online by using SCEP, issue the request security pki local-certificate
enroll
command. To generate a local certificate request manually
in the PKCS-10 format, issue the request security pki generate-certificate-request
command.
If you create the local certificate request manually,
you must also load the certificate manually. To manually install a
certificate in your router, issue the request security pki local-certificate
load
command.
Applying the Local Digital Certificate to an IPsec Configuration
To activate a local digital certificate, you configure
the IKE proposal to use digital certificates instead of preshared
keys, reference the local certificate in the IKE policy, and identify
the CA or RA in the service set. To enable the IKE proposal for digital
certificates, include the rsa-signatures
statement at the [edit services ipsec-vpn ike proposal proposal-name authentication-method]
hierarchy level. To reference the local
certificate in the IKE policy, include the local-certificate
statement at the [edit services ipsec-vpn ike policy policy-name]
hierarchy level. To identify the CA
or RA in the service set, include the trusted-ca
statement
at the [edit services service-set service-set-name ipsec-vpn-options]
hierarchy level.
[edit services] service-set service-set-name { ..... ipsec-vpn-options { trusted-ca ca-profile-name; } } ipsec-vpn { ike { proposal proposal-name { ..... authentication-method [pre-shared-keys | rsa-signatures]; } policy policy-name { .... local-certificate certificate-id-name; } } }
Configuring Automatic Reenrollment of Digital Certificates
You can configure automatic reenrollment for digital certificates.
This feature is by default not enabled. To configure automatic reenrollment
for digital certificates, include the auto-re-enrollment
statement at the [edit security pki] hierarchy level:
[edit] security { pki { auto-re-enrollment { certificate-id certificate-name { ca-profile ca-profile-name; challenge-password password; re-enroll-trigger-time-percentage percentage; # Percentage of validity-period # (specified in certificate) when automatic # reenrollment should be initiated. re-generate-keypair; validity-period number-of-days; } } } }