Skip to content

nekorobi/selfcert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

selfcert

Test

  • Generate CA and server self certificates

selfcert.sh

  • This Bash script depends on openssl version 3.
  • ./selfcert.sh --help

readcert.sh

  • Specify the certificate PEM file

into-docker.sh

  • Set to a Docker volume|config|secret
  • ./into-docker.sh --help

Example

./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 subjectAltName
subject=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

MIT License

  • © 2024 Nekorobi

About

Generate CA and server self certificates

Topics

Resources

License

Stars

Watchers

Forks

Languages