certgen

package module
v0.0.0-...-2da286d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 14 Imported by: 0

README

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.

Release Software License Travis Coverage Status Go Report Card Godoc SayThanks.io

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCerts

func GenerateCerts(validFrom string, validFor time.Duration, name string, company string, hosts string, output string)

func Hosts

func Hosts(cidr string) ([]string, error)

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL