Back to godoc.org

Package tls

v1.0.0-beta3
Latest Go to latest

The highest tagged major version is .

Published: Aug 26, 2020 | License: Apache-2.0 | Module: github.com/hyperledger/fabric-sdk-go

Index

type CertPool

type CertPool interface {
	// Get returns the cert pool, optionally adding the provided certs
	Get() (*x509.CertPool, error)
	//Add allows adding certificates to CertPool
	//Call Get() after Add() to get the updated certpool
	Add(certs ...*x509.Certificate)
}

CertPool is a thread safe wrapper around the x509 standard library cert pool implementation.

func NewCertPool

func NewCertPool(useSystemCertPool bool) (CertPool, error)

NewCertPool new CertPool implementation

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier