Skip to content

Instantly share code, notes, and snippets.

@drmason13
drmason13 / self-signed-certificate-with-custom-ca.md
Last active April 9, 2021 14:30 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Attention: rootCA.key 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! You should encrypt it with a password

In one line

openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout rootCA.key -out rootCA.cert