certerr

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: BSD-2-Clause, ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyCertificate = errors.New("certlib: empty certificate")

ErrEmptyCertificate indicates that a certificate could not be processed because there was no data to process.

View Source
var ErrEncryptedPrivateKey = errors.New("private key is encrypted")

Functions

func DecodeError

func DecodeError(t ErrorSourceType, err error) error

func ErrInvalidPEMType

func ErrInvalidPEMType(have string, want ...string) error

ErrInvalidPEMType returns a new InvalidPEMType error.

func LoadingError

func LoadingError(t ErrorSourceType, err error) error

func ParsingError

func ParsingError(t ErrorSourceType, err error) error

func VerifyError

func VerifyError(t ErrorSourceType, err error) error

Types

type ErrorSourceType

type ErrorSourceType uint8
const (
	ErrorSourceCertificate ErrorSourceType = 1
	ErrorSourcePrivateKey  ErrorSourceType = 2
	ErrorSourceCSR         ErrorSourceType = 3
	ErrorSourceSCTList     ErrorSourceType = 4
	ErrorSourceKeypair     ErrorSourceType = 5
)

func (ErrorSourceType) String

func (t ErrorSourceType) String() string

type InvalidPEMType

type InvalidPEMType struct {
	// contains filtered or unexported fields
}

InvalidPEMType is used to indicate that we were expecting one type of PEM file, but saw another.

func (*InvalidPEMType) Error

func (err *InvalidPEMType) Error() string

Jump to

Keyboard shortcuts

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