Documentation
¶
Overview ¶
Package rotation detects excessive certificate rotation frequencies.
Index ¶
Constants ¶
View Source
const ( MinTrustAnchorDuration = 365 * 24 * time.Hour // 1 year MinIntermediateDuration = 30 * 24 * time.Hour // 30 days )
Minimum recommended durations per role.
View Source
const FindingExcessiveRotation = "EXCESSIVE_ROTATION"
FindingExcessiveRotation indicates a certificate with a shorter lifetime than recommended for its role.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
func Check(findings []store.CertFinding) []store.CertFinding
Check analyzes findings for excessive rotation and returns new EXCESSIVE_ROTATION findings.
Types ¶
type CertRole ¶
type CertRole string
CertRole classifies a certificate's role in a trust hierarchy.
const ( RoleTrustAnchor CertRole = "trust_anchor" RoleIntermediate CertRole = "intermediate_ca" RoleLeaf CertRole = "leaf" )
Certificate roles in a trust hierarchy.
func DetectRole ¶
func DetectRole(f *store.CertFinding) CertRole
DetectRole determines the certificate's role from finding metadata.
Click to show internal directories.
Click to hide internal directories.