Documentation ¶
Index ¶
- func LoadPEMCertificateFromPath(path string) (*x509.Certificate, error)
- func LoadPEMPrivateKeyFromPath(path string) (*rsa.PrivateKey, error)
- func NewCACertificate(caCert x509.Certificate, caPrivKey rsa.PrivateKey) (*x509.Certificate, error)
- func NewPeerCertificate(serverCert x509.Certificate, serverPrivKey rsa.PrivateKey, ...) (*x509.Certificate, error)
- func SaveCertificateAsPEM(cert x509.Certificate, path string) error
- func SavePrivateKeyAsPEM(priv rsa.PrivateKey, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadPEMCertificateFromPath ¶
func LoadPEMCertificateFromPath(path string) (*x509.Certificate, error)
func LoadPEMPrivateKeyFromPath ¶
func LoadPEMPrivateKeyFromPath(path string) (*rsa.PrivateKey, error)
func NewCACertificate ¶
func NewCACertificate(caCert x509.Certificate, caPrivKey rsa.PrivateKey) (*x509.Certificate, error)
func NewPeerCertificate ¶
func NewPeerCertificate(serverCert x509.Certificate, serverPrivKey rsa.PrivateKey, caCertificate x509.Certificate, caPrivKey rsa.PrivateKey) (*x509.Certificate, error)
func SaveCertificateAsPEM ¶
func SaveCertificateAsPEM(cert x509.Certificate, path string) error
func SavePrivateKeyAsPEM ¶
func SavePrivateKeyAsPEM(priv rsa.PrivateKey, path string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.