cert

package
v0.1.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(cert *x509.Certificate, key crypto.Signer) ([]byte, []byte, error)

func NewCA

func NewCA(cn string, org ...string) (*x509.Certificate, crypto.Signer, error)

func NewPrivateKey

func NewPrivateKey() (crypto.Signer, error)

func NewSignedClientCert

func NewSignedClientCert(signee crypto.Signer, issuer *x509.Certificate, signer crypto.Signer, cn string) (*x509.Certificate, error)

func Unmarshal

func Unmarshal(certPem, keyPem []byte) (*x509.Certificate, crypto.Signer, error)

Types

type NewCertFunc

type NewCertFunc func(self crypto.Signer, ca *x509.Certificate, signer crypto.Signer, cn string) (*x509.Certificate, error)

func NewSignedCertFunc

func NewSignedCertFunc(orgs []string, domains []string, ips []net.IP) NewCertFunc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳