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)
🔍 Discover Our Product Documentation

Barracuda Load Balancer ADC
Results will update as you type.
  • How to Update Your Notification Email Addresses
  • What's New in the Barracuda Load Balancer ADC
  • Deployment
  • Getting Started
  • Barracuda Load Balancer ADC Hardware Features
  • Application Deployment Guides
  • Barracuda Load Balancer ADC - REST API
  • Services
  • Access Control
  • Technical White Papers
  • Traffic Management
  • Logging
  • Global Server Load Balancing
  • Application Security
  • Networking
  • Certificate Management
    • How to Add an SSL Certificate
    • Installing SSL Certificates with Correct Chain Order
    • How to Pass Client Certificate Details to a Back-end Server
    • Allowing or Denying Client Certificates
    • Client Certificate Validation Using OCSP
    • Creating a Client Certificate
  • Monitoring
  • High Availability
  • System Administration and Maintenance
  • End of Support and End of Life Information
  • Critical Vulnerabilities

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    Creating a Client Certificate
    Published Oct 04, 2017

    Creating a Client Certificate

    Oct 04, 2017
    Subscribe

    Before creating a client certificate you should create a CA certificate which can be used as the root CA certificate to sign the client certificates.

    To create a CA certificate for the server designated as SSL CA server, perform the following steps:

    Step 1 - Generate a Private Key for the CA Certificate

    To generate a key for a CA certificate, run the following openssl command on your server:

    openssl genrsa 2048 > ca-key.pem

    This generates a private key “ca-key” in PEM format.

    Step 2 - Create a CA Certificate using the Private Key

    Use the private key generated in Step 1 to create the CA certificate for the server.
    The openssl command to generate a CA certificate is as follows:

    openssl req -new -x509 -nodes -days 1000 -key ca-key.pem > ca-cert.pem

     

    You will be prompted to provide certain information which will be entered into the certificate.
    See the example below:

    Country Name (2 letter code) [AU]: US
    State or Province Name (full name) [Some-State]: California
    Locality Name (eg, city) []: Campbell
    Organization Name (eg, company) [Internet Widgits Pty Ltd]: Barracuda Networks
    Organizational Unit Name (eg, section) []: Engineering
    Common Name (eg, YOUR name) []: barracuda.yourdomain.com
    Email Address []: test@myemail.com

     

    This creates the CA certificate with the values above. This certificate acts as a root CA certificate for authenticating the client certificates.

    Step 3 - Import the CA Certificate to the Barracuda Load Balancer ADC

    The created certificate needs to be uploaded in the BASIC > Certificates > Upload Trusted (CA) Certificate section.

    Step 4 - Enable Client Authentication on the Barracuda Load Balancer ADC

    To be able to use the CA certificate for validating client certificates, client authentication should first be enabled.

    Steps to enable client authentication:
    1. Go to the BASIC > Services page.

    2. In the Configured Virtual Services section, identify the service for which you want to enable client authentication.

    3. Click Edit next to the service. In the Service edit page, scroll down to the SSL section.

    4. Set Enable Client Authentication and Enforce Client Certificate to Yes.

    5. Select the check box(es) next to the Trusted Certificates parameter.

    6. Specify values for other parameters as required, and click Save Changes.

    Step 5 - Create a Client Certificate

    Create a client certificate. You can use the following example as a guide:

    openssl req -newkey rsa:2048 -days 1000 -nodes -keyout client-key1.pem > client-req.pem

    Generating a 2048 bit RSA private key writing new private key to 'client-key1.pem'
    ......................................................................................+++
    ..+++
    writing new private key to 'client-key1.pem'
    -----
    You are about to be asked to enter information that will be incorporated into your certificate request.
    What you are about to enter is what is called a Distinguished Name or a DN.
    There are quite a few fields but you can leave some blank
    For some fields there will be a default value,
    If you enter '.', the field will be left blank.
    -----
    Country Name (2 letter code) [AU]: US
    State or Province Name (full name) [Some-State]: California
    Locality Name (eg, city) []: Campbell
    Organization Name (eg, company) [Internet Widgits Pty Ltd]: Barracuda Networks
    Organizational Unit Name (eg, section) []: Tech Support
    Common Name (eg, YOUR name) []: barracuda.mydomain.com
    Email Address []: test@youremail.com

    Please enter the following 'extra' attributes to be sent with your certificate request
    A challenge password []: Secret123
    An optional company name []: -

     

    This creates the private key “client-key1.pem” in PEM format.

    Now, use the following example to create a client certificate that will be signed by the CA certificate created in Step 2.

    openssl x509 -req -in client-req.pem -days 1000 -CA ca-cert.pem -CAkey ca-key.pem -set_serial 01 > client-cert1.pem


    Signature ok
    subject=/C=US/ST=California/L=Campbell/O=Barracuda Networks/OU=Tech Support/CN=barracuda.mydomain.com/emailAddress=test@youremail.com
    Getting CA Private Key

    Step 6 - Converting PEM File to PKCS #12 Format

    Use the following command to convert the “client-cert1.pem” certificate along with “client-key1.pem” to a Personal Information Exchange file (pfx token).

    openssl pkcs12 -export -in client-cert1.pem -inkey client-key1.pem -out client-cert1.pfx


    Enter Export Password:secret
    Verifying - Enter Export Password: secret

    Step 7 - Import the Client Certificate to the Browser

    The client certificate created above should be sent to the client to be imported on their browser.


    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.

    {"serverDuration": 12, "requestCorrelationId": "41c8ed1ee58a4327b1906cc69af8f6a2"}