Certgen is a tool for generating self signed client and server certificates.
Installation
Once you have installed Go, run these commands to install the certgen package.
go get gitlab.com/sorenmat/certgen
Running certgen
certgen -hosts 127.0.0.1,example.com
NAME:
certgen - Utility for generating client / server certificates
USAGE:
certgen [global options] command [command options] [arguments...]
VERSION:
master
AUTHOR:
Soren Mathiasen (sorenm@mymessages.dk)
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--hosts value Comma-separated hostnames and IPs to generate a certificate for
--name value Name to prefix certificate and keys with (default: "test")
--company value Company name on the certtificate (default: "Giant Pants Inc.")
--output value Folder to write the certificates and keys in
--start-date value Creation date formatted as Jan 1 15:04:05 2011
--duration value Duration that certificate is valid for (default: 8760h0m0s)
--help, -h show help
--version, -v print the version
This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code.
We appreciate your contribution. Please refer to our contributing guidelines.