tlsfuzzer / python-ecdsa

pure-python ECDSA signature/verification and ECDH key agreement
Other
916 stars 316 forks source link

Extracting VerifyingKey from X.509 certificates #119

Open tomato42 opened 5 years ago

tomato42 commented 5 years ago

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

marti1125 commented 1 year ago

Is it hard to implement that feature?

tomato42 commented 1 year ago

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: