Open JamesTheAwesomeDude opened 7 months ago
The object you are using here AlgorithmIdentifier
is a parameterized one, which is not usable for encoding / decoding. This is the reason you get an error here.
Please note a new repository has been setup, including new fixes. This repo will keep being maintained : https://github.com/pycrate-org/pycrate. It includes an explicit exception for your case, to indicate parameterized objects are not to be used for encoding / decoding. In addition, a tiny tool pycrate_certdecode.py
has been added to help check whole x.509 certificate.
Am I doing something wrong, or does
pycrate_asn1dir.X509_2016.AuthenticationFramework.AlgorithmIdentifier
not currently work as a stand-alone parser?I'm getting this error on CPython 3.11.6, pycrate 0.7.0
The test input should be valid; I lifted it from offset 583 of this file.