[Yum-devel] [PATCH] Add a hint to the invalid cert msg. BZ 781836.

Zdeněk Pavlas zpavlas at redhat.com
Wed Jan 18 10:43:01 UTC 2012


..because "Peer cert cannot be verified or peer
cert invalid" is not helpfull at all.

IMO expired sysdates should still count as 'valid'
and never change the semantics of a program.
(think of testing)
---
 urlgrabber/grabber.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py
index fb365bb..d5d7e28 100644
--- a/urlgrabber/grabber.py
+++ b/urlgrabber/grabber.py
@@ -1379,6 +1379,8 @@ class PyCurlFileObject(object):
 
             elif errcode == 60:
                 msg = _("Peer cert cannot be verified or peer cert invalid")
+                if time.gmtime()[0] < 2012:
+                    msg += _(", please check the system date")
                 err = URLGrabError(14, msg)
                 err.url = errurl
                 raise err
-- 
1.7.4.4



More information about the Yum-devel mailing list