Documentation
¶
Index ¶
- Variables
- func BytesFromFileOrEnv(path string) ([]byte, error)
- func Certificates(path string) ([]*x509.Certificate, error)
- func CertificatesFromPEM(pemBytes []byte) ([]*x509.Certificate, error)
- func CertificatesFromPEMs(pems [][]byte) ([]*x509.Certificate, error)
- func PrivateKey(path string, password string) (crypto.PrivateKey, error)
- type P12Contents
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNeedPassword = errors.New("need password to decode file")
Functions ¶
func BytesFromFileOrEnv ¶
func Certificates ¶
func Certificates(path string) ([]*x509.Certificate, error)
func CertificatesFromPEM ¶
func CertificatesFromPEM(pemBytes []byte) ([]*x509.Certificate, error)
func CertificatesFromPEMs ¶
func CertificatesFromPEMs(pems [][]byte) ([]*x509.Certificate, error)
func PrivateKey ¶
func PrivateKey(path string, password string) (crypto.PrivateKey, error)
Types ¶
type P12Contents ¶
type P12Contents struct { PrivateKey crypto.PrivateKey Certificate *x509.Certificate Certificates []*x509.Certificate }
func P12 ¶
func P12(path, password string) (*P12Contents, error)
Click to show internal directories.
Click to hide internal directories.