bad decrypt error for encrypted client key
Posted: Mon Aug 28, 2023 9:59 am
Hi.
My client .ovpn profile had an embedded unencrypted client key and I've become concerned of its protection because I own Windows Home and FS encryption or Bitlocker are unavailable in this version.
I encrypted the key with:
and replaced the embedded key with the line:
Now OpenVPN Connect fails with: "pkey::parse_pem: error in private key:: error:1c800064:provider routines::bad decrypt / error:11800074:PKCS12 routines::pkcs12 cipherfinal error"
OpenVPN GUI still works with the same profile: it prompts for the key password as expected.

OpenVPN Connect version 3.4.0
My client .ovpn profile had an embedded unencrypted client key and I've become concerned of its protection because I own Windows Home and FS encryption or Bitlocker are unavailable in this version.
I encrypted the key with:
Code: Select all
openssl rsa -aes256 -in your.key -out your.encrypted.key
Code: Select all
key your.encrypted.key
OpenVPN GUI still works with the same profile: it prompts for the key password as expected.

OpenVPN Connect version 3.4.0