Encrypting pre-shared keys in router’s configuration

By default, Cisco routers display pre-shared keys for VPN groups as clear text.

For example:

crypto isakmp client configuration group vpn-group
 key thisIsMyKey
 (...)

To encrypt present and upcoming keys, you need to enter the following commands in router global configuration mode:

key config-key password-encryption [encryptionKey]
password encryption aes

From now on, the keys will be encrypted using AES:

crypto isakmp client configuration group vpn-group
 key 6 J_APCTe]eS]aCOOeK_GZT]`QOdCZH[BgNYddiA_TVGGgbeGHFOAAB
 (...)
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s