- Generate CA and server self certificates
- This Bash script depends on openssl version 3.
./selfcert.sh --help
- Specify the certificate PEM file
- Set to a Docker volume|config|secret
./into-docker.sh --help
./selfcert.sh --bit 3072 --day 365 --cn 'my CA' \
--directory ./pem example.org www. api. example.net mail.
# First argument: PEM
# From the second: LESS="+/Certificate Output Options" man openssl-x509
./readcert.sh ./pem/example.org/cert.pem -subject -issuer -ext subjectAltNamesubject=CN = example.org
issuer=O = CA, CN = my CA
X509v3 Subject Alternative Name:
DNS:example.org, DNS:www.example.org, DNS:api.example.org, DNS:example.net, DNS:mail.example.net
- © 2024 Nekorobi