Documentation ¶
Index ¶
- func GenerateCACertificate(org, certpath string) (err error)
- func GenerateCertificate(certpath string, tmpl *x509.Certificate, hosts []string) (cert, key *bytes.Buffer, err error)
- func LoadCACert(certpath string) (cert tls.Certificate, err error)
- func NewX509Certificate(org string) (*x509.Certificate, error)
- func WriteCertificate(output string, data []byte) error
- func WriteKey(output string, priv *rsa.PrivateKey) error
- type PemBlock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCACertificate ¶
func GenerateCertificate ¶
func LoadCACert ¶
func LoadCACert(certpath string) (cert tls.Certificate, err error)
func NewX509Certificate ¶
func NewX509Certificate(org string) (*x509.Certificate, error)
func WriteCertificate ¶
Types ¶
type PemBlock ¶
func NewPemBlock ¶
Click to show internal directories.
Click to hide internal directories.