Skip to content

Commit

Permalink
Refactor cert.go to remove unused certificate-related methods
Browse files Browse the repository at this point in the history
  • Loading branch information
arvvoid committed Sep 23, 2024
1 parent cd855e8 commit 763cb41
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,33 +255,3 @@ func (cm *certManager) displayCertInfoKeyPoints() [][2]string {

return result
}

// getCertORG returns the organization name from the certificate.
// The organization name is typically included in the certificate's subject field.
func (cm *certManager) getCertORG() string {
return cm.certORG
}

// getCertSERIAL returns the serial number from the certificate.
// The serial number is a unique identifier assigned by the certificate issuer.
func (cm *certManager) getCertSERIAL() string {
return cm.certSERIAL
}

// isExpired returns whether the certificate is expired.
// This indicates if the certificate's validity period has ended.
func (cm *certManager) isExpired() bool {
return cm.expired
}

// isExpiringSoon returns whether the certificate is expiring soon.
// This indicates if the certificate is approaching its expiration date.
func (cm *certManager) isExpiringSoon() bool {
return cm.expire_soon
}

// daysUntilExpire returns the number of days until the certificate expires.
// This provides a countdown of days remaining before the certificate becomes invalid.
func (cm *certManager) daysUntilExpire() uint16 {
return cm.expire_days
}

0 comments on commit 763cb41

Please sign in to comment.