Pivpn: unable to connect android device unless I use nopass

Created on 2 Sep 2017  路  3Comments  路  Source: pivpn/pivpn

Installed without error, created a new cert called android with password 123456789
copied file to the device, used openvpn client, imported the file, attempted to run, when challenged for password, entered 123456789
I get an error
openvpn core error: polarssl: error parsing config private key: PKCS5- requested encryption or digest alg not available
If I create with nopass it works fine.
any help appreciated

Most helpful comment

I had the same problem, you have to convert the key encryption to a supported one. Run the following command on your .ovpn file:

openssl rsa -in <filename>.key -des3 -out <filename>.3des.key

Then replace the following part from your .ovpn file:

-----BEGIN ENCRYPTED PRIVATE KEY-----
<content>
-----END ENCRYPTED PRIVATE KEY-----

With the content from the new file:

-----BEGIN RSA PRIVATE KEY-----
<content>
-----END RSA PRIVATE KEY-----

And it should fix that error.

All 3 comments

I had the same problem, you have to convert the key encryption to a supported one. Run the following command on your .ovpn file:

openssl rsa -in <filename>.key -des3 -out <filename>.3des.key

Then replace the following part from your .ovpn file:

-----BEGIN ENCRYPTED PRIVATE KEY-----
<content>
-----END ENCRYPTED PRIVATE KEY-----

With the content from the new file:

-----BEGIN RSA PRIVATE KEY-----
<content>
-----END RSA PRIVATE KEY-----

And it should fix that error.

@ghost do you still have this issue??

please refer to issue #364
Closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andersonentwistle picture andersonentwistle  路  6Comments

kimbauters picture kimbauters  路  7Comments

jeffffc picture jeffffc  路  7Comments

burniej picture burniej  路  6Comments

Gunthervc picture Gunthervc  路  5Comments