analyse

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyser

type Analyser struct {
	RemovedCertificates []removedCertificate
}

func NewAnalyser

func NewAnalyser() (*Analyser, error)

NewAnalyser creates a new Analyzer using the public Mozilla CA removed certificate list as part of its checks. This method performs HTTP requests to retrieve that list. The request will be made with the given context.

func (*Analyser) AnalyseCertificate

func (an *Analyser) AnalyseCertificate(cert *x509.Certificate) []Note

AnalyseCertificate takes an X.509 certificate and performs basic analysis. This is intended to highlight any concerns or issues to a user.

type Note

type Note struct {
	Level  NoteLevel
	Reason string
}

type NoteLevel

type NoteLevel string
const (
	NoteLevelWarn  NoteLevel = "warn"
	NoteLevelError NoteLevel = "error"
)

Jump to

Keyboard shortcuts

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