CA Certificate Rotation of UserVPN
Overview
Aviatrix UserVPN uses a Certificate Authority (CA) to issue and manage the client and server certificates required for secure VPN authentication. When the Controller is first initialized, it creates a self-signed RSA CA with a 10-year validity period.
You should rotate this CA before it expires or whenever re-keying is required.
CA Rotation
CA rotation replaces the existing CA certificate and private key with new ones. Rotation includes re-keying, issuing a new CA certificate, and re-issuing UserVPN client and server certificates under the new CA.
This guide describes two UserVPN certificate lifecycle operations workflows: Simple Rotation and Staged Rotation.
When to Rotate the CA
Rotate the CA when:
-
The CA is approaching expiration
-
The active CA key is compromised or required to be rotated
| Rotating the CA invalidates previously issued UserVPN files. |
Rotation Options
-
Simple Rotation: one-pass rotation with brief interruption (Recommended)
-
Staged Rotation: staged rollout with minimal downtime
Simple Rotation
Use this method when a short downtime window is acceptable. During the simple rotation, the admin only needs to distribute (re-issue) client VPN files (.ovpn) once to all VPN users.
Prerequisites
-
Access to Settings > Configuration > Certificate Store on CoPilot UI
-
VPN users must be attached to their UserVPN gateway or Load Balancer
-
Ensure all VPN gateways are up and running before each step
Follow the steps below to perform a simple rotation:
Step 1: Prepare a New CA in Certificate Store
-
Go to Settings > Configuration > Certificate Store.
-
Click + Certificate.
-
Choose Generate Certificate or Upload Certificate. We recommend generating a new certificate.
-
For Generate Certificate (Recommended):
-
Enter a name for the new CA.
-
Select a validity period.
-
-
For Upload Certificate:
-
Enter a name for the new CA.
-
Upload the CA Certificate file in PEM format.
-
Upload the CA Private Key file in PEM format.
-
-
-
Click Add.
Step 2: Add the New CA to User VPN
-
Go to Cloud Fabric > UserVPN > Settings.
-
Click Rotate Certificate.
-
Select the new CA and click Prepare.
Step 3: Verify User Attachments
Ensure all users are attached to their gateways or Load Balancers.
-
Go to Cloud Fabric > UserVPN > Users.
-
For each user, ensure the VPN Gateway column is not set to Detached.
|
If any users are detached, they must be attached to a gateway or Load Balancer before proceeding with the rotation. |
Step 4: Activate the New CA
|
This step will take some time. Do not close the browser window, navigate to other pages, or refresh the page while this process is running. |
-
From Cloud Fabric > UserVPN > Settings, locate the newly Prepared CA entry in the listed Certificate table.
-
Click Activate.
|
After the new CA is activated:
|
Perform a Staged Rotation
Use this method for a controlled, low-downtime rotation. This workflow requires additional steps from both administrators and users because the client VPN files (.ovpn) must be distributed two times.
Step 1: Prepare a New CA in Certificate Store
-
Go to Settings > Configuration > Certificate Store.
-
Click + Certificate.
-
Choose Generate Certificate or Upload Certificate. We recommend generating a new certificate.
-
For Generate Certificate (Recommended):
-
Enter a name for the new CA.
-
Select a validity period.
-
-
For Upload Certificate:
-
Enter a name for the new CA.
-
Upload the CA Certificate file in PEM format.
-
Upload the CA Private Key file in PEM format.
-
-
-
Click Add.
Step 2: Add the New CA to UserVPN
-
Go to Cloud Fabric > UserVPN > Settings.
-
Click Rotate Certificate.
-
Select the new CA and click Prepare.
Step 3: Verify User Attachments
Ensure all users are attached to their gateways or Load Balancers.
-
Go to Cloud Fabric > UserVPN > Users.
-
For each user, ensure the VPN Gateway column is not set to Detached.
If any users are detached, they must be attached to a gateway or Load Balancer before proceeding with the rotation.
Step 4: Distribute New Client VPN Files to All Users
Before distributing new VPN files, ensure all users are attached to the correct VPN gateway or Load Balancer. Users who are detached will not receive the updated client VPN file.
For Users Without Email Addresses
-
From Cloud Fabric > UserVPN > Users, select the user.
-
Click the three-dot menu.
-
Click Download Client Certificate to save the file locally.
-
Distribute these VPN files to users using your preferred admin communication channel.
For Users With Email Addresses
-
From Cloud Fabric > UserVPN > Users, click Re-issue Client Certificate.
The system will send the re-issued VPN file to each user’s email inbox. This action does not revoke any certificates but adds both new and current CA certificates to the VPN file.
|
The re-issued files include both the old and new CA in the trust bundle, allowing a seamless transition for existing users. However, the embedded client certificate is still signed by the old CA. Users must install the second set of files (issued after the new CA is activated in Step 6) before the old CA can be safely removed in Step 7. |
Step 5: Notify Users to Install New VPN Files
Inform all VPN users to download and install the newly issued VPN files from the UserVPN portal.
| During this phase of the Staged Rotation, users can continue using their existing VPN connections. The new VPN files will become necessary after the CA is activated in the next step. |
Step 6: Activate the New CA
-
Go to Cloud Fabric > UserVPN > Settings.
-
Locate the Prepared CA entry in the Certificate table and click Activate.
|
After the activation, re-issue the client VPN files so that each user receives a client certificate signed by the new CA:
|
Step 7: Remove the Old CA
|
Before removing the old CA, confirm that all VPN users have installed the VPN files distributed after Step 6 (the second distribution). The VPN files issued in Step 4 (first distribution) contain a client certificate signed by the old CA — these profiles will stop working immediately when the old CA is removed. Users who only installed the Step 4 files will lose VPN connectivity. If any users have not installed the post-Step 6 files, re-send those files before proceeding. |
After confirming all users have installed the latest client VPN files, perform the following steps to remove the old CA entry.
-
Go to Cloud Fabric > UserVPN > Settings.
-
Locate the Deactivated CA entry and click Remove Old Certificate.
|
This step is critical for maintaining security. If you do not remove the old CA, users with previously issued client VPN files (signed by the old CA) may still be able to authenticate and connect. |
|
If any users report loss of connectivity after this step, they are still using the Step 4 profile. Re-issue their VPN file (it will be signed by the new CA) and have them reinstall it. |