Slice: Certificate Authority (CA) Setup — Ready for MariaDB

Objective: Provision a temporary private Root CA on issuing-ca-0, generate its signing credentials, and leave it ready to process certificate requests from the MariaDB team.

Host: GT Host — issuing-ca-0
Prerequisite: Linux server with OpenSSL installed.

1. Create the CA directory structure

sudo mkdir -p /opt/pki/{private,certs,csr,issued}

sudo chmod 700 /opt/pki/private

cd /opt/pki

2. Generate the Root CA private key

sudo openssl genpkey \

  -algorithm RSA \

  -pkeyopt rsa_keygen_bits:4096 \

  -aes-256-cbc \

  -out private/root-ca.key

sudo chmod 600 private/root-ca.key

OpenSSL prompts for a passphrase. Store it securely.

3. Generate the self-signed Root CA certificate

sudo openssl req \

  -new -x509 \

  -sha256 \

  -days 365 \

  -key private/root-ca.key \

  -out certs/root-ca.crt \

  -subj “/O=GT Host Lab/CN=GT Host Lab Root CA” \

  -addext “basicConstraints=critical,CA:TRUE,pathlen:0” \

  -addext “keyUsage=critical,keyCertSign,cRLSign”

4. Verify the Root CA

sudo openssl x509 \

  -in certs/root-ca.crt \

  -noout -subject -issuer -dates

sudo openssl verify \

  -CAfile certs/root-ca.crt \

  certs/root-ca.crt

Expected verification result:

certs/root-ca.crt: OK

5. Confirm CA readiness

FilePurposeHandling
private/root-ca.keyCA private signing keyNever distribute
certs/root-ca.crtPublic Root CA certificateAvailable to MariaDB team
csr/Incoming certificate requestsAwaiting CSRs
issued/Signed certificatesAwaiting issuance

Handoff status: CA ready

The CA is now ready for the MariaDB team to submit its server CSR.

When received, the CA administrator will validate the request, sign it with root-ca.key, and return the issued server certificate together with the public Root CA certificate.

No MariaDB installation, configuration, or access is required to complete this slice.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *