Generate VPN Authentication Certificates Using XCA
Skyhigh Private Access requires secure certificate management to establish trusted connections for user authentication. You can use the XCertificate and Key management (XCA) tool (version 2.9.0) to generate the necessary certificate infrastructure for your environment.
This process involves generating two types of certificates:
- Root CA Certificate: You upload this certificate directly to your Skyhigh Security Cloud tenant interface. This deployment allows the Private Access Gateway to verify and trust all user certificates issued by this Certificate Authority (CA).
- User Certificate: You export this certificate as a
.p12file and install it on client devices (such as iOS or Android). The Skyhigh Security Client uses this certificate to authenticate users and establish a secure Private Access connection.
Before You Begin
Ensure that you:
- Install XCA version 2.9.0
- Have permission to create and manage certificates
- Securely store exported certificate files and passwords
Create a Root CA Certificate
The administrator configures a Root CA certificate to act as the trust anchor for user authentication.
- Open the XCA tool.
- Go to File > New Database to create a new database.

- Enter and confirm a password for the database.
Ignore any warnings related to the encryption algorithm.

- Select the Certificates tab, then click New Certificate.

- In the Create x509 Certificate window, under the Source tab:
- Set Signing to
Create a self signed certificate - Set Signature algorithm to
SHA384 - Set Template for the new certificate to
[default] CA - Click Apply Extensions
- Click Apply Subject

- Set Signing to
- Go to the Subject tab.
- Configure the certificate subject details: Replace <customer_name> with a suitable name.
- Enter an Internal Name
- Enter a Common Name

- Click Generate a new key and configure the following settings:
- Key type:
RSA - Key size:
4096 bit
- Key type:
- Click Create, then click OK after the key generation completes.


- Open the Extensions tab and configure the following settings:
- Uncheck X509v3 Authority Key Identifier checkbox
- Keep X509v3 Subject Key Identifier selected
- Retain all remaining default settings

- Open the Key Usage tab and select Certificate Sign and CRL sign under X509v3 Key Usage on the left side panel, and retain all other settings as they are.

- Open the Netscape tab and perform the following actions:
- Clear all selected options
- Remove any auto-populated entries
- Retain all remaining default settings

- Open the Advanced tab and click OK.

- When the success message appears, click OK to create the Root CA certificate.
Create the User Certificate
- In the XCA tool, select the previously created Root CA certificate.
- Click New Certificate.

- In the Create x509 Certificate window, under the Source tab:
- Set Signing to
Use this Certificate for signing - Select the previously created Root CA certificate
- Set Signature algorithm to
SHA384 - Set Template for the new certificate to
[default] TLS_client - Click Apply Extensions
- Click Apply Subject

- Set Signing to
- Open the Subject tab.
- Configure the following fields:
-
- Internal Name
- Common Name
Use the username or device identifier that requires VPN access.

- Click Generate a new key and configure the following settings:
- Key size:
4096 bit
- Key size:
- Click Create, then click OK after the key generation completes.


- Open the Extensions tab and configure the following settings:
- Set X509v3 Basic Constraints to
Not defined - Clear the Critical option
- Select only X509v3 Authority Key Identifier.

- Set X509v3 Basic Constraints to
-
In the X509v3 Subject Alternative Name section:
- Click Edit
- Select Copy Common Name
- Click Apply
Ensure that
DNS:copycnappears in the Subject Alternative Name field.

- Open the Key Usage tab and retain all the settings as shown in the image.

-
Open the Netscape tab.
Clear any automatically selected options and retain the remaining default settings.

- Open the Advanced tab and click OK to create the user certificate.


The User certificate will appear on the dashboard.

Export the Root CA Certificate
- Select the Root CA certificate.
- Click Export.

- Choose the export location.
-
Set the export format to:
PEM + Key (*.pem) - Click OK to export the certificate.

Export the User Certificate
- Select the user certificate.
- Click Export.

- Choose the export location.
-
Set the export format to:
PEM + Key (*.pem) - Click OK to export the certificate.

Export the PKCS #12 Certificate
- Select the user certificate.
- Click Export.

- Choose the export location.
-
Set the export format to:
PKCS #12 chain (*.pfx)
- Click OK.

-
When prompted, configure a password for the PKCS #12 file.
Store the password securely because it is required during certificate import on client devices.

Verify the Exported Certificate Files
- Open the exported Root CA certificate and user certificate files in a text editor.


NOTE: Rename the user_name.pfx file to user_name.p12 to change the file extension from .pfx to .p12. The client uses the .p12 file format for certificate import and authentication.
- Verify that the certificate files do not contain unnecessary RSA private key header information.

- Ensure that only the required certificate content remains before importing the certificates into the deployment environment.
