Documentation
¶
Index ¶
- func GenerateCertificateKeyPairBytes(template *x509.Certificate, bitSize int, caCert *x509.Certificate, ...) (*bytes.Buffer, *bytes.Buffer, error)
- func GetCertificate(cert []byte) (*x509.Certificate, error)
- func GetPrivateKey(privKey []byte) (*rsa.PrivateKey, error)
- func GetPublickKey(pubKey []byte) (*rsa.PublicKey, error)
- func IsValidCertificateKeyPairBytes(certBytes []byte, privKeyBytes []byte) (bool, error)
- func IsValidKeyPairBytes(pubKeyBytes []byte, privKeyBytes []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCertificateKeyPairBytes ¶
func GenerateCertificateKeyPairBytes(template *x509.Certificate, bitSize int, caCert *x509.Certificate, caKey *rsa.PrivateKey) (*bytes.Buffer, *bytes.Buffer, error)
func GetCertificate ¶
func GetCertificate(cert []byte) (*x509.Certificate, error)
func GetPrivateKey ¶
func GetPrivateKey(privKey []byte) (*rsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.