enroll self-signed

Syntax

enroll self-signed

Description

Generates a key pair and generates a self-signed certificate with it.

The subject fields and key type of the current leaf certificate must be defined before running this command. If not, you are prompted to fill in the subject fields, and the key type is set to RSA 2048.

Command context

config-cert-<CERT-NAME>

Authority

Administrators or local user group members with execution rights for this command.

Example

Enrolling the leaf certificate leaf-cert:

switch(config-cert-leaf-cert)# enroll self-signed 
You are enrolling a certificate with the following attributes:
Subject: C=US, ST=CA, L=Rocklin, OU=Site, O=Comp,
         CN=Leaf01
Key Type: RSA (2048)

Continue (y/n)? y
Self-signed certificate is created and enrolled successfully.

switch(config-cert-leaf-cert)#