[Yum-devel] [PATCH] Add a hint to the invalid cert msg. BZ 781836.
James Antill
james at fedoraproject.org
Wed Jan 18 17:13:10 UTC 2012
On Wed, 2012-01-18 at 11:43 +0100, Zdeněk Pavlas wrote:
> ..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")
Pretty sure 666 translators just searched for your home address :).
I also wonder if we should put this somewhere generic. But, meh.
Also what does the curl/nss message say?
More information about the Yum-devel
mailing list