cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5278
Views
0
Helpful
3
Replies

Backup & Restore keys

Gordon Ross
Level 9
Level 9

How do you backup & restore the crypto keys on an ASA ?

GTG

Please rate all helpful posts.
3 Replies 3

Allen P Chen
Level 5
Level 5

asa1# sh crypto key mypubkey rsa

Key name: blah

Usage: General Purpose Key

Modulus Size (bits): 2048

Key Data:

.....

asa1#conf t

asa1(config)# crypto ca export blah identity-certificate

ERROR: The trustpoint does not exist

:-(

Please rate all helpful posts.

Hello,

I apologize for the confusion, I thought your keys were associated with a trustpoint already.  On the ASA, you will not be able to keys directly.  You will need to put your rsa key into a trustpoint first.  You can then export the certificates + key in a pkcs12 and then extract the key from it using something like openssl.

For example, I have created a key on my ASA called testkey and have exported it below:

GENERTATING KEY...

asa(config)#  crypto key generate rsa label testkey mod 1024

MAKING DUMMY TRUSTPOINT...

asa(config)#  crypto ca trust dummy

asa(config-ca-trustpoint)# keypair testkey

EXPORTING KEY...

asa(config)# crypto ca export dummy pkcs12 cisco123

WARNING: Temporary self-signed certificate is being generated to export the keypair since an associated ID certificate is not available.

Hope this helps.

Review Cisco Networking products for a $25 gift card