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.
    truststore_password
    Password required to access the keystore.
    keystore_password
    Password used to protect the private key of the key pair.
    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.
    keystore_password
    Password used to protect the private key of the key pair.

    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
The Brain Removes Unused Connections | Institute for Learning and Brain Sciences (I-LABS)
Do You Know The Foods That Are Good For Your Lungs? - PharmEasy Blog
Craigslist Livingston Montana
WALB Locker Room Report Week 5 2024
Worcester Weather Underground
Asist Liberty
Instructional Resources
13 Easy Ways to Get Level 99 in Every Skill on RuneScape (F2P)
Southeast Iowa Buy Sell Trade
Acts 16 Nkjv
Naturalization Ceremonies Can I Pick Up Citizenship Certificate Before Ceremony
Clairememory Scam
Jscc Jweb
Tcu Jaggaer
Ivegore Machete Mutolation
O'reilly's Auto Parts Closest To My Location
Dexter Gomovies
Carolina Aguilar Facebook
Zack Fairhurst Snapchat
Welcome to GradeBook
Masterkyngmash
Www.publicsurplus.com Motor Pool
Filthy Rich Boys (Rich Boys Of Burberry Prep #1) - C.M. Stunich [PDF] | Online Book Share
Gina Wilson Angle Addition Postulate
Mythical Escapee Of Crete
Ou Football Brainiacs
Vht Shortener
Penn State Service Management
HP PARTSURFER - spare part search portal
30+ useful Dutch apps for new expats in the Netherlands
Uncovering the Enigmatic Trish Stratus: From Net Worth to Personal Life
Greyson Alexander Thorn
Pnc Bank Routing Number Cincinnati
Breckie Hill Fapello
Workday Latech Edu
Eleceed Mangaowl
20+ Best Things To Do In Oceanside California
Bernie Platt, former Cherry Hill mayor and funeral home magnate, has died at 90
Pekin Soccer Tournament
Hkx File Compatibility Check Skyrim/Sse
Academic Calendar / Academics / Home
My Eschedule Greatpeople Me
Embry Riddle Prescott Academic Calendar
Hawkview Retreat Pa Cost
Port Huron Newspaper
Conan Exiles Colored Crystal
Arginina - co to jest, właściwości, zastosowanie oraz przeciwwskazania
Craigslist Pets Charleston Wv
Christie Ileto Wedding
Marine Forecast Sandy Hook To Manasquan Inlet
Gear Bicycle Sales Butler Pa
Latest Posts
Article information

Author: Trent Wehner

Last Updated:

Views: 6246

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Trent Wehner

Birthday: 1993-03-14

Address: 872 Kevin Squares, New Codyville, AK 01785-0416

Phone: +18698800304764

Job: Senior Farming Developer

Hobby: Paintball, Calligraphy, Hunting, Flying disc, Lapidary, Rafting, Inline skating

Introduction: My name is Trent Wehner, I am a talented, brainy, zealous, light, funny, gleaming, attractive person who loves writing and wants to share my knowledge and understanding with you.