certs

package
v0.0.0-...-8487dac Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package certs loads CA certificates from a directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool []*x509.Certificate

func Append

func Append(dst Pool, extra ...Pool) Pool

Append adds zero or more certificates from extra pools to dst and returns dst.

func FromDir

func FromDir(directories ...string) Pool

FromDir loads all PEM certificates in one or more directories.

func FromFile

func FromFile(files ...string) Pool

FromFile loads all PEM certificates from one or more files

func (Pool) CertPool

func (p Pool) CertPool() *x509.CertPool

CertPool creates an x509.CertPool from a Pool, for use in a tls.Config struct.

Jump to

Keyboard shortcuts

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