Skip to content

Generate CA and server certificates for your development environment.

Notifications You must be signed in to change notification settings

Ioni14/self-certificate-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Self Certificate Generator

Provide simple way to generate a CA and server certificates for development purposes.

Examples :

self-certificate-generator --gen-ca --server-domains=example.com

generates a CA (ca.cert.pem, ca.key.pem) + server certificate for example.com (server.cert.pem, server.key.pem) with a random serial number.


self-certificate-generator --server-cert=./example.cert.pem --server-key=./example.key.pem --server-domains=example.com

generates a server certificate for example.com and sign it with the default CA (ca.cert.pem, ca.key.pem). Overwrites example.cert.pem and example.key.pem files.


CA_KEY_PASSWORD=mypassword self-certificate-generator --ca-cert=./my-ca.cert.pem --ca-key=./my-ca.key.pem --server-cert=./example.cert.pem --server-key=./example.key.pem --server-cert-serial=150 --server-domains="example.com,*.example.com,*.test.example.com"

A full example that generates a new server certificate for example.com and sub-domains. Use CA_KEY_PASSWORD for decrypting the my-ca.key.pem to sign the server certificate. Finally, sets its serial number to 150 (by default sets to a big random number).

About

Generate CA and server certificates for your development environment.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages