tlshelper

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package tlshelper wraps loading and modifying the root-CA store for use in tls.Config

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SystemRootsWithCert

func SystemRootsWithCert(pemBlock []byte) (*x509.CertPool, error)

SystemRootsWithCert tries to load the system root store and to append the given certificate from a PEM encoded block into it. In case there is no pool an empty pool is used to add the certificate.

func SystemRootsWithFile

func SystemRootsWithFile(filepath string) (*x509.CertPool, error)

SystemRootsWithFile reads the pemBlock for SystemRootsWithCert from the given file and then calls SystemRootsWithCert.

Types

This section is empty.

Jump to

Keyboard shortcuts

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