Documentation ¶
Overview ¶
Package certificate loads Push Services certificates exported from your Keychain in Personal Information Exchange format (*.p12).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrExpired = errors.New("certificate has expired or is not yet valid")
)
Certificate errors
Functions ¶
func Decode ¶
func Decode(p12 []byte, password string) (*x509.Certificate, *rsa.PrivateKey, error)
Decode and verify an in memory .p12 certificate (DER binary format).
func Load ¶
func Load(filename, password string) (*x509.Certificate, *rsa.PrivateKey, error)
Load a .p12 certificate from disk.
func TLS ¶ added in v0.4.0
func TLS(cert *x509.Certificate, privateKey *rsa.PrivateKey) tls.Certificate
TLS wraps an x509 certificate as a tls.Certificate.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.