Skip to content

jvanjankumar/ssl-and-tls-secret-kubernetes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

ssl-and-tls-secret-kubernetes

Self Signed Certificate

A self-signed SSL certificate is an SSL Certificate that is issued by the person creating it rather than a trusted certificate authority. This can be good for testing environments.

Step 1: Generate a CA private key

openssl genrsa -out ca.key 2048

Step 2: Create a self-signed certificate, valid for 365 days

openssl req -x509 \
  -new -nodes  \
  -days 365 \
  -key ca.key \
  -out ca.crt \
  -subj "/CN=*.awsdevopstrainer.com"

Step 3: Now, create the tls secret using the kubectl command or using the yaml definition

kubectl create secret tls nginx-tls-secret \
--key ca.key \
--cert ca.crt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published