01-14-2022 10:10 AM
This how my SSID is configured:
c9800-1(config)#key config-key password-encrypt <key>
c9800-1(config)#password encryption aes
no broadcast-ssid security wpa psk set-key ascii 8 fHeEGWK[YCWF\PcLNgTidD]WQfGKVR[`aAAB no security wpa akm dot1x security wpa akm psk no shutdown
My problem is that if upload my config file, the pre-shared key no longer works and get the following message at book up:
% Password encryption failed: Possible mismatch of password type & secret type! % node-1:dbm:wireless:AKM PSK can be enabled only when PSK key is set
All I need to be able to upload a config file to my 9800 WLC and for the preshared keys to work, but also want the config file not to show the preshared key in clear text.
What am I doing wrong?
Thanks for the help
Solved! Go to Solution.
01-16-2022 11:11 AM
Correct the master key is saved separately in a secure part of NVRAM and not backed up.
If it was then anybody could steal that config with your encrypted keys and passwords so for security reasons it has to be kept separate and the config can only be 'unlocked' by someone that knows the master key.
01-14-2022 10:57 AM - edited 01-14-2022 11:00 AM
May be due to garbage charcters got carry forward like any spaces in the notepad,
remove manually add directly on the device and test it,
make it simple PSK before get in to advanced make sure it working.
reference :
01-14-2022 11:11 AM
If I manually add it to the device it works, but I'm trying to have a base config file that I can upload to the WLC with the already preconfigured pre-shared keys.
Also, if I configure it as an unencrypted key, I can upload the config file and my preshared keys work right away
security wpa psk set-key ascii 0 test1234
I am just trying to avoid the passphrase to be cleartext in my config file.
Thanks for the help
01-15-2022 06:07 PM
What version of IOS-XE are you doing this on?
01-15-2022 06:36 PM
17.3.3
Your suggestion from the other thread did the trick!
-make sure AES encryption is configured with the same master key before restoring any of the backup config otherwise IOS cannot decrypt those keys.
I had to set the master key BEFORE uploading the config. Once I did this all my pre-shared keys were functional.
I guess the master key is not saved in the config?
01-16-2022 11:11 AM
Correct the master key is saved separately in a secure part of NVRAM and not backed up.
If it was then anybody could steal that config with your encrypted keys and passwords so for security reasons it has to be kept separate and the config can only be 'unlocked' by someone that knows the master key.
01-16-2022 11:37 AM
Thank you makes sense now.
02-28-2024 11:34 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide