Open James-E-A opened 9 months ago
Thank you for bringing this issue.
You are using an internal function of the whole ASN.1 compiler. You are getting an error because your module is importing undefined objects. You should better use the tool pycrate_asn1compile.py
to compile this kind of module. I have to admit the Wiki maybe a bit dated for your case...
Please note a new repository has been setup, including new fixes. This repo will keep being maintained : https://github.com/pycrate-org/pycrate. Any contribution related to the Wiki or any other parts of the library will be much appreciated.
I'm trying to add a new
AlgorithmIdentifier
in to X.509 at application start-up time, using the function described on the Wiki, but I'm seeing this bizarre behavior where the firstcompile_text()
fails, but the second succeeds, for some reason:This is obviously pretty disturbing, and I'd much rather see the "right" way to do this, but the Wiki doesn't seem to go into any detail...