Documentation ¶
Index ¶
- func GenerateCertKey(parentCertPem []byte, parentKeyPem []byte, subject *pkix.Name, serial *string) (cert *pem.Block, key *pem.Block)
- func GenerateCertKeyBytes(parentCertPem []byte, parentKeyPem []byte, subject *pkix.Name, serial *string) (cert []byte, key []byte)
- func GenerateCertKeyFiles(parentCertPem []byte, parentKeyPem []byte, subject *pkix.Name, serial *string)
- func LoadTLSCfg(caPath string, clientCertPath string, clientCertKeyPath string) (*tls.Config, error)
- func LoadTLSCfgFromBytes(caCert []byte, clientCertPem []byte, clientCertKey []byte) (*tls.Config, error)
- func PemToCertificate(pemBytes []byte) (cert *x509.Certificate)
- func PemToPrivKey(pemBytes []byte) (key *rsa.PrivateKey)
- func Sign(privateKey []byte, payload string) string
- func Verify(certificate []byte, payload, sig string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCertKey ¶
func GenerateCertKeyBytes ¶
func GenerateCertKeyFiles ¶
func LoadTLSCfg ¶
func LoadTLSCfgFromBytes ¶
func PemToCertificate ¶
func PemToCertificate(pemBytes []byte) (cert *x509.Certificate)
func PemToPrivKey ¶
func PemToPrivKey(pemBytes []byte) (key *rsa.PrivateKey)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.