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

Example

Enrolling the leaf certificate my-leaf-cert:

switch(config-cert-my-leaf-cert)# enroll self-signed 
You are enrolling a certificate with the following attributes:
Subject: C=US, ST=NY, L=NY, OU=UnitA, O=MyCompany,
         CN=MyLeaf01
Key Type: RSA (2048 bits)

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

switch(config-cert-my-leaf-cert)#