Versions in this module Expand all Collapse all v1 v1.1.0 Feb 12, 2020 Changes in this version + var Lints = make(map[string]*Lint) + func ReadCertificate(inPath string) *x509.Certificate + func RegisterLint(l *Lint) + type CertContainsUniqueIdentifier struct + func (l *CertContainsUniqueIdentifier) CheckApplies(cert *x509.Certificate) bool + func (l *CertContainsUniqueIdentifier) Execute(cert *x509.Certificate) *LintResult + func (l *CertContainsUniqueIdentifier) Initialize() error + type CertExtensionsVersonNot3 struct + func (l *CertExtensionsVersonNot3) CheckApplies(cert *x509.Certificate) bool + func (l *CertExtensionsVersonNot3) Execute(cert *x509.Certificate) *LintResult + func (l *CertExtensionsVersonNot3) Initialize() error + type CertPolicyIVRequiresCountry struct + func (l *CertPolicyIVRequiresCountry) CheckApplies(cert *x509.Certificate) bool + func (l *CertPolicyIVRequiresCountry) Execute(cert *x509.Certificate) *LintResult + func (l *CertPolicyIVRequiresCountry) Initialize() error + type CertPolicyIVRequiresProvinceOrLocal struct + func (l *CertPolicyIVRequiresProvinceOrLocal) CheckApplies(cert *x509.Certificate) bool + func (l *CertPolicyIVRequiresProvinceOrLocal) Execute(cert *x509.Certificate) *LintResult + func (l *CertPolicyIVRequiresProvinceOrLocal) Initialize() error + type CertPolicyOVRequiresCountry struct + func (l *CertPolicyOVRequiresCountry) CheckApplies(cert *x509.Certificate) bool + func (l *CertPolicyOVRequiresCountry) Execute(cert *x509.Certificate) *LintResult + func (l *CertPolicyOVRequiresCountry) Initialize() error + type CertPolicyOVRequiresProvinceOrLocal struct + func (l *CertPolicyOVRequiresProvinceOrLocal) CheckApplies(cert *x509.Certificate) bool + func (l *CertPolicyOVRequiresProvinceOrLocal) Execute(cert *x509.Certificate) *LintResult + func (l *CertPolicyOVRequiresProvinceOrLocal) Initialize() error + type CertPolicyRequiresOrg struct + func (l *CertPolicyRequiresOrg) CheckApplies(cert *x509.Certificate) bool + func (l *CertPolicyRequiresOrg) Execute(cert *x509.Certificate) *LintResult + func (l *CertPolicyRequiresOrg) Initialize() error + type CertPolicyRequiresPersonalName struct + func (l *CertPolicyRequiresPersonalName) CheckApplies(cert *x509.Certificate) bool + func (l *CertPolicyRequiresPersonalName) Execute(cert *x509.Certificate) *LintResult + func (l *CertPolicyRequiresPersonalName) Initialize() error + type DNSNameEmptyLabel struct + func (l *DNSNameEmptyLabel) CheckApplies(c *x509.Certificate) bool + func (l *DNSNameEmptyLabel) Execute(c *x509.Certificate) *LintResult + func (l *DNSNameEmptyLabel) Initialize() error + type DNSNameHyphenInSLD struct + func (l *DNSNameHyphenInSLD) CheckApplies(c *x509.Certificate) bool + func (l *DNSNameHyphenInSLD) Execute(c *x509.Certificate) *LintResult + func (l *DNSNameHyphenInSLD) Initialize() error + type DNSNameLabelLengthTooLong struct + func (l *DNSNameLabelLengthTooLong) CheckApplies(c *x509.Certificate) bool + func (l *DNSNameLabelLengthTooLong) Execute(c *x509.Certificate) *LintResult + func (l *DNSNameLabelLengthTooLong) Initialize() error + type DNSNameLeftLabelWildcardCheck struct + func (l *DNSNameLeftLabelWildcardCheck) CheckApplies(c *x509.Certificate) bool + func (l *DNSNameLeftLabelWildcardCheck) Execute(c *x509.Certificate) *LintResult + func (l *DNSNameLeftLabelWildcardCheck) Initialize() error + type DNSNameProperCharacters struct + CompiledExpression *regexp.Regexp + func (l *DNSNameProperCharacters) CheckApplies(c *x509.Certificate) bool + func (l *DNSNameProperCharacters) Execute(c *x509.Certificate) *LintResult + func (l *DNSNameProperCharacters) Initialize() error + type DNSNameRedacted struct + func (l *DNSNameRedacted) CheckApplies(c *x509.Certificate) bool + func (l *DNSNameRedacted) Execute(c *x509.Certificate) *LintResult + func (l *DNSNameRedacted) Initialize() error + type DNSNameUnderscoreInSLD struct + func (l *DNSNameUnderscoreInSLD) CheckApplies(c *x509.Certificate) bool + func (l *DNSNameUnderscoreInSLD) Execute(c *x509.Certificate) *LintResult + func (l *DNSNameUnderscoreInSLD) Initialize() error + type DNSNameUnderscoreInTRD struct + func (l *DNSNameUnderscoreInTRD) CheckApplies(c *x509.Certificate) bool + func (l *DNSNameUnderscoreInTRD) Execute(c *x509.Certificate) *LintResult + func (l *DNSNameUnderscoreInTRD) Initialize() error + type DNSNameValidTLD struct + func (l *DNSNameValidTLD) CheckApplies(c *x509.Certificate) bool + func (l *DNSNameValidTLD) Execute(c *x509.Certificate) *LintResult + func (l *DNSNameValidTLD) Initialize() error + type DNSNameWildcardLeftofPublicSuffix struct + func (l *DNSNameWildcardLeftofPublicSuffix) CheckApplies(c *x509.Certificate) bool + func (l *DNSNameWildcardLeftofPublicSuffix) Execute(c *x509.Certificate) *LintResult + func (l *DNSNameWildcardLeftofPublicSuffix) Initialize() error + type DNSNameWildcardOnlyInLeftlabel struct + func (l *DNSNameWildcardOnlyInLeftlabel) CheckApplies(c *x509.Certificate) bool + func (l *DNSNameWildcardOnlyInLeftlabel) Execute(c *x509.Certificate) *LintResult + func (l *DNSNameWildcardOnlyInLeftlabel) Initialize() error + type ExtAiaMarkedCritical struct + func (l *ExtAiaMarkedCritical) CheckApplies(cert *x509.Certificate) bool + func (l *ExtAiaMarkedCritical) Execute(cert *x509.Certificate) *LintResult + func (l *ExtAiaMarkedCritical) Initialize() error + type ExtCertPolicyDuplicate struct + func (l *ExtCertPolicyDuplicate) CheckApplies(cert *x509.Certificate) bool + func (l *ExtCertPolicyDuplicate) Execute(cert *x509.Certificate) *LintResult + func (l *ExtCertPolicyDuplicate) Initialize() error + type ExtCertPolicyExplicitTextNotNFC struct + func (l *ExtCertPolicyExplicitTextNotNFC) CheckApplies(c *x509.Certificate) bool + func (l *ExtCertPolicyExplicitTextNotNFC) Execute(c *x509.Certificate) *LintResult + func (l *ExtCertPolicyExplicitTextNotNFC) Initialize() error + type ExtCrlDistributionMarkedCritical struct + func (l *ExtCrlDistributionMarkedCritical) CheckApplies(cert *x509.Certificate) bool + func (l *ExtCrlDistributionMarkedCritical) Execute(cert *x509.Certificate) *LintResult + func (l *ExtCrlDistributionMarkedCritical) Initialize() error + type ExtDuplicateExtension struct + func (l *ExtDuplicateExtension) CheckApplies(cert *x509.Certificate) bool + func (l *ExtDuplicateExtension) Execute(cert *x509.Certificate) *LintResult + func (l *ExtDuplicateExtension) Initialize() error + type ExtFreshestCrlMarkedCritical struct + func (l *ExtFreshestCrlMarkedCritical) CheckApplies(cert *x509.Certificate) bool + func (l *ExtFreshestCrlMarkedCritical) Execute(cert *x509.Certificate) *LintResult + func (l *ExtFreshestCrlMarkedCritical) Initialize() error + type ExtIANCritical struct + func (l *ExtIANCritical) CheckApplies(cert *x509.Certificate) bool + func (l *ExtIANCritical) Execute(cert *x509.Certificate) *LintResult + func (l *ExtIANCritical) Initialize() error + type ExtSANCriticalWithSubjectDN struct + func (l *ExtSANCriticalWithSubjectDN) CheckApplies(cert *x509.Certificate) bool + func (l *ExtSANCriticalWithSubjectDN) Execute(cert *x509.Certificate) *LintResult + func (l *ExtSANCriticalWithSubjectDN) Initialize() error + type IANDNSNotIA5String struct + func (l *IANDNSNotIA5String) CheckApplies(c *x509.Certificate) bool + func (l *IANDNSNotIA5String) Execute(c *x509.Certificate) *LintResult + func (l *IANDNSNotIA5String) Initialize() error + type IANDNSNull struct + func (l *IANDNSNull) CheckApplies(c *x509.Certificate) bool + func (l *IANDNSNull) Execute(c *x509.Certificate) *LintResult + func (l *IANDNSNull) Initialize() error + type IANDNSPeriod struct + func (l *IANDNSPeriod) CheckApplies(c *x509.Certificate) bool + func (l *IANDNSPeriod) Execute(c *x509.Certificate) *LintResult + func (l *IANDNSPeriod) Initialize() error + type IANEmail struct + func (l *IANEmail) CheckApplies(c *x509.Certificate) bool + func (l *IANEmail) Execute(c *x509.Certificate) *LintResult + func (l *IANEmail) Initialize() error + type IANEmptyName struct + func (l *IANEmptyName) CheckApplies(c *x509.Certificate) bool + func (l *IANEmptyName) Execute(c *x509.Certificate) *LintResult + func (l *IANEmptyName) Initialize() error + type IANNoEntry struct + func (l *IANNoEntry) CheckApplies(c *x509.Certificate) bool + func (l *IANNoEntry) Execute(c *x509.Certificate) *LintResult + func (l *IANNoEntry) Initialize() error + type IANPubSuffix struct + func (l *IANPubSuffix) CheckApplies(c *x509.Certificate) bool + func (l *IANPubSuffix) Execute(c *x509.Certificate) *LintResult + func (l *IANPubSuffix) Initialize() error + type IANSpace struct + func (l *IANSpace) CheckApplies(c *x509.Certificate) bool + func (l *IANSpace) Execute(c *x509.Certificate) *LintResult + func (l *IANSpace) Initialize() error + type IANURIFQDNOrIP struct + func (l *IANURIFQDNOrIP) CheckApplies(c *x509.Certificate) bool + func (l *IANURIFQDNOrIP) Execute(c *x509.Certificate) *LintResult + func (l *IANURIFQDNOrIP) Initialize() error + type IANURIFormat struct + func (l *IANURIFormat) CheckApplies(c *x509.Certificate) bool + func (l *IANURIFormat) Execute(c *x509.Certificate) *LintResult + func (l *IANURIFormat) Initialize() error + type IANURIIA5String struct + func (l *IANURIIA5String) CheckApplies(c *x509.Certificate) bool + func (l *IANURIIA5String) Execute(c *x509.Certificate) *LintResult + func (l *IANURIIA5String) Initialize() error + type IDNMalformedUnicode struct + func (l *IDNMalformedUnicode) CheckApplies(c *x509.Certificate) bool + func (l *IDNMalformedUnicode) Execute(c *x509.Certificate) *LintResult + func (l *IDNMalformedUnicode) Initialize() error + type IDNNotNFC struct + func (l *IDNNotNFC) CheckApplies(c *x509.Certificate) bool + func (l *IDNNotNFC) Execute(c *x509.Certificate) *LintResult + func (l *IDNNotNFC) Initialize() error + type InhibitAnyPolicyNotCritical struct + func (l *InhibitAnyPolicyNotCritical) CheckApplies(cert *x509.Certificate) bool + func (l *InhibitAnyPolicyNotCritical) Execute(cert *x509.Certificate) *LintResult + func (l *InhibitAnyPolicyNotCritical) Initialize() error + type InvalidCertificateVersion struct + func (l *InvalidCertificateVersion) CheckApplies(cert *x509.Certificate) bool + func (l *InvalidCertificateVersion) Execute(cert *x509.Certificate) *LintResult + func (l *InvalidCertificateVersion) Initialize() error + type IssuerDNCountryNotPrintableString struct + func (l *IssuerDNCountryNotPrintableString) CheckApplies(c *x509.Certificate) bool + func (l *IssuerDNCountryNotPrintableString) Execute(c *x509.Certificate) *LintResult + func (l *IssuerDNCountryNotPrintableString) Initialize() error + type IssuerDNLeadingSpace struct + func (l *IssuerDNLeadingSpace) CheckApplies(c *x509.Certificate) bool + func (l *IssuerDNLeadingSpace) Execute(c *x509.Certificate) *LintResult + func (l *IssuerDNLeadingSpace) Initialize() error + type IssuerDNTrailingSpace struct + func (l *IssuerDNTrailingSpace) CheckApplies(c *x509.Certificate) bool + func (l *IssuerDNTrailingSpace) Execute(c *x509.Certificate) *LintResult + func (l *IssuerDNTrailingSpace) Initialize() error + type IssuerRDNHasMultipleAttribute struct + func (l *IssuerRDNHasMultipleAttribute) CheckApplies(c *x509.Certificate) bool + func (l *IssuerRDNHasMultipleAttribute) Execute(c *x509.Certificate) *LintResult + func (l *IssuerRDNHasMultipleAttribute) Initialize() error + type Lint struct + Citation string + Description string + EffectiveDate time.Time + Lint LintInterface + Name string + Source LintSource + func (l *Lint) CheckEffective(c *x509.Certificate) bool + func (l *Lint) Execute(cert *x509.Certificate) *LintResult + type LintInterface interface + CheckApplies func(c *x509.Certificate) bool + Execute func(c *x509.Certificate) *LintResult + Initialize func() error + type LintResult struct + Details string + Status LintStatus + type LintSource int + const AWSLabs + const AppleCTPolicy + const CABFBaselineRequirements + const CABFEVGuidelines + const EtsiEsi + const RFC5280 + const RFC5480 + const RFC5891 + const UnknownLintSource + const ZLint + type LintStatus int + const Error + const Fatal + const NA + const NE + const Notice + const Pass + const Reserved + const Warn + func (e *LintStatus) UnmarshalJSON(data []byte) error + func (e LintStatus) MarshalJSON() ([]byte, error) + func (e LintStatus) String() string + type SANDNSDuplicate struct + func (l *SANDNSDuplicate) CheckApplies(c *x509.Certificate) bool + func (l *SANDNSDuplicate) Execute(c *x509.Certificate) *LintResult + func (l *SANDNSDuplicate) Initialize() error + type SANDNSNotIA5String struct + func (l *SANDNSNotIA5String) CheckApplies(c *x509.Certificate) bool + func (l *SANDNSNotIA5String) Execute(c *x509.Certificate) *LintResult + func (l *SANDNSNotIA5String) Initialize() error + type SANDNSNull struct + func (l *SANDNSNull) CheckApplies(c *x509.Certificate) bool + func (l *SANDNSNull) Execute(c *x509.Certificate) *LintResult + func (l *SANDNSNull) Initialize() error + type SANDNSPeriod struct + func (l *SANDNSPeriod) CheckApplies(c *x509.Certificate) bool + func (l *SANDNSPeriod) Execute(c *x509.Certificate) *LintResult + func (l *SANDNSPeriod) Initialize() error + type SANDNSTooLong struct + func (l *SANDNSTooLong) CheckApplies(c *x509.Certificate) bool + func (l *SANDNSTooLong) Execute(c *x509.Certificate) *LintResult + func (l *SANDNSTooLong) Initialize() error + type SANDirName struct + func (l *SANDirName) CheckApplies(c *x509.Certificate) bool + func (l *SANDirName) Execute(c *x509.Certificate) *LintResult + func (l *SANDirName) Initialize() error + type SANEDI struct + func (l *SANEDI) CheckApplies(c *x509.Certificate) bool + func (l *SANEDI) Execute(c *x509.Certificate) *LintResult + func (l *SANEDI) Initialize() error + type SANEmptyName struct + func (l *SANEmptyName) CheckApplies(c *x509.Certificate) bool + func (l *SANEmptyName) Execute(c *x509.Certificate) *LintResult + func (l *SANEmptyName) Initialize() error + type SANIsSpaceDNS struct + func (l *SANIsSpaceDNS) CheckApplies(c *x509.Certificate) bool + func (l *SANIsSpaceDNS) Execute(c *x509.Certificate) *LintResult + func (l *SANIsSpaceDNS) Initialize() error + type SANMissing struct + func (l *SANMissing) CheckApplies(c *x509.Certificate) bool + func (l *SANMissing) Execute(c *x509.Certificate) *LintResult + func (l *SANMissing) Initialize() error + type SANNoEntry struct + func (l *SANNoEntry) CheckApplies(c *x509.Certificate) bool + func (l *SANNoEntry) Execute(c *x509.Certificate) *LintResult + func (l *SANNoEntry) Initialize() error + type SANOtherName struct + func (l *SANOtherName) CheckApplies(c *x509.Certificate) bool + func (l *SANOtherName) Execute(c *x509.Certificate) *LintResult + func (l *SANOtherName) Initialize() error + type SANRegId struct + func (l *SANRegId) CheckApplies(c *x509.Certificate) bool + func (l *SANRegId) Execute(c *x509.Certificate) *LintResult + func (l *SANRegId) Initialize() error + type SANReservedIP struct + func (l *SANReservedIP) CheckApplies(c *x509.Certificate) bool + func (l *SANReservedIP) Execute(c *x509.Certificate) *LintResult + func (l *SANReservedIP) Initialize() error + type SANRfc822 struct + func (l *SANRfc822) CheckApplies(c *x509.Certificate) bool + func (l *SANRfc822) Execute(c *x509.Certificate) *LintResult + func (l *SANRfc822) Initialize() error + type SANURI struct + func (l *SANURI) CheckApplies(c *x509.Certificate) bool + func (l *SANURI) Execute(c *x509.Certificate) *LintResult + func (l *SANURI) Initialize() error + type SANURIHost struct + func (l *SANURIHost) CheckApplies(c *x509.Certificate) bool + func (l *SANURIHost) Execute(c *x509.Certificate) *LintResult + func (l *SANURIHost) Initialize() error + type SANWildCardFirst struct + func (l *SANWildCardFirst) CheckApplies(c *x509.Certificate) bool + func (l *SANWildCardFirst) Execute(c *x509.Certificate) *LintResult + func (l *SANWildCardFirst) Initialize() error + type SerialNumberNotPositive struct + func (l *SerialNumberNotPositive) CheckApplies(cert *x509.Certificate) bool + func (l *SerialNumberNotPositive) Execute(cert *x509.Certificate) *LintResult + func (l *SerialNumberNotPositive) Initialize() error + type SubCANameConstraintsNotCritical struct + func (l *SubCANameConstraintsNotCritical) CheckApplies(cert *x509.Certificate) bool + func (l *SubCANameConstraintsNotCritical) Execute(cert *x509.Certificate) *LintResult + func (l *SubCANameConstraintsNotCritical) Initialize() error + type SubjectDNCountryNotPrintableString struct + func (l *SubjectDNCountryNotPrintableString) CheckApplies(c *x509.Certificate) bool + func (l *SubjectDNCountryNotPrintableString) Execute(c *x509.Certificate) *LintResult + func (l *SubjectDNCountryNotPrintableString) Initialize() error + type SubjectDNLeadingSpace struct + func (l *SubjectDNLeadingSpace) CheckApplies(c *x509.Certificate) bool + func (l *SubjectDNLeadingSpace) Execute(c *x509.Certificate) *LintResult + func (l *SubjectDNLeadingSpace) Initialize() error + type SubjectDNSerialNumberMaxLength struct + func (l *SubjectDNSerialNumberMaxLength) CheckApplies(c *x509.Certificate) bool + func (l *SubjectDNSerialNumberMaxLength) Execute(c *x509.Certificate) *LintResult + func (l *SubjectDNSerialNumberMaxLength) Initialize() error + type SubjectDNSerialNumberNotPrintableString struct + func (l *SubjectDNSerialNumberNotPrintableString) CheckApplies(c *x509.Certificate) bool + func (l *SubjectDNSerialNumberNotPrintableString) Execute(c *x509.Certificate) *LintResult + func (l *SubjectDNSerialNumberNotPrintableString) Initialize() error + type SubjectDNTrailingSpace struct + func (l *SubjectDNTrailingSpace) CheckApplies(c *x509.Certificate) bool + func (l *SubjectDNTrailingSpace) Execute(c *x509.Certificate) *LintResult + func (l *SubjectDNTrailingSpace) Initialize() error + type SubjectRDNHasMultipleAttribute struct + func (l *SubjectRDNHasMultipleAttribute) CheckApplies(c *x509.Certificate) bool + func (l *SubjectRDNHasMultipleAttribute) Execute(c *x509.Certificate) *LintResult + func (l *SubjectRDNHasMultipleAttribute) Initialize() error Other modules containing this package github.com/cpu/ylint/v2