You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting the following error while encoding an object:
pyasn1.error.PyAsn1Error: Missing "Z" time zone specifier: <GeneralizedTime value object, tagSet <TagSet object, tags 128:0:0>, encoding us-ascii, payload [20230519154003]>
The asn1 object was previously created by decoding from bytes without any error. I am simply decoding from bytes, and then encoding again.
I have gone through the code, and find that the encoder class in the DER package uses the encoder class in the CER package where the time zone is a forced requirement in a datetime object.
But timezone is optional in the ASN.1 GeneralizedTime specification.
Is there a simple way to bypass the timezone requirement or does the code have to be modified?
The text was updated successfully, but these errors were encountered:
Hi,
I am getting the following error while encoding an object:
pyasn1.error.PyAsn1Error: Missing "Z" time zone specifier: <GeneralizedTime value object, tagSet <TagSet object, tags 128:0:0>, encoding us-ascii, payload [20230519154003]>
The asn1 object was previously created by decoding from bytes without any error. I am simply decoding from bytes, and then encoding again.
I have gone through the code, and find that the encoder class in the DER package uses the encoder class in the CER package where the time zone is a forced requirement in a datetime object.
But timezone is optional in the ASN.1 GeneralizedTime specification.
Is there a simple way to bypass the timezone requirement or does the code have to be modified?
The text was updated successfully, but these errors were encountered: