Skip to content

Instantly share code, notes, and snippets.

@Suzhou65
Created September 17, 2020 09:17
Fix PolarSSL error

PolarSSL error

When you are using OpenVPN official iOS App, OpenVPN Connect, you may seen this error massage

PolarSSL: error parsing config private key : PKCS5 - Requested encryption or digest alg not available

How to Fix it

cd /etc/openvpn/easy-rsa
sudo ./easyrsa set-rsa-pass opvnuser

opvnuser replace to the client's name you add

sudo cat pki/private/opvnuser.key

opvnuser replace to the client's name you add

Find the chapter which start at this header:

BEGIN RSA PRIVATE KEY

Copy entirely chapter, including header and footer.

Editing client configuration file

cd /home/pi/ovpns
sudo vim opvnuser.opvn 

opvnuser replace to the client's name you add

Paste the chapter which you copied after this footer, including header and footer

END ENCRYPTED PRIVATE KEY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment