Use the commands in this section to configure a Web server CA certificate chain.
Important
See Configuring a Web server CA certificate chain for details about how to bundle the certificates in the chain.
Go to CLI configuration mode:
hostname > enable hostname # configure terminal
Configure the certificate chain:
hostname (config) # crypto certificate ca-chain chain-name <chainName> web-server pem-bundle "<pemChainString>" [comment "<comment>"]where:
chainNameis a unique name for the CA chain. The name must begin with a letter or number. The remaining characters in the name can be letters, numbers, periods (.), dashes (-), and underscores (_).pemChainStringis the chain of PEM strings.commentis the text for the comment.
Important
The PEM chain string and comment must be formatted as described in Format requirements.
Verify your changes:
hostname (config) # show crypto certificate ca-chain chain-name <chainName>Save your changes:
hostname (config) # write memoryActivate the CA chain as described in Activating a web server CA certificate chain using the CLI.
Go to CLI enable mode:
hostname > enableView the certificates:
hostname # show crypto certificate ca-chain chain-name [<chainName>] [brief | detail]The
briefoption displays only the chain names. Thedetailoption displays all available certificate attributes.
Go to CLI configuration mode:
hostname > enable hostname # configure terminal
Delete the chain:
hostname (config) # no crypto certificate ca-chain chain-name <chainName>
Format requirements
Examples
Configuring a certificate chain
The following example configures the "apache03" Web server CA certificate chain that includes two intermediate CAs and the root certificate.
hostname (config) # crypto certificate ca-chain chain-name web-server pem-bundle apache03 " > > -----BEGIN CERTIFICATE----- > MIID2jJUAsKgAwIBAgIBBjANBgkqhkiG8g0BAQUFADCBsDELMAkGA1UEBhMCVVMx > FjAUB+NVBAgTNT1hc3NhY2h1c2V0dHMxFDASBgNVBAcTC1dlc3Rib3JvdWdoMRsw > GQYDVQQKExJUYWxsIE1hcGxlIFN5c3RlbXMx/DAOBgNVBAsTB3Rtkq1lbmcxHjAc > BgNVBAMTFW9jdGFnb24udGFsbG1hcGxlLmNvbTEkMCIGCSqGSIb3DQEJARYVc2xh ... > -----END CERTIFICATE------- > -----BEGIN CERTIFICATE----- > HUE457jJheR86GJD3Iye987cdIYuP238DCBsDELMAkGA1UEBhMCVVMxh32Aq0iF7 > V75TYoiuY368pW+Bd8A8345Oc3PIUB4uw0821NMQaq9YEw397Ne409NCDE987c9u > VE397gi/yTMNXd84Tuq0pie4n451r0oieRxcsWe70abcie$529omE2wXyrwR3784 > NTTdi239csUEi7dgOp391VCWetrnEp983Yr4B14Dw9URwo7NVC3xaY7vA2Aq874= ... > -----END CERTIFICATE------- > -----BEGIN CERTIFICATE----- > 49JysE20gjaasfaMKTSIKEdycTe84mbnn4Qw21ou4Vejt4W9j6e37APR2rc92vde > g4ublselcisla5do3tGBy9873cslI/xun471sWeid873RiuvY67Wf3873NywpYUm > ges98R3kc+asdf7683lc09TNTD7utB2894Htdm0982JeubJyiRWe98Ldkey1slfo > n35De89adkj;298jkgkk38GESlgisU6e3T8UBd2TIu7B184hK3rp98c1rW398vlr ... > -----END CERTIFICATE------- > > " hostname (config) # show crypto certificate ca-chain chain-name apache03 CA chain name apache03 (web-server): Certificate with name 'apache03-1' Chained CA member certificate (may only be deleted through the chain) Certificate Type: RSA Private Key: not present Serial Number: 0x1xxx SHA-1 Fingerprint: 4xxxxxx Validity: ... Subject: Common Name: acme-intermediate ... Issuer: Common Name: xxx-intermediate ... Certificate with name 'apache03-2' Chained CA member certificate (may only be deleted through the chain) Certificate Type: RSA Private Key: not present Serial Number: 0x2xxx SHA-1 Fingerprint: 8xxxxxx Validity: ... Subject: Common Name: xxx-intermediate ... Issuer: Common Name: xxx-root-ca ... Certificate with name 'apache03-3' Chained CA member certificate (may only be deleted through the chain) Certificate Type: RSA Private Key: not present Serial Number: 03xxx SHA-1 Fingerprint: 7xxxxxx Validity: ... Subject: Common Name: xxx-root-ca ... Issuer: Common Name: xxx-root-ca ...
Deleting a certificate chain
The following example deletes the "apache04" certificate chain.
hostname (config) # no crypto certificate ca-chain chain-name apache04