Skip to content

Commit

Permalink
Fix certificate problem notices
Browse files Browse the repository at this point in the history
  • Loading branch information
driskell committed Feb 18, 2017
1 parent a6cd4e6 commit 6f12e0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Expand Up @@ -2,11 +2,12 @@

## 2.0.5

*30th January 2017*
*18th February 2017*

* Fix -stdin run mode not being able to exit cleanly (#353)
* Fix address pool rotation so that the same connection address is used on every
connection attempt
* Fix certificate problem notices showing invalid year values
* Fix end-to-end tests

## 2.0.4
Expand Down
4 changes: 2 additions & 2 deletions lc-lib/transports/tcp/tcp.go
Expand Up @@ -263,12 +263,12 @@ func (t *TransportTCP) checkClientCertificates() {

for _, cert := range t.config.certificateList {
if cert.NotBefore.After(now) {
log.Warning("The SSL Certificate with subject '%s' is not valid until %s.", cert.Subject, cert.NotBefore.Format("Jan _2 2016"))
log.Warning("The client certificate with common name '%s' is not valid until %s.", cert.Subject.CommonName, cert.NotBefore.Format("Jan 02 2006"))
certIssues = true
}

if cert.NotAfter.Before(now) {
log.Warning("The SSL Certificate with subject '%s' expired on %s.", cert.Subject, cert.NotAfter.Format("Jan _2 2016"))
log.Warning("The client certificate with common name '%s' expired on %s.", cert.Subject.CommonName, cert.NotAfter.Format("Jan 02 2006"))
certIssues = true
}
}
Expand Down

0 comments on commit 6f12e0c

Please sign in to comment.