generate-cert

command module
v0.0.0-...-0fe05a6 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: BSD-3-Clause, MIT Imports: 9 Imported by: 0

README

generate-cert

This is designed to generate TLS root and leaf certificates. The problem with the file in crypto/tls/generate_cert.go is that browsers do not like it when you present a root CA certificate directly. Instead, we generate an intermediate certificate and save that.

A previous iteration of this project was available from github.com/Shyp/generate-tls-cert. I did not put a LICENSE file on that project and I am not in a position to speak for the company anymore, so I am rewriting it from scratch, without looking at that project. Any similarities are purely coincidental. This project is released with an MIT license.

Note we exclusively generate and parse ecdsa keys, if you try to parse other types of certificates the code will break.

Usage

See the meterup/local-ca repo which has some Makefile recipes for how to use this.

Testing

use make test-certs to regenerate the certs in lib/testdata, which are then tested by code in lib/cert_test.go.

The certs will need to be regenerated when/if they expire.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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