Example: SSL Certificate - Generate a Key and CSR (2024)

Important: This example is intended to provide general guidance to ITprofessionals who are experienced with SSL requirements and configuration. The procedure described in this article is just one of many available methods you can use to generate the required files. The process described here should be treated as an example and not as a recommendation.

When you configure Tableau Server to use Secure Sockets Layer (SSL) encryption, this helps ensure that access to the server is secure and that data sent between Tableau Server and Tableau Desktop is protected.

Looking for Tableau Server on Linux? See Example:SSLCertificate - Generate aKey and CSR(Link opens in a new window).

Tableau Server uses Apache, which includes OpenSSL(Link opens in a new window). You can use the OpenSSLtoolkit to generate a key file and Certificate Signing Request (CSR) which can then be used to obtain a signed SSLcertificate.

Note:Beginning in Tableau Server versions 2021.3.26, 2021.4.21, 2022.1.17, 2022.3.9, 2023.1.5, and later, Tableau Server runs OpenSSL 3.1.

Steps to generate a key and CSR

To configure Tableau Server to use SSL, you must have an SSL certificate. To obtain the SSLcertificate, complete the steps:

  1. Set the OpenSSL configuration environment variable (optional).
  2. Generate a key file.
  3. Create a Certificate Signing Request (CSR).
  4. Send the CSR to a certificate authority (CA) to obtain an SSLcertificate.
  5. Use the key and certificate to configure Tableau Server to use SSL.

You can find additional information on the SSL FAQ page(Link opens in a new window) on the Apache Software Foundation website.

Configure a certificate for multiple domain names

Tableau Server allows SSL for multiple domains. To set up this environment, you need to modify the OpenSSL configuration file, openssl.conf, and configure a Subject Alternative Name (SAN) certificate on Tableau Server. See For SAN certificates: modify the OpenSSL configuration file below.

Set the OpenSSL configuration environment variable (optional)

To avoid using the -config argument with every use of openssl.exe, you can use the OPENSSL_CONFenvironment variable to ensure that the correct configuration file is used and all configuration changes made in subsequent procedures in this article produce expected results (for example, you must set the environment variable to add a SANto your certificate).

Open the Command Prompt as an administrator, and run the following command:

set OPENSSL_CONF=c:\Program Files\Tableau\Tableau Server\packages\apache.<version_code>\conf\openssl.cnf

Note: When setting the Open SSL configuration environment variable, do not enclose the file path with quotation marks.

Generate a key

Generate a key file that you will use to generate a certificate signing request.

  1. Open the Command Prompt as an administrator, and navigate to the Apache directory for Tableau Server. For example, run the following command:

    cd C:\Program Files\Tableau\Tableau Server\packages\apache.<version_code>\bin

  2. Run the following command to create the key file:

    openssl.exe genrsa -out <yourcertname>.key 4096

    Notes:

    • This command uses a 4096-bit length for the key. You should choose a bit length that is at least 2048 bits because communication encrypted with a shorter bit length is less secure. If a value is not provided, 512 bits is used.
    • To create PKCS#1 RSA keys with Tableau Server versions 2021.3.26, 2021.4.21, 2022.1.17, 2022.3.9, 2023.1.5, and later, you must use the additional option -traditional when running openssl genrsa" command based on the OpenSSL 3.1. For more information about the option, see https://www.openssl.org/docs/man3.1/man1/openssl-rsa.html(Link opens in a new window).

Create a certificate signing request to send to a certificate authority

Use the key file you created in the procedure above to generate the certificate signing request (CSR). You send the CSR to a certificate authority (CA) to obtain a signed certificate.

Important: If you want to configure a SAN certificate to use SSL for multiple domains, first complete the steps in For SAN certificates: modify the OpenSSL configuration file below, and then return to here to generate a CSR.

  1. Run the following command to create a certificate signing request(CSR)file:

    openssl.exe req -new -key yourcertname.key -out yourcertname.csr

    If you did not set the OpenSSL configuration environment variable, OPENSSL_CONF, you might see either of the following messages:

    • An error message about the config information being unable to load. In this case, retype the command above with the following parameter: -config ..\conf\openssl.cnf.

    • A warning that the /usr/local/ssl directory cannot be found. This directory does not exist on Windows, and you can simply ignore this message. The file is created successfully.

    To set an OpenSSL configuration environment variable, see Set the OpenSSL configuration environment variable (optional) section in this article.

  2. When prompted, enter the required information.

    Note: For Common Name, type the Tableau Server name. The Tableau Server name is the URL that will be used to reach the Tableau Server. For example, if you reach Tableau Server by typing tableau.example.com in the address bar of your browser, then tableau.example.com is the common name. If the common name does not resolve to the server name, errors will occur when a browser or Tableau Desktop tries to connect to Tableau Server.

Send the CSR to a certificate authority to obtain an SSL certificate

Send the CSR to a commercial certificate authority (CA) to request the digital certificate. For information, see the Wikipedia article Certificate authority(Link opens in a new window) and any related articles that help you decide which CA to use.

Use the key and certificate to configure Tableau Server

When you have both the key and the certificate from the CA, you can configure Tableau Server to use SSL.For the steps, see Configure External SSL.

For SAN certificates: modify the OpenSSL configuration file

In a standard installation of OpenSSL, some features are not enabled by default. To use SSL with multiple domain names, before you generate the CSR, complete these steps to modify the openssl.cnf file.

  1. Open Windows Explorer and browse to the Apache conf folder for Tableau Server.

    For example: C:\Program Files\Tableau\Tableau Server\packages\apache.<version_code>\conf

  2. Open openssl.cnf in a text editor, and find the following line: req_extensions = v3_req

    This line might be commented out with a hash sign (#) at the beginning of the line.

    Example: SSL Certificate - Generate a Key and CSR (1)

    If the line is commented out, uncomment it by removing the # and space characters from the beginning of the line.

  3. Move to the [ v3_req ] section of the file. The first few lines contain the following text:

    # Extensions to add to a certificate request
    basicConstraints = CA:FALSE
    keyUsage = nonRepudiation, digitalSignature, keyEncipherment

    After the keyUsage line, insert the following line:

    subjectAltName = @alt_names

    If you’re creating a self-signed SAN certificate, do the following to give the certificate permission to sign the certificate:

    1. Add the cRLSign and keyCertSign to the keyUsage line so it looks like the following: keyUsage = nonRepudiation, digitalSignature, keyEncipherment, cRLSign, keyCertSign

    2. After the keyUsage line, add the following line: subjectAltName = @alt_names

  4. In the [alt_names] section, provide the domain names you want to use with SSL.

    DNS.1 = [domain1]
    DNS.2 = [domain2]
    DNS.3 = [etc]

    The following image shows the results highlighted, with placeholder text that you would replace with your domain names.

    Example: SSL Certificate - Generate a Key and CSR (2)

  5. Save and close the file.

  6. Complete the steps in Create a certificate signing request to send to a certificate authority section, above.

Additional information

If you prefer to use a different version of OpenSSL, you can download it from Open SSL for Windows(Link opens in a new window).

Example: SSL Certificate - Generate a Key and CSR (2024)

FAQs

How to generate CSR key for SSL certificate? ›

  1. Steps to generate a key and CSR.
  2. Configure a certificate for multiple domain names.
  3. Set the OpenSSL configuration environment variable (optional)
  4. Generate a key.
  5. Create a certificate signing request to send to a certificate authority.
  6. Send the CSR to a certificate authority to obtain an SSL certificate.

How to generate public key from SSL certificate? ›

To generate a public/private key file:
  1. Open puttygen.exe by double clicking on it: ...
  2. Click the Generate button, and move the mouse around to generate randomness: ...
  3. Use Conversions>Export OpenSSL key to export the private key as a “Traditional fortmat” OpenSSL SSH-2 file:

How to create a private key for an SSL certificate? ›

Generate Private Key in cPanel
  1. Login in to the Control Panel.
  2. Go to “SECURITY” section and click on “SSL/TLS”.
  3. Under “Private Key (KEY)”, click on the link, “Generate, view, upload, or delete your private keys”.
  4. Choose Key Size as “2048-bits” and type your domain name (i.e. – example. ...
  5. Click on “Generate” button.

How to create a crt and key file using OpenSSL? ›

Right-click the openssl.exe file and select Run as administrator. Enter the following command to begin generating a certificate and private key: req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey. key -out certificate.

What does a CSR look like? ›

A CSR certificate should include all of the information related to your business, like name, city, state, and country. Your email address, domain name, and any other domain names you want to secure with an SSL/TLS certificate.

How to generate a new SSL certificate? ›

Create an SSL Certificate in 5 Easy Steps
  1. Step 1: Generate the CSR for the SSL Certificate. ...
  2. Step 2: Purchase an SSL Certificate from the Desired Vendor. ...
  3. Step 3: Configure and Verify the SSL. ...
  4. Step 4: Complete Verification. ...
  5. Step 5: Download the SSL Certificate.
Sep 1, 2022

How to generate a public key? ›

To generate an SSH private/public key pair for your use, you can use the ssh-keygen command-line utility. You can run the ssh-keygen command from the command line to generate an SSH private/public key pair. If you are using Windows, by default you may not have access to the ssh-keygen command.

How to generate a key with OpenSSL? ›

Procedure
  1. Once installed, run the OpenSSL command prompt. Type openssl to start the application.
  2. To generate a new RSA private key, type: genrsa -out {path_to_pem_file} 2048. ...
  3. To generate a public key, type: rsa -pubout -in {path_private_pem} -out (path_public_pem)

How do I download a private key for SSL certificate? ›

Downloading the SSL Certificate and Private Key
  1. Go to Control Panel > System > Security > Certificate & Private Key.
  2. Click Download Certificate. The SSL certificate is downloaded.
  3. Click Download Private Key. The private key is downloaded.

What is the difference between CSR and private key? ›

The private key should be kept secret, while the public key is included in the CSR. Using your private key, you generate the CSR, which includes your public key and the necessary details required for the certificate, such as your domain and organization information.

How to combine CSR and private key? ›

​​​To concatenate your certificate with your private key:
  1. Generate CSR. openssl req -new -newkey rsa:2048 -nodes -keyout path:\server.key -out path:\server_csr.txt.
  2. Download the certificate with your chain from SCM (eg: my_certificate.cer)
  3. Concatenate the certificates with your private key:
Feb 11, 2020

Where is the private key stored when CSR is generated? ›

The private key will be located on the system or appliance the certificate signing request (CSR) was generated. On a Linux machine: The most common way to create a CSR is by using openssl commands. The commands used will generate the CSR and private key files wherever is designated, typically in the same folder.

How to generate CSR file for SSL certificate? ›

Click Tools and select Internet Information Services (IIS) Manager. In the Connections tab, click the server name for which you want to generate the CSR. Double-click Server Certificates. Click on the Actions tab and then click Create Certificate Request....

How to generate CSR and private key in Windows? ›

To generate a Certificate Signing Request (CSR) via a MMC certificate snap-in using Microsoft Windows, perform the following steps.
  1. From Microsoft Windows, click Start.
  2. Run > certmgr.msc.
  3. On the certificate manager snap in > right click the Personal folder.
  4. Select All Tasks > Advanced Operations > Create Custom Request.

How to generate certificate and key in OpenSSL Windows? ›

In Windows:
  1. Open the Command Prompt (Start > Programs > Accessories > Command Prompt).
  2. Navigate to the following folder: C:\Program Files\ListManager\tclweb\bin\certs.
  3. Type the following: openssl genrsa -out rsa.private 1024.
  4. Press ENTER. The private key is generated and saved in a file named "rsa.

What is CSR and how to generate it? ›

A CSR (Certificate Signing Request) is a specially formatted encrypted message sent from a Secure Sockets Layer (SSL) digital certificate applicant to a certificate authority (CA). The CSR validates the information the CA requires to issue a certificate.

How to generate CSR from keystore? ›

  1. Java Keytool - Generate CSR. Introduction. ...
  2. Generate a keystore: A keypair must first exist in order to generate a CSR. ...
  3. Generate a CSR: keytool -certreq -alias mydomain -keystore KeyStore.jks -file mydomain.csr.
Feb 19, 2024

How to generate CSR for SSL certificate in Windows without IIS? ›

CSR generation in MMC (Microsoft Management Console)

Open the Certificates snap-in in MMC by following these steps: Win+R >> mmc.exe >> OK >> File >> Add/Remove Snap-in >> Certificates >> Add >> Computer account >> Next >> Local computer >> Finish >> OK.

How to generate CSR for certificate renewal? ›

See Renewal FAQ below for more information.
  1. STEP 1: Generate CSR. To renew an SSL/TLS certificate, you'll need to generate a new CSR. ...
  2. STEP 2: Sign in to your CertCentral account.
  3. STEP 3: Fill out the renewal form. ...
  4. STEP 4: DigiCert issues the SSL/TLS certificate. ...
  5. Step 5: Install your renewed SSL/TLS certificate.

Top Articles
How to activate and use your prepaid virtual card
Your Cheat Sheet to the Most and Least Sustainable Yarns — New Wave Knitting
Craigslist St. Paul
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Compare Foods Wilson Nc
Using GPT for translation: How to get the best outcomes
Http://N14.Ultipro.com
Wellcare Dual Align 129 (HMO D-SNP) - Hearing Aid Benefits | FreeHearingTest.org
Blackstone Launchpad Ucf
Craigslist - Pets for Sale or Adoption in Zeeland, MI
Roblox Character Added
Hallelu-JaH - Psalm 119 - inleiding
Ladyva Is She Married
Pro Groom Prices – The Pet Centre
Nebraska Furniture Tables
Mile Split Fl
Bnsf.com/Workforce Hub
Tamilrockers Movies 2023 Download
Wal-Mart 140 Supercenter Products
Nesz_R Tanjiro
Conan Exiles: Nahrung und Trinken finden und herstellen
Schedule 360 Albertsons
Hellraiser 3 Parents Guide
Blackboard Login Pjc
Costco Jobs San Diego
Login.castlebranch.com
The Goonies Showtimes Near Marcus Rosemount Cinema
Taylored Services Hardeeville Sc
Craigs List Tallahassee
Napa Autocare Locator
Restaurants Near Calvary Cemetery
Current Time In Maryland
Salons Open Near Me Today
Selfservice Bright Lending
Top-ranked Wisconsin beats Marquette in front of record volleyball crowd at Fiserv Forum. What we learned.
Hindilinks4U Bollywood Action Movies
Walgreens Agrees to Pay $106.8M to Resolve Allegations It Billed the Government for Prescriptions Never Dispensed
Ticket To Paradise Showtimes Near Marshall 6 Theatre
Weather Underground Bonita Springs
2020 Can-Am DS 90 X Vs 2020 Honda TRX90X: By the Numbers
Craigslist Mexicali Cars And Trucks - By Owner
Tryst Houston Tx
Other Places to Get Your Steps - Walk Cabarrus
Arigreyfr
Citibank Branch Locations In North Carolina
Catchvideo Chrome Extension
Lyons Hr Prism Login
La Qua Brothers Funeral Home
Keci News
A Man Called Otto Showtimes Near Cinemark Greeley Mall
Diccionario De Los Sueños Misabueso
Coors Field Seats In The Shade
Latest Posts
Article information

Author: Reed Wilderman

Last Updated:

Views: 5999

Rating: 4.1 / 5 (52 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Reed Wilderman

Birthday: 1992-06-14

Address: 998 Estell Village, Lake Oscarberg, SD 48713-6877

Phone: +21813267449721

Job: Technology Engineer

Hobby: Swimming, Do it yourself, Beekeeping, Lapidary, Cosplaying, Hiking, Graffiti

Introduction: My name is Reed Wilderman, I am a faithful, bright, lucky, adventurous, lively, rich, vast person who loves writing and wants to share my knowledge and understanding with you.