[PD1] Fixed checking certificate NotAfter and NotBefore dates
This commit is contained in:
parent
4ea8315aed
commit
91bc887ba5
4 changed files with 38 additions and 6 deletions
|
@ -235,7 +235,7 @@ func (ds DataStore) storeUserCertIfNotExists(uid string, cert x509.Certificate)
|
|||
`
|
||||
_, err := ds.db.Exec(insertQuery, uid, cert.Raw)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Error storing user certificate for UID %s: %v\n", uid, err)
|
||||
return fmt.Errorf("error storing user certificate for UID %s: %v", uid, err)
|
||||
}
|
||||
log.Printf("User certificate for UID %s stored successfully.\n", uid)
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue