python-ecdsa icon indicating copy to clipboard operation
python-ecdsa copied to clipboard

Extracting VerifyingKey from X.509 certificates

Open tomato42 opened this issue 5 years ago • 2 comments

The public keys are not usually distributed as bare RFC5912 ASN.1 objects but rather as X.509 certificates.

Add support for parsing certificates (in PEM and DER format) to VerifyingKey.

see also: #113

tomato42 avatar Sep 29 '19 11:09 tomato42

Is it hard to implement that feature?

marti1125 avatar Feb 16 '23 01:02 marti1125

It depends: if you're familiar with ASN.1 and DER parsing, no, it's quite easy (it's just about finding the correct node and passing it to the existing parsing function). If you haven't had your mind warped by this particular seed of primordial chaos: no, not something I can recommend attempting :smiley:

tomato42 avatar Feb 16 '23 15:02 tomato42