How To Fix `skey_protected could not be decrypted` Error
[error] The protected value for skey_protected could not be decrypted and therefore cannot be used. This may happen if the secret was encrypted on a different machine and copied to this machine. Please try protecting this value again.
Reference Articles:
1. Open an Administrator Command Prompt
2. Stop Duo Authentication Proxy Service and Close Duo Authentication Proxy Manager Application
1
net stop DuoAuthProxy
1
taskkill /IM Duo_Authentication_Proxy_Manager.exe /F
3. Navigate to the Installation Directory
1
cd "C:\Program Files\Duo Security Authentication Proxy\bin"
4. Generate a New Encrypted Key
- Use the
authproxy_passwd.exe
tool to re-encrypt your Duo secret key<skey>
. - Replace
<skey>
with your actual secret key from Duo:1
authproxy_passwd.exe <skey>
or use this command to auto-encrypt all plaintext values in authproxy.cfg that require encryption. See this reference article Duo Knowledge Base Article 2340 for further explanation.
1
"C:\Program Files\Duo Security Authentication Proxy\bin\authproxy_passwd.exe" --whole-config
5. Update the Configuration File (authproxy.cfg)
1
notepad.exe "C:\Program Files\Duo Security Authentication" Proxy\conf\authproxy.cfg
- Locate the line that begins with
skey_protected
authproxy.cfg and replace the old value with the new encrypted value you just generated:1
skey_protected=encrypted_key
6. Restart the Duo Authentication Proxy Service
1
net start DuoAuthProxy
7. Test the Configuration
1
"C:\Program Files\Duo Security Authentication Proxy\bin\authproxy_connectivity_tool.exe"
This post is licensed under CC BY 4.0 by the author.