20. 20
使⽤Openssl創建⼀個根憑證(RootCA)公/私鑰
# Generate a CA private key
openssl genrsa -out rootCA.key 2048
Generating RSA private key, 2048 bit long modulus
.....................................+++++
........................................................+++++
e is 65537 (0x10001)
# Generate a CA public key
openssl req -x509 -new -nodes -key rootCA.key -subj "/CN=example.com" -out rootCA.crt