Documentation ¶
Index ¶
- Variables
- type ValidationResult
- func ValidateCA(isCA bool) (ValidationResult, error)
- func ValidateChain(certs []*x509.Certificate) (ValidationResult, error)
- func ValidateHostname(hostname string, hostCert *x509.Certificate) (ValidationResult, error)
- func ValidateIssuer(cert *x509.Certificate, issuer *x509.Certificate) (ValidationResult, error)
- func ValidateNotAfter(notAfter time.Time) (ValidationResult, error)
- func ValidateNotBefore(notBefore time.Time) (ValidationResult, error)
- func ValidateSubject(subject pkix.Name) (ValidationResult, error)
- type ValidationType
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidationResultFail = ValidationResult{ ResultStr: "FAIL", Success: false, }
View Source
var ValidationResultPass = ValidationResult{ ResultStr: " OK ", Success: true, }
View Source
var ValidationResultSkip = ValidationResult{ ResultStr: "----", Success: true, }
Functions ¶
This section is empty.
Types ¶
type ValidationResult ¶
func ValidateCA ¶
func ValidateCA(isCA bool) (ValidationResult, error)
func ValidateChain ¶
func ValidateChain(certs []*x509.Certificate) (ValidationResult, error)
func ValidateHostname ¶
func ValidateHostname(hostname string, hostCert *x509.Certificate) (ValidationResult, error)
func ValidateIssuer ¶
func ValidateIssuer(cert *x509.Certificate, issuer *x509.Certificate) (ValidationResult, error)
func ValidateNotAfter ¶
func ValidateNotAfter(notAfter time.Time) (ValidationResult, error)
func ValidateNotBefore ¶
func ValidateNotBefore(notBefore time.Time) (ValidationResult, error)
func ValidateSubject ¶
func ValidateSubject(subject pkix.Name) (ValidationResult, error)
func (ValidationResult) String ¶
func (result ValidationResult) String() string
type ValidationType ¶
type ValidationType int
const ( ValidationTypeSubject ValidationType = 0 ValidationTypeNotBefore ValidationType = 1 ValidationTypeNotAfter ValidationType = 2 ValidationTypeIssuer ValidationType = 3 ValidationTypeCACert ValidationType = 4 )
Click to show internal directories.
Click to hide internal directories.