crypto pki certificate

Syntax

crypto pki certificate <CERT-NAME>

no crypto pki certificate <CERT-NAME>

Description

Creates a leaf certificate and changes to the config-cert-<CERT-NAME> context. If the specified leaf certificate exists, this command changes to the config-cert-<CERT-NAME> context.

The first time the switch starts it creates a self-signed, default leaf certificate called local-cert. This certificate is used by any switch application that does not have an associated leaf certificate.

The no form of this command deletes the specified leaf certificate. The default leaf certificate local-cert cannot be deleted.

Command context

config

Parameters

<CERT-NAME>
Specifies the name of a leaf certificate. Range: 1 to 32 alphanumeric characters (excluding ").

Authority

Administrators

Examples

Creating the leaf certificate my-leaf-cert:

switch(config)# crypto pki certificate my-leaf-cert
switch(config-cert-my-leaf-cert)# 

Removing the certificate my-leaf-cert:

switch(config)# no crypto pki certificate my-leaf-cert
The leaf certificate has associated application(s). Deleting the certificate
will make those applications use the default certificate `local-cert`.
Continue (y/n)? y
switch(config)#