gencert

package
v0.0.0-...-13d6dd4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeCert

func DecodeCert(CA RawPEM) (cert *x509.Certificate, key *rsa.PrivateKey)

DecodeCert (CA RawPEM) returns the x509 cert and key from the raw pem files

Types

type RawPEM

type RawPEM struct {
	Key  []byte
	Cert []byte
}

RawPEM just the raw bytes of the certs

func GenCA

func GenCA(CN string) (OUT RawPEM)

GenCA generates a generic CA with the CN provided

func SignedCert

func SignedCert(CN string, CA RawPEM) (OUT RawPEM)

SignedCert pass in the CN of the cert and raw PEM, output the new certs raw PEM

Jump to

Keyboard shortcuts

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