Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TlsCertFromFile ¶
TlsCertFromFile loads a TLS certificate and RSA private key from the files specified as certPath and keyPath, applying some basic validation before returning the certificate.
func TlsCertFromX509 ¶
func TlsCertFromX509(cert *x509.Certificate, key crypto.PrivateKey) (tls.Certificate, error)
TlsCertFromX509 generates a TLS certificate for the x509 certificate cert and the private key key. This function supports RSA and EC types of private keys.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.