In case you want to change the hostname of your VPN server, you need to follow these steps:
/etc/vpn-server-api/config.phpto make sure
hostName(in all profiles) points to the correct name.
We assume you want to rename from
Please adapt the hostname as appropriate.
$ sudo hostnamectl set-hostname vpn.example.com
Make sure the new hostname has an A (and AAAA) record to your VPN server IPs.
When your DNS is correct you can use Let's Encrypt to obtain new certificates, or manually obtain them from your CA and install them.
/etc/httpd/conf.d/vpn.example.com.conf. Replace all occurences of
vpn.example.com in the file.
/etc/vpn-server-api/config.php and look at all
hostName entries and
change them to the new hostname.
$ sudo vpn-maint-apply-changes
Reboot your system to make sure everything comes back correctly. All should be done now!