Skip to content

Instantly share code, notes, and snippets.

View noolua's full-sized avatar

noolua noolua

View GitHub Profile
@noolua
noolua / self-signed-certificate-with-custom-ca.md
Created August 10, 2021 07:31 — 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
#!/bin/sh
echo "SET timezone = 'Asia/Shanghai'"
sudo rm -f /etc/localtime
sudo ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime