mirror of
https://github.com/status-im/consul.git
synced 2025-01-28 22:45:58 +00:00
ca: make receiver variable name consistent
Every other method uses c not ca
This commit is contained in:
parent
73730d356c
commit
eaea56c7b2
@ -1539,12 +1539,12 @@ func (c *CAManager) SignCertificate(csr *x509.CertificateRequest, spiffeID conne
|
||||
return &reply, nil
|
||||
}
|
||||
|
||||
func (ca *CAManager) checkExpired(pem string) error {
|
||||
func (c *CAManager) checkExpired(pem string) error {
|
||||
cert, err := connect.ParseCert(pem)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if cert.NotAfter.Before(ca.timeNow()) {
|
||||
if cert.NotAfter.Before(c.timeNow()) {
|
||||
return fmt.Errorf("certificate expired, expiration date: %s ", cert.NotAfter.String())
|
||||
}
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user