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.
Click to show internal directories.
Click to hide internal directories.