bad decrypt error for encrypted client key

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
basinilya
OpenVpn Newbie
Posts: 4
Joined: Tue Jan 03, 2023 10:22 am

bad decrypt error for encrypted client key

Post by basinilya » 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:

Code: Select all

openssl rsa -aes256 -in your.key -out your.encrypted.key
and replaced the embedded key with the line:

Code: Select all

key your.encrypted.key
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.

Image

OpenVPN Connect version 3.4.0

Post Reply