ssc

command module
v0.0.0-...-7c92729 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 20 Imported by: 0

README

ssc

Self-signed certificates generator.

Installation

export PATH=$(go env GOPATH)/bin:$PATH
go get -u github.com/amenzhinsky/ssc

Usage

Generate root certificate:

ssc -common-name="Root CA" -ca -keyout=ca.key -certout=ca.crt

Generate and validate intermediate CA:

ssc -common-name="Intermediate CA" -ca -cacert=ca.crt -cakey=ca.key-keyout=intermediate.key -certout=intermediate.crt
openssl verify -CAfile=ca.crt intermediate.crt

Generate server certificate with Subject Alternative Names and Extended Key Usage flags signed by the previously generated intermediate CA:

ssc -common-name=server -cacert=intermediate.crt -cakey=intermediate.key -san-dns=example.com -eku-server -certout=server.crt -keyout=server.key

openssl verify -CAfile=<(cat ca.crt intermediate.crt) server.crt

cat intermediate.crt server.crt > full.crt
openssl verify -CAfile=ca.crt full.crt 

You can use openssl to inspect generated certificates:

openssl x509 -text -noout -in server.crt

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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