Documentation ¶
Index ¶
- func GetCertificateFromFiles(ctx context.Context, certFile string, keyFile string) (*tls.Certificate, error)
- func GetGetCertificate(ctx context.Context, host string, certFile string, keyFile string) func(*tls.ClientHelloInfo) (*tls.Certificate, error)
- func GetSelfSignedQACertificate(ctx context.Context, host string) (*tls.Certificate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCertificateFromFiles ¶
func GetCertificateFromFiles( ctx context.Context, certFile string, keyFile string, ) (*tls.Certificate, error)
GetCertificateFromFiles retrieves the certificate from the specified files.
func GetGetCertificate ¶
func GetGetCertificate( ctx context.Context, host string, certFile string, keyFile string, ) func(*tls.ClientHelloInfo) (*tls.Certificate, error)
GetGetCertificate computes the GetCertificate function to serve TLS securily in production using LetsEncrypt and insecurely in QA using a self signed certificate.
func GetSelfSignedQACertificate ¶
GetSelfSignedQACertificate returns a self signed certificate for the host passed in QA. QA client do not verify certificates.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.