Migration openvpn config

Scripts to manage certificates or generate config files

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

Post Reply
gusto
OpenVpn Newbie
Posts: 5
Joined: Wed Jan 27, 2021 8:56 am

Migration openvpn config

Post by gusto » Thu Dec 07, 2023 9:20 am

About 5 years ago I was using Debian 9 with openvpn 2.4.(0). Everything worked great.
2 years ago I installed Debian 10 + openvpn 2.4.7. I moved the configuration (/etc/openvpn/) from Debian 9 to Debian 10. Everything works great.
Now I'm going to install Debian 12. I want to move the configuration (/etc/openvpn/) from Debian 10 to Debian 12.
Will everything work?

Question 2
Now I still need to generate certificates for other clients, but it doesn't work.

Code: Select all

./build-key client91
Please edit the vars script to reflect your configuration,
then source it with "source ./vars".
Next, to start with a fresh PKI configuration and to delete any
previous certificates and keys, run "./clean-all".
Finally, you can run this tool (pkitool) to build certificates/keys.

Code: Select all

su root
cd /etc/openvpn/easy-rsa
chmod +x vars
 ./vars
NOTE: If you run ./clean-all, I will be doing a rm -rf on /etc/openvpn/easy-rsa/keys
Question 3
When I install Debian 12 + OpenVPN 2.6.3, will OpenVPN clients with version 2.3.2 be able to connect?

Post Reply