lecot

package module
v0.0.0-...-1147f86 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

README

Let's Encrypt - Chain of Trust | Certificates to populate your CA-CertPool.

EXAMPLES
--------

Create a new CertPool and add all certificates for your application.

  caCertPool := x509.NewCertPool()
  caCertPool.AppendCertsFromPEM(Lets_Encrypt_R3)
  caCertPool.AppendCertsFromPEM(ISRG_Root_X1)

Or use lecot.Pool() directly:

  // adjust default http config
  http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{RootCAs: lecot.Pool()}

Documentation

Overview

Let's Encrypt - Chain of Trust - see https://letsencrypt.org/certificates/

Index

Constants

This section is empty.

Variables

View Source
var ISRG_Root_X1 []byte
View Source
var ISRG_Root_X1_Cross_Signed []byte
View Source
var ISRG_Root_X2 []byte
View Source
var ISRG_Root_X2_Cross_Signed []byte
View Source
var Lets_Encrypt_E1 []byte
View Source
var Lets_Encrypt_R3 []byte

Functions

func Pool

func Pool() *x509.CertPool

Pool returns a pointer to a CA certificate pool that contains root and intermediate certificates of the Let's Encrypt - Chain of Trust.

Types

This section is empty.

Jump to

Keyboard shortcuts

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