Documentation ¶
Overview ¶
Package tlsutils provides utilities for managing TLS configurations and certificates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSelfSignedCert ¶
GenerateSelfSignedCert creates a self-signed certificate and writes it to provided paths.
func RedirectToHTTPS ¶
func RedirectToHTTPS(w http.ResponseWriter, r *http.Request)
RedirectToHTTPS redirects an HTTP request to HTTPS.
func VerifyClientCertificate ¶
func VerifyClientCertificate(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error
VerifyClientCertificate ensures the client's certificate is valid and not a CA.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.