The steps for the following recipe are as follows:
- Generate a private/public key-pair for a certificate using the Junos OS command line. Give the certificate a convenient name. In this case, we use the name AUTO:
adamc@router> request security pki generate-key-pair certificate- id AUTO Generated key pair AUTO, key size 1024 bits
- Use the key-pair to create a local self-signed certificate, specifying the domain name, the IP address and the general host name as the subject:
adamc@router> request security pki local-certificate generate- self-signed certificate-id AUTO domain-name router.mydomain.com subject CN=router ip-address 10.0.201.201 Self-signed certificate generated and loaded successfully
- Export the certificate ...