cert

package
v0.0.0-...-198281b Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCa

func CreateCa(organization string, expireDays int) (certBytes []byte, keyBytes []byte, err error)

func CreateCaToFile

func CreateCaToFile(name, domainOrIP string, expireDays int) (err error)

func CreateSignCert

func CreateSignCert(rootCa *x509.Certificate, rootKey *rsa.PrivateKey, domainOrIP string, expireDays int) (certBytes []byte, keyBytes []byte, err error)

func CreateSignCertToFile

func CreateSignCertToFile(rootCa *x509.Certificate, rootKey *rsa.PrivateKey, domainOrIP string, expireDays int, name string) (err error)

func ParseCert

func ParseCert(certPemFile string) (cert *x509.Certificate, err error)

func ParseCertAndKey

func ParseCertAndKey(certPemFile, keyFile string) (cert *x509.Certificate, privateKey *rsa.PrivateKey, err error)

func ParseCertAndKeyBytes

func ParseCertAndKeyBytes(certPemFileByes, keyFileBytes []byte) (cert *x509.Certificate, privateKey *rsa.PrivateKey, err error)

func ParseCertBytes

func ParseCertBytes(certPemFileBytes []byte) (cert *x509.Certificate, err error)

func ParseKey

func ParseKey(keyFile string) (key *rsa.PrivateKey, err error)

func ParseKeyBytes

func ParseKeyBytes(keyFileBytes []byte) (praKey *rsa.PrivateKey, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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