Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Regression from 1.3.1 #462

Description

@viewers

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')

if isinstance(not_after, GeneralizedTime):
    not_after = datetime.strptime(not_after, '%Y%m%d%H%M%SZ')
else:
    not_after = datetime.strptime(not_after, '%y%m%d%H%M%SZ')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions