ca

package
v0.0.0-...-de522cc Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCAStore

func CreateCAStore(directory string) error

func GenerateCACert

func GenerateCACert(pemKey []byte) ([]byte, error)

generate a self-signed certificate for key suitable for CA use. If these defaults aren't suitable, build your own using openssl or similar.

func GenerateCAKey

func GenerateCAKey() ([]byte, error)

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(directory string) (*Store, error)

func (*Store) GetCertificate

func (store *Store) GetCertificate(domain string) (key, cert []byte, err error)

Jump to

Keyboard shortcuts

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