tlsutils

package
v0.0.0-...-4108d4f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 12 Imported by: 0

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

func GenerateSelfSignedCert(certPath, keyPath string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL