Categorygithub.com/greymatter-io/incert
modulepackage
1.0.0
Repository: https://github.com/greymatter-io/incert.git
Documentation: pkg.go.dev

# README

Incert

CircleCI Maintainability Test Coverage

A command line utility for generating single use certificate authorities and issuing certificates.

Overview

There are a number of situations in which having an ephemeral certificate authority is sufficient or optimal. Incert fills this role by generating a new certificate authority on every run and issuing the requested certificates from that authority. None of the authority's cryptographic key material is persisted to disk so once the run completes no additional certificates can be issued by that certificate authority.

Usage

Installation

Single

In order to generate a single certificate run the following command.

incert issue single -c localhost -a localhost -a localhost.localdomain -e 86000s

This will create the following files in the current directory.

FileDescription
root.crtThe PEM encoded root certificate.
intermediate.crtThe PEM encoded intermediate certificate.
localhost.crtThe PEM encoded server certificate for localhost.
localhost.keyThe PEM encoded server key for localhost.

Batch

In order to generate a multiple certificates run the following command.

incert issue batch --config ./config.json

Where config.json contains the following content.

{
	"values": [
		{
			"commonName": "localhost",
			"alternativeNames": [
				"localhost",
				"localhost.localdomain"
			],
			"expires": "24h"
		},
		{
			"commonName": "example.com",
			"alternativeNames": [
				"example.com",
				"www.example.com"
			],
			"expires": "1h"
		}
	]
}

This will create the following files in the current directory.

FileDescription
root.crtThe PEM encoded root certificate.
intermediate.crtThe PEM encoded intermediate certificate.
localhost.crtThe PEM encoded server certificate for localhost.
localhost.keyThe PEM encoded server key for localhost.
example.com.crtThe PEM encoded server certificate for example.com.
example.com.keyThe PEM encoded server key for example.com.

Development

Prerequisites

Building

Testing

Deploying

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author