Reset or change password

Scripts to manage certificates or generate config files

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
ACO79
OpenVpn Newbie
Posts: 1
Joined: Thu Dec 16, 2021 12:44 pm

Reset or change password

Post by ACO79 » Thu Dec 16, 2021 12:53 pm

Hello,
I am using an OPENVPN server under WINDOWS in version 2.4.3.
I created clients with password: build-key-pass Client.
Can you give me the procedure for changing passwords?
Thank you for your help

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Reset or change password

Post by TinCanTech » Thu Dec 16, 2021 4:53 pm

If you upgrade your server to version 2.5, you get Easy-RSA version 3, which has:

Code: Select all

 set-rsa-pass <filename_base> [ cmd-opts ]
  set-ec-pass <filename_base> [ cmd-opts ]
 
to change your passwords ..

You don't even need to upgrade your Openvpn server, you can download Easy-RSA3 from here:
https://github.com/OpenVPN/easy-rsa

And if you feel really adventurous then you could even try this:
https://github.com/TinCanTech/easy-tls

Or, you can try to decipher this command:

Code: Select all

easyrsa_openssl "$key_type" -in "$file" -out "$out_key_tmp" $crypto ${EASYRSA_PASSIN:+-passin "$EASYRSA_PASSIN"} ${EASYRSA_PASSOUT:+-passout "$EASYRSA_PASSOUT"}

Post Reply