x509

package
v2.7.9 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateInfo

type CertificateInfo struct {
	SubjectName        string    `json:"subjectName,omitempty"`
	Organization       []string  `json:"organization,omitempty"`
	IssuerName         string    `json:"issuerName,omitempty"`
	IssuerOrganization []string  `json:"issuerOrganization,omitempty"`
	NotAfter           time.Time `json:"notAfter,omitempty"`
	NotBefore          time.Time `json:"notBefore,omitempty"`
	SerialNumber       string    `json:"serialNumber,omitempty"`
}

func ParseCertificate

func ParseCertificate(cert *x509.Certificate) *CertificateInfo

type Error

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

func NewError

func NewError(chains [][]*x509.Certificate, err error) *Error

func (*Error) Chains

func (e *Error) Chains() [][]*x509.Certificate

func (*Error) Error

func (e *Error) Error() string

func (*Error) LeafCertificateInfo

func (e *Error) LeafCertificateInfo() *CertificateInfo

Jump to

Keyboard shortcuts

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