enroll terminal

Syntax

enroll terminal

Description

Generates a key pair and certificate signing request (CSR) for the current leaf certificate. Use the CSR to obtain a signed certificate from a certificate authority (CA), and then import the certificate onto the switch with the command import terminal.

The key type, and the certificate common name in the subject fields of the current leaf certificate must be completed before running this command.

Command context

config-cert-<CERT-NAME>

Authority

Administrators

Example

Enrolling the leaf certificate my-leaf-cert:

switch(config-cert-my-leaf-cert)# enroll terminal 
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

-----BEGIN CERTIFICATE REQUEST-----
MIIBozCCAQwCAQAwYzEVMBMGA1UEAxMMcG9kMDEtODQwMC0xMQ4wDAYDVQQLEwV
nViYTEMMAoGA1UEChMDSFBFMRIwEAYDVQQHEwlSb3NldmlsbGUxCzAJBgNVBAgT
NBMQswCQYDVQQGEwJVUzCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAtKcLS
M4qUbU1Qj669RWJm1qhxz/SI36QrzRHaiTDwglr0Lu9E3YgoofrBFothWebBk17
Xl65S/fSTf3ma9dvyVBM0VgTdOJ0wuFgCi6vnVJG+QyOKlWom0rgZ+ZKMqSfHAS
invnquCIYDg7lfYKnPhNcVS1su+yGPltgkCAwEAAaAAMA0GCSqGSIb3DQEBBQUA
GBAJ4L3lFFfWBEL+KAKpOGjZcVmwlBMqSKFtOFNF9nzmUmONmU3SKy6dzQ+6ynR
7Au22mf3lWDxzrtCC/dj5RtWJeJekxp2LCIK/3eRXUwbYveQDKcxH7j9ZB+BAp2
ace+2tA68F2vlgRCQ/hcQH0YmNuaq4Ne3w0dhm7HlUrx
-----END CERTIFICATE REQUEST-----
switch(config-cert-my-leaf-cert)#