O'Reilly logo

JUNOS Automation Cookbook by Adam Chappell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

The steps for the following recipe are as follows:

  1. 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
  1. 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 
  1. Export the certificate ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required