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. Rotate this CA before it expires or whenever re-keying is required. 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 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 must be rotated.
Rotation Options
- Simple Rotation: one-pass rotation with a brief interruption (recommended).
- Staged Rotation: staged rollout with minimal downtime.
Perform a Simple Rotation
Use this method when a short downtime window is acceptable. During the simple rotation, the admin distributes (re-issues) client VPN files (.ovpn) once to all VPN users.Prerequisites
- Access to Settings > Configuration > Certificate Store on the 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.
Step 1: Prepare a New CA in Certificate Store
Open the Certificate Store
Add a certificate
Generate or upload the CA
- 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.
Save
Step 2: Add the New CA to UserVPN
Open UserVPN Settings
Start rotation
Prepare the new CA
Step 3: Verify User Attachments
Ensure all users are attached to their gateways or Load Balancers.Open the Users list
Confirm each user is attached
Step 4: Activate the New CA
Locate the prepared CA
Activate
- All previously issued UserVPN files become invalid. Client certificates signed by the old CA are revoked.
- All attached VPN users with an email configured automatically receive newly issued VPN files via email.
- For attached VPN users without an email configured, distribute the new VPN
files manually:
- Go to Cloud Fabric > UserVPN > Users.
- Download the client VPN file for each user without an email address:
- Select the user.
- Click the three-dot menu on the right side.
- Click Download Client Certificate.
- Distribute the downloaded client VPN files to the respective users through your own admin channel.
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.Step 6: Remove the Old CA
Locate the deactivated CA
Remove the old certificate
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
Open the Certificate Store
Add a certificate
Generate or upload the CA
- 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.
Save
Step 2: Add the New CA to UserVPN
Open UserVPN Settings
Start rotation
Prepare the new CA
Step 3: Verify User Attachments
Ensure all users are attached to their gateways or Load Balancers.Open the Users list
Confirm each user is attached
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:Open the Users list
Open the actions menu
Download the client VPN file
Distribute the file
Re-issue client certificates
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.Step 6: Activate the New CA
Open UserVPN Settings
Activate the prepared CA
- For attached VPN users with email addresses, go to **Cloud Fabric > UserVPN
Users** and click **Re-issue Client Certificate**. Each user receives a second email containing the newly issued client VPN file, whose embedded certificate is signed by the new CA.
- For attached VPN users without email addresses, repeat the manual distribution process from Step 4 to provide the second (post-activation) client VPN file through your admin channel.
- Both client VPN files (issued in Step 4 and after activation) remain valid until the old CA is removed. Any older client VPN files (issued before Step 4) are now invalid.
Step 7: Remove the Old CA
After confirming all users have installed the latest client VPN files, remove the old CA entry.Open UserVPN Settings
Remove the deactivated CA