The way it would work is:
- Create the required certificates and store this somewhere for automated deployment
- Create a script to deploy the VPN Gateway using the existing certificate
- Deploy the VPN Gateway via script on a schedule (for example every day at 8:00 AM)
- Delete the VPN Gateway via script on a schedule (for example at 6:00 PM)
Repeat steps 3 - 4
As long as you are using the same certificate and public IP of the VPN Gateway it should work without modifications on the client.
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten