-
Notifications
You must be signed in to change notification settings - Fork 299
Regression from 1.3.1 #462
Comments
We got a report in errbotio/errbot#1101. I'm wondering if that is related to this. A user suggested to revert to 1.3.1 from 1.3.3 and that seemed to have solve their problem. |
There is a general problem with how certificate date formats are being processed.
Adding some extra logging lines:
It's parsing something but it's getting it really wrong, compared to openssl which gets it right:
EDIT: Rolling back to 1.3.1 fixed the problem for me as well. |
I have come across the same issue. I have discovered that pyasn1 library is already handling this problem. They seem to support 2 time variants GeneralizedTime and UTCTime. They seem to differ on number number of digits and few other things. I am not expert in certificates, but I would imagine that you can get times specified in one of those variants depending on certificate type or software used. I have prepared a patch, that is using built in methods for those types for time conversion rather than serializing them and trying to parse them back. Please consider #472. |
1.3.2 works no? |
@viewers @sijis @wrouesnel @tomstarstuck: Have you tested with "master"? It works? |
It seems that the changes in xmlstream/cert.py are causing issues when connecting to google gcm servers.
(Not properly decoding the certificate date)
The old code works well -
if isinstance(not_before, GeneralizedTime):
not_before = datetime.strptime(not_before, '%Y%m%d%H%M%SZ')
else:
not_before = datetime.strptime(not_before, '%y%m%d%H%M%SZ')
The text was updated successfully, but these errors were encountered: