Public Key Infrastructure (PKI) Setup & Usage
This page describes how to set up your SSH keys which are used to authenticate with code repositories to contribute code or with remote machines to deploy software
Create an SSH key-pair
ssh-keygen -t rsa -b 4096 -f ./id_rsa -q -N "";Create a certificate authority (CA)
openssl genrsa -out ./cakey.pem 4096;
openssl req -new -x509 -sha256 \
-key ./cakey.pem \
-days 3650 \
-extensions v3_ca \
-subj "/C=SG/ST=Singapore/L=Singapore/O=zephinzer/OU=example/CN=testdomain.com" \
-out ./cacert.pem;Create a certificate signing request (CSR)
openssl req -new -sha256 \
-key ./ssl/test.pem \
-subj "/C=SG/ST=Singapore/L=Singapore/O=zephinzer-demo/OU=helm/CN=helmuser" \
-out ./ssl/test.csr;Create a signed client certificate
Create an SSL key
Last updated