Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
How to Create Certificates for a Client-to-Site VPN
Updated Jan 08

How to Create Certificates for a Client-to-Site VPN

Jan 08, 2026
Subscribe

Client-to-site VPNs need X.509 certificates to authenticate.

Follow the instructions in this article to create a server and client certificate with XCA for use with a client-to-site IPsec VPN.

Before You Begin

Create and export a root certificate in PEM format. For instructions, see How to Create Certificates with XCA.

Step 1. Create a Server Certificate

To create the server certificate:

  1. In XCA, click the Certificate signing requests tab, and then click New Request. The Create Certificate Signing Request window opens.

  2. Configure the identifying information.

    1. Click the Subject tab.

    2. Configure the settings in the Distinguished name section.

    3. Click Generate a new key.

    4. In the New Key window, enter a name for the certificate, select a key size, and then click Create.

  3. Configure the X.509 extensions.

    1. Click the Extensions tab.

    2. From the Type list, select Not defined.

    3. (Optional) Modify the Validity dates for the certificate.

    4. In the subject alternative name field, enter DNS:vpn.yourdomain.com. The hostname must resolve to the IP address that the VPN service is listening on.

      As an alternative, iOS also supports the use of wildcards in the subject alternative name: DNS:*

  4. Configure the key usage.

    1. Click the Key usage tab.

    2. From the left pane, select the following options:

      • Digital Signature

      • Key Agreement

      • Certificate Sign

  5. Click OK to create the certificate. It then appears under the Certificate signing requests tab with a Signed status of Unhandled. 

     

Step 2. Sign the Server Certificate

To sign the server certificate:

  1. Click the Certificate signing requests tab.

  2. Right-click the server certificate and then click Sign. The Create x509 Certificate window opens.

  3. In the Signing section under the Source tab, select Use this Certificate for signing and then select the root certificate from the drop-down menu.

  4. Click OK to sign the certificate. It then appears under the Certificate signing requests tab with the status of Signed.

Step 3. Create a Client Certificate

To create a client certificate:

  1. Click the Certificate signing requests tab, and then click New Request. The Create Certificate Signing Request window opens.

  2. Configure the identifying information.

    1. Click the Subject tab.

    2. Configure the settings in the Distinguished name section.

    3. Click Generate a new key.

    4. In the New Key window, enter a name for the certificate, select a key size, and then click Create.

  3. Configure the X.509 extensions.

    1. Click the Key usage tab.

    2. From the left pane, select Digital Signature.

    3. From the right pane, select TLS Web Client Authentication.

  4. Click OK to create the certificate. It then appears under the Certificate signing requests tab with a Signed status of Unhandled.

Step 4. Sign the Client Certificate

To sign the client certificate:

  1. Click the Certificate signing requests tab.

  2. Right-click the client certificate and then click Sign. The Create x509 Certificate window opens.

  3. In the Signing section under the Source tab, select Use this Certificate for signing and then select the root certificate from the drop-down menu.

  4. Click OK to sign the certificate. It then appears under the Certificate signing requests tab with the status of Signed.

Step 5. Export the Client and Server Certificates

You must export the client and server certificates as PKCS#12 files.

  1. Click the Certificates tab.

  2. Select the certificate that you want to export and then click Export.

  3. In the Certificate Export window, select PKCS #12 from the Export Format list and then click OK.

Next Steps

You can import the certificates on the Barracuda CloudGen Firewall and clients that need X.509 certificates. For Windows clients, you can use an Active Directory Policy to distribute the certificates automatically. On iOS and Android, certificates must be imported manually or by the Mobile Device Management platform.

The following table lists the certificates that are required on each appliance or device:

Appliance or Device

Required Certificates

Barracuda CloudGen Firewall

  • Root certificate

  • Server certificate

Client

Client certificate


We value your feedback.
If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
For general product inquiries or technical support, please contact the global Barracuda Support team.

🔍 Discover Our Product Documentation

Reference
Results will update as you type.
  • What's New in Barracuda Campus
  • New Google/Yahoo Bulk Sender Requirements
  • Release Notes by Product
  • Barracuda Networks Appliance Quick Start Guides
  • Using Barracuda Campus
  • Contacting Barracuda Networks Technical Support
  • License Definitions - Email Protection Products
  • Serial Number for Hardware and Virtual Appliances
  • License or Trial Expiration for Barracuda Networks Email Protection
  • Activate and Update Barracuda Networks Products
  • Recommended Configuration Settings for Barracuda Networks Cloud Products
  • Using Third-Party Security Awareness Training with Barracuda Products
  • Hardware Support
  • Security for Integrating with Other Systems - Best Practices
  • Enhancements to Barracuda Advanced Threat Protection
  • Understanding Advanced Threat Protection Reports
  • Virtual Deployment Management
  • Cloud Deployment Management
  • Barracuda Central Operations Center
  • Barracuda Networks Reference MIB
  • Regular Expressions
  • Barracuda DC Agent for User Authentication
  • Barracuda Terminal Server Agent
  • How to Create Certificates with XCA
    • How to Create Certificates for a Client-to-Site VPN
    • How to Create Certificates for the SIP Proxy
    • How to Create SSL Certificates
  • Web Security Solutions
  • Security Updates Available for Certain Barracuda Products

    You‘re viewing this with anonymous access, so some content might be blocked.
    {"serverDuration": 12, "requestCorrelationId": "a293f8ee11454231836e3a0320e2fbb6"}