validate

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertValidator

type CertValidator interface {
	Validate(*x509.Certificate) error
}

A CertValidator can apply some validation logic to a certificate

type MinKeyStrength

type MinKeyStrength int

MinKeyStrength checks that the key strength is at least the number given.

func (MinKeyStrength) Validate

func (m MinKeyStrength) Validate(c *x509.Certificate) error

Validate checks the strength of the key in bits

type MultiValidator

type MultiValidator []CertValidator

A MultiValidator can perform multiple validations on the same certificate

func (MultiValidator) Validate

func (m MultiValidator) Validate(c *x509.Certificate) error

Validate checks all the subvalidations and returns a hashicorp multierror containing any/all violations discovered.

type ValidAt

type ValidAt time.Time

ValidAt checks that the represented time.Time falls between the certificate's NotAfter and NotBefore properties.

func (ValidAt) Validate

func (v ValidAt) Validate(c *x509.Certificate) error

Validate checks expiration and maturity

Jump to

Keyboard shortcuts

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