Documentation ¶
Index ¶
- func CertTemplate() (*x509.Certificate, error)
- func CreateRootCertKeyPEMPair() ([]byte, []byte, error)
- func CreateRootTLSCert() (*tls.Certificate, error)
- func CreateServerCertKeyPEMPairWithRootCert() (rootCertPEM []byte, servCertPEM []byte, servKeyPEM []byte, err error)
- func CreateServerClientTLSConfig() (serverConfig *tls.Config, clientConfig *tls.Config, err error)
- func NewKey() (*rsa.PrivateKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertTemplate ¶
func CertTemplate() (*x509.Certificate, error)
CertTemplate returns a new generic template for an x509.Certificate which is set to use SHA256 and expire after an hour
func CreateRootTLSCert ¶
func CreateRootTLSCert() (*tls.Certificate, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.