Skip to content

Instantly share code, notes, and snippets.

@hoakin28
hoakin28 / ca.md
Created December 27, 2019 00:58 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@hoakin28
hoakin28 / self-signed-certificate-with-custom-ca.md
Created December 27, 2019 00:57 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096