Skip to content

flederwiesel/mkcert

Repository files navigation

mkcert-ca-complete.sh

Completely sets up your root/intermediate CA and issues one or more user certificates based on the values found in mkcert-ca-complete.conf.json.

     --genpkey=ca-root,ca-intermediate,name Force creation of private key before certificate creation. Add CA name to arguments accordingly.
  -h --help
  -p --prefix                               ... of ssldir (which defaults to ./etc/ssl).
  -v --verbose

Environment variables

ssldir=.

Exit Codes

  • 1 Invalid parameter
  • 2 File not found
  • 3 No CA certificate found. Re-run with --ca-root/--ca-intermediate to create.
  • 10 Creating private key failed
  • 11 Creating CSR failed
  • 12 Creating Certificate failed
  • 13 Certificate verification failed
  • 14 Creating CRL failed

mkcert-ca-complete.conf.json

Configuration file containing an array of entity objects identified by "name".

Each object must contain

  • "subject" - certificate DN
  • "altnames" - certificate subject alternative names, colon-separated
  • "password"
  • "dir" - location of the files to be created (below --ssldir)

Currently, there are only two CAs of known names according to mkcert-ca-complete.sh options:

  • { "name": "ca-root" }
  • { "name": "ca-intermediate" }

Environment variables

ssldir=.

Exit Codes

  • 1 Invalid parameter
  • 2 File exists
  • 11 Creating private key (or removing passphrase from it) failed
  • 12 Creating CSR failed
  • 13 Creating Certificate (self-signed or from CSR) failed
  • 14 Creating certificate chain failed
  • 15 Creating CRL failed

About

Create a SSL certificate (chain) easily

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages