private key issue on windows with openVPN connect 3

Scripts to manage certificates or generate config files
Post Reply
gopiv
OpenVpn Newbie
Posts: 3
Joined: Wed Jul 08, 2020 11:18 pm

private key issue on windows with openVPN connect 3

Post by gopiv » Wed Jul 08, 2020 11:25 pm

Hi,

We have few user who use windows 10. We are encrypting the client private key and adding that client key pair in ovpn file. The issue we are seeing is, if private key is in PCKS8 format then we are getting below exception.

EVENT: mbed TLS: error parsing config private key : PKCS5 - Requested encryption or digest alg not available

But if I convert that private key to PKCS1 format then it is working. Do you know why openVPN throws error for PCKS8?
Also on any device open VPN is ignoring remote-random-hostname option. I've to manually add random hostname to VPN host. Is this a know issue with openVPN connect client?


Moved this to Cert / Config management.
viewtopic.php?f=22&t=30595

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 7577
Joined: Fri Jun 03, 2016 1:17 pm

Re: private key issue on windows with openVPN connect 3

Post by TinCanTech » Wed Jul 08, 2020 11:49 pm

gopiv wrote:
Wed Jul 08, 2020 11:25 pm
EVENT: mbed TLS: error parsing config private key : PKCS5 - Requested encryption or digest alg not available
Looks like either mbedTLS or openVPN connect 3 does not support PKCS5/8 (I assume a typo) or your digest alg ..
gopiv wrote:
Wed Jul 08, 2020 11:25 pm
Also on any device open VPN is ignoring remote-random-hostname option
Perhaps that option is not supported by the versions you are using ..

gopiv
OpenVpn Newbie
Posts: 3
Joined: Wed Jul 08, 2020 11:18 pm

Re: private key issue on windows with openVPN connect 3

Post by gopiv » Wed Jul 08, 2020 11:57 pm

I've used same config in MAC and it worked.
The except says its PKCS5, its not typo :)

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 7577
Joined: Fri Jun 03, 2016 1:17 pm

Re: private key issue on windows with openVPN connect 3

Post by TinCanTech » Thu Jul 09, 2020 12:08 am

gopiv wrote:
Wed Jul 08, 2020 11:57 pm
used same config in MAC and it worked
MAC use LibreSSL. no ?

openVPN connect 3 is closed source so you will probably need to raise a ticket here:
https://openvpn.net/vpn-server/

gopiv
OpenVpn Newbie
Posts: 3
Joined: Wed Jul 08, 2020 11:18 pm

Re: private key issue on windows with openVPN connect 3

Post by gopiv » Thu Jul 09, 2020 3:58 am

Let me do that. Thanks

Post Reply