I'm trying to make a small utility that allow to configure an 303 AP (Running ArubaOS 8.6.0) by creating a backup.cfg that when restored, will set all the parameters for different SSID.
This SSID is dependant on the serial number, so the idea is to ask for the serial number, and let the utility generate the cfg file that I will download in the SetMeUp network, and will make all the settings of the network correctly.
The problem is that backup.cfg does something that I really dont understand. If I change the PSK, the wpa-passphrase line change, (which is something I expected) but if I try to change it back to the original passphrase, the wpa-passphrase changes again to a different value.
It seems that there is something I dont really understand correctly.
pass-phrase: Go4Service
wpa-passphrase e931d652d842f952e28be2ccd9b06710cc62d9f90793b297
wpa-passphrase fb7436938124e8eee7f814bdb35c5dc1f3cbd3a1fddd6be7
When I enter the command via ssh (via config|wlan ssid-profile <SSID>|wpa-passphrase Go4Service) I'm able to change the password in plain text, but in the backup.cfg file is stored as an hex chain, and I can't make a sense on how this value is calculated. (I tried to used pbkdf2 rules and doesnt return the same value)
(I include both backup.cfg files with both the same passwords)
Any guidance will be helpful