Howdy,
I notice that OpenSSL has the 'asn1parse' utility for reading PEM and DER formatted keys. Is there an analogue that allows to write back a new value for the secret integers in private keys? Or can I encode data with 'asn1parse' and then output it in PEM format to build a key?
asn1parse works "both ways", if that's what you mean; check the "genstr" and "genconf" parts of the man page.
Also, not my project but https://github.com/wllm-rbnt/asn1templateis awesome! Sometimes, you start with a PEM / DER and working backwards towards the format asn1parse expects is super tedious. That tool is a huge time saver.
Cheers, BBBPS You can totally make keygen deterministic like that, but ofc you are deep into roll-your-own at that point. So ... tread lightly
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature