Documentation ¶
Index ¶
- func CreateCertificate(template x509.Certificate, signerCert *x509.Certificate, ...) (*x509.Certificate, crypto.PrivateKey, error)
- func DecodeCertificate(b []byte) (*x509.Certificate, error)
- func DecodeCertificates(b []byte) ([]*x509.Certificate, error)
- func DecodePrivateKey(b []byte) (crypto.PrivateKey, error)
- func EncodeCertificate(cert *x509.Certificate) ([]byte, error)
- func EncodePrivateKey(privateKey crypto.PrivateKey) ([]byte, error)
- func LoadCertificate(p string) (*x509.Certificate, error)
- func LoadCertificatesFromFile(p string) ([]*x509.Certificate, error)
- func LoadPrivateKey(p string) (crypto.PrivateKey, error)
- func WriteCertificate(p string, cert *x509.Certificate) error
- func WriteCertificates(p string, certificates []*x509.Certificate) error
- func WritePrivateKey(p string, privateKey crypto.PrivateKey) error
- type Certificate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCertificate ¶
func CreateCertificate(template x509.Certificate, signerCert *x509.Certificate, signerKey crypto.PrivateKey) (*x509.Certificate, crypto.PrivateKey, error)
func DecodeCertificate ¶
func DecodeCertificate(b []byte) (*x509.Certificate, error)
func DecodeCertificates ¶
func DecodeCertificates(b []byte) ([]*x509.Certificate, error)
func DecodePrivateKey ¶
func DecodePrivateKey(b []byte) (crypto.PrivateKey, error)
func EncodeCertificate ¶
func EncodeCertificate(cert *x509.Certificate) ([]byte, error)
func EncodePrivateKey ¶
func EncodePrivateKey(privateKey crypto.PrivateKey) ([]byte, error)
func LoadCertificate ¶
func LoadCertificate(p string) (*x509.Certificate, error)
func LoadCertificatesFromFile ¶
func LoadCertificatesFromFile(p string) ([]*x509.Certificate, error)
func LoadPrivateKey ¶
func LoadPrivateKey(p string) (crypto.PrivateKey, error)
func WriteCertificate ¶
func WriteCertificate(p string, cert *x509.Certificate) error
func WriteCertificates ¶
func WriteCertificates(p string, certificates []*x509.Certificate) error
func WritePrivateKey ¶
func WritePrivateKey(p string, privateKey crypto.PrivateKey) error
Types ¶
type Certificate ¶
type Certificate struct { }
Click to show internal directories.
Click to hide internal directories.