x509io

package
v0.0.0-...-4450389 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package `x509io` contains functions to load certs from disk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCABundle

func LoadCABundle(path string) (*x509.CertPool, error)

`LoadCABundle()` loads PEM certificates as a `CertPool`, which can be used as a CA for client certs.

func LoadCombinedCert

func LoadCombinedCert(path string) (cert tls.Certificate, err error)

`LoadCombinedCert()` loads a combined cert and key. PEM files can be concatenated `cat cert.pem privkey.pem > combined.pem`.

func LoadX509Dir

func LoadX509Dir(path string) (
	cert tls.Certificate, ca *x509.CertPool, err error,
)

`LoadX509Dir()` loads a triplet `ca.pem`, `cert.pem`, and `privkey.pem`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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