Creating local SSL certificate and keystore files (2024)

Table of Contents
Prerequisites Procedure

For each node in the cluster, create a keystore, key pair, and certificate signing request using the FQDN of the node.

For each node in the cluster, create a keystore, key pair, and certificate signing request using the Fully Qualified Domain Name (FQDN) of the node.

Note: These steps are required even when using a third-party CA, or when adding a node to an existing DSE environment with SSL enabled.

Prerequisites

On each node, run the following command to obtain the FQDN for each node:
nslookup $(hostname --fqdn) && hostname --fqdn && hostname -i
Server: 10.200.1.10Address: 10.200.1.10#53Name: ip-10-200-182-183.example.comAddress: 10.200.182.183ip-10-200-182-183.example.com10.200.182.183

In this example, ip-10-200-182-183.example.com is the Common Name (CN), which is used to generate the SSL certificate. The CN must match the DNS resolvable host name. Mismatches between the CN and node hostname cause an exception and the connection is refused.

Procedure

  1. Create a directory to store the keystores and change to the directory:
    mkdir -p dse/keystores
    cd dse/keystores
  2. For each node, generate a keystore with key pair. Each node will have its own keystore, such as node1-keystore.jks:

    Important: Ensure the passwords entered for truststore_password and keystore_password are the same. If the passwords are different, DSE fails to start and returns an error message: Cannot recover key.

    keytool -genkeypair -keyalg RSA \-alias node_name \-keystore node-keystore.jks \-storepass truststore_password \-keypass keystore_password \-validity 730 \-keysize 2048 \-dname "CN=node_name, OU=cluster_name, O=org_name, C=CC" \-ext "san=ip:node_ip_address"

    Note: The -validity option specifies how long the generated key pair for the node is valid for. In the previous example the key pair is valid for 730 days, which is approximately 2 years.

    node_name
    Fully Qualified Domain Name (FQDN) of the node, such as ip-10-200-182-183.example.com. If using the FQDN as the node_name, you can add the IP address as a subject alternative name (SAN) so that the certificate protects the IP address in addition to the domain name.
    node-keystore.jks
    Keystore for the individual node.

    Default: none

    truststore_password
    Password required to access the keystore.

    Default: none

    keystore_password
    Password used to protect the private key of the key pair.

    Default: none

    cluster_name
    Name of your DataStax Enterprise (DSE) cluster.
    org_name
    Name of your organization.
    CC
    Two letter country code, such as US for United States or JP for Japan. See Nations Online for a complete list of country codes.
    node_ip_address
    If using the domain name as the node_name for the CA, add san=ip:ip_address to the -ext option. Using the IP address as a subject alternative name (SAN) ensures that the certificate protects the IP address in addition to the domain name. For example:
    -ext "san=ip:10.200.100.52"
  3. Verify each SSL keystore and key pair:
    keytool -list \-keystore node-keystore.jks \-storepass truststore_password

    The command output indicates the keystore type, provider, and number of entries. The alias used the example is dc1_node1.

    Keystore type: JKSKeystore provider: SUNYour keystore contains 1 entrydc1_node1, Jul 23, 2019, PrivateKeyEntry,Certificate fingerprint (SHA1): SHA1_hash
  4. Generate a signing request from each keystore:
    keytool -keystore node-keystore.jks \-alias node_name \-certreq -file signing_request.csr \-keypass node-key_password \-storepass keystore_password
    node-key_password
    Password used to protect the individual private key.

    Default: none

    keystore_password
    Password used to protect the private key of the key pair.

    Default: none

    The certificate signing request file (signing_request.csr) is created.

  5. Repeat the previous steps on each node to generate a signing request, ensuring that the dname information matches the node information (such as node_name and cluster_name).
Creating local SSL certificate and keystore files (2024)
Top Articles
Binance - Documentation QuantConnect.com
How to Troubleshoot Network Adapter Problems in Windows? | FS Community
The Tribes and Castes of the Central Provinces of India, Volume 3
Warren Ohio Craigslist
His Lost Lycan Luna Chapter 5
Overzicht reviews voor 2Cheap.nl
Kagtwt
Tamilblasters 2023
Housing Intranet Unt
Detroit Lions 50 50
Samsung Galaxy S24 Ultra Negru dual-sim, 256 GB, 12 GB RAM - Telefon mobil la pret avantajos - Abonament - In rate | Digi Romania S.A.
How to find cash from balance sheet?
fort smith farm & garden - craigslist
Price Of Gas At Sam's
Troy Bilt Mower Carburetor Diagram
Iu Spring Break 2024
St Maries Idaho Craigslist
FDA Approves Arcutis’ ZORYVE® (roflumilast) Topical Foam, 0.3% for the Treatment of Seborrheic Dermatitis in Individuals Aged 9 Years and Older - Arcutis Biotherapeutics
Ppm Claims Amynta
Ups Drop Off Newton Ks
Victory for Belron® company Carglass® Germany and ATU as European Court of Justice defends a fair and level playing field in the automotive aftermarket
Wonder Film Wiki
Fuse Box Diagram Honda Accord (2013-2017)
They Cloned Tyrone Showtimes Near Showbiz Cinemas - Kingwood
Mami No 1 Ott
Kuttymovies. Com
Mawal Gameroom Download
Darktide Terrifying Barrage
ATM, 3813 N Woodlawn Blvd, Wichita, KS 67220, US - MapQuest
Inmate Search Disclaimer – Sheriff
Vlocity Clm
3 Bedroom 1 Bath House For Sale
2024 Coachella Predictions
Tamilrockers Movies 2023 Download
De beste uitvaartdiensten die goede rituele diensten aanbieden voor de laatste rituelen
Lake Dunson Robertson Funeral Home Lagrange Georgia Obituary
Mistress Elizabeth Nyc
The best Verizon phones for 2024
Shih Tzu dogs for sale in Ireland
World History Kazwire
Craigslist List Albuquerque: Your Ultimate Guide to Buying, Selling, and Finding Everything - First Republic Craigslist
Nina Flowers
Linkbuilding uitbesteden
Southwest Airlines Departures Atlanta
Online-Reservierungen - Booqable Vermietungssoftware
Large Pawn Shops Near Me
Stitch And Angel Tattoo Black And White
Crigslist Tucson
Bedbathandbeyond Flemington Nj
Who Is Nina Yankovic? Daughter of Musician Weird Al Yankovic
Cheryl Mchenry Retirement
Latest Posts
Article information

Author: Golda Nolan II

Last Updated:

Views: 6736

Rating: 4.8 / 5 (58 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Golda Nolan II

Birthday: 1998-05-14

Address: Suite 369 9754 Roberts Pines, West Benitaburgh, NM 69180-7958

Phone: +522993866487

Job: Sales Executive

Hobby: Worldbuilding, Shopping, Quilting, Cooking, Homebrewing, Leather crafting, Pet

Introduction: My name is Golda Nolan II, I am a thoughtful, clever, cute, jolly, brave, powerful, splendid person who loves writing and wants to share my knowledge and understanding with you.