Install CA Signed Certificate
Appearance
The following article describes the procedure for manually generating a Certificate Signing Request on a Cisco IOS Gateway and installing the signed certificate.
- Set a valid host and domain name
hostname SECUREGATE ip domain-name test.de
- Gernerate new RSA keys
crypto key generate rsa mod 2048
- Create a trust point
crypto pki trustpoint SECUREGATE enrollment terminal pem serial-number none ip-address none revocation-check none exit
- Authenticate the trust point by uploading the CA certificate chain in Base 64 format
crypto pki authenticate SECUREGATE
Enter the base 64 encoded CA certificate.
End with a blank line or the word "quit" on a line by itself
-----BEGIN CERTIFICATE-----
MIIDrTCCApWgAwIBAgIQPeEceJm2upNMSYgeOC0YFzANBgkqhkiG9w0BAQUFADBp
YKCZImiZPyLGQBGRYEY29ycDEYMBYGCgmSJomT8ixkARkWCGFpcmJ1c2Rz
- some lines skipped -
mzTyqucDzIgIiBhXMd+VsYU1HE1xDb3mYb5ysgX7ASHZB1DLgCX8kf4qrb2ML+ut
hcHEN1dvg54wHLNbkY3/Iu21QhqWBsv6g53u5+Vu1rWO
-----END CERTIFICATE-----
Certificate has the following attributes:
Fingerprint MD5: 227EEA6B 36097078 29898F6E 24237A9A
Fingerprint SHA1: B92F895A E3ED5E34 60396353 DB050D98 1F237DAD
% Do you accept this certificate? [yes/no]: yes
Trustpoint CA certificate accepted.
% Certificate successfully imported
- Generate a Certificate Sign Request
crypto pki enroll SECUREGATE % Start certificate enrollment .. Display Certificate Request to terminal? [yes/no]: yes Certificate Request follows: -----BEGIN CERTIFICATE REQUEST----- MIICgjCCAWoCAQAwHDEaMBgGA1UEAxMRMDA6MUY6Q0E6QzQ6NkY6NDgwggEiMA0G CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDEDOXj3HW3ptjYnnwMW9xTjzBSk19B - some lines skipped - ZddwDX+gR9qLutNxz2aNBW1mcem9mGNAlv+FCiBK3GDm2rXWGrWhqj4+JrOlTJMi OSCyBKN+TPqtZn6UjC9qnu0VpKtVDg== -----END CERTIFICATE REQUEST----- ---End - This line not part of the certificate request--- Redisplay enrollment request? [yes/no]: no
- Copy the Base64 encoded CSR in a file and get the certificate signed by the CA.
- Import the certificate to the trustpoint
crypto pki import SECUREGATE certificate % The fully-qualified domain name will not be included in the certificate Enter the base 64 encoded certificate. End with a blank line or the word "quit" on a line by itself -----BEGIN CERTIFICATE----- MIIFpTCCBI2gAwIBAgITQwAAABqtBEl4E5co9AAAAAAAGjANBgkqhkiG9w0BAQUF ADBpMRQwEgYKCZImiZPyLGQBGRYEY29ycDEYMBYGCgmSJomT8ixkARkWCGFpcmJ1 c2RzMRYwFAYKCZImiZPyLGQBGRYGY29tbW9uMR8wHQYDVQQDExZjb21tb24tQ0VV - some lines skipped - S4V+g9J+hIc4Ktg9UoSWKqKwKONqVt8TKdpTOOn07yuV9KE2FYADK5rluaaV3aFJ XQfemf/WMDJXRJkILoQYP5xjio1UTke1gDH3lIlc/X5S3Ry9FaGMMFhj7Ucyo7TP apb7WUHqrFe7 -----END CERTIFICATE----- % Router Certificate successfully imported
done