Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadCertificate ¶
func LoadCertificate(path string) (*x509.Certificate, error)
LoadCertificate load & parse a single certificate from the given ASN.1 DER file (*.cer).
func LoadPKCS1PrivateKeyPEM ¶
func LoadPKCS1PrivateKeyPEM(path, password string) (*rsa.PrivateKey, error)
LoadPKCS1PrivateKeyPEM load & parse private key from PEM-file
func Sign ¶
func Sign(data io.Reader, cert *x509.Certificate, priv *rsa.PrivateKey) ([]byte, error)
Sign generate sign for data with cert & private key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.