certs

package
v6.6.7+incompatible Latest Latest
Warning

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

Go to latest
Published: May 3, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertData

type CertData struct {
	Cert  []byte
	Key   []byte
	Chain []byte
}

type Validator

type Validator struct{}

func NewValidator

func NewValidator() Validator

func (Validator) Read

func (v Validator) Read(certPath, keyPath, chainPath string) (CertData, error)

func (Validator) ReadAndValidate

func (v Validator) ReadAndValidate(certPath, keyPath, chainPath string) (CertData, error)

func (Validator) ReadAndValidatePKCS12

func (v Validator) ReadAndValidatePKCS12(certPath, passwordPath string) (CertData, error)

func (Validator) ReadPKCS12

func (v Validator) ReadPKCS12(certPath, passwordPath string) (CertData, error)

func (Validator) Validate

func (v Validator) Validate(cert, key, chain []byte) error

func (Validator) ValidatePKCS12

func (v Validator) ValidatePKCS12(cert, password []byte) error

Jump to

Keyboard shortcuts

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