briansmith / ring

Safe, fast, small crypto using Rust
Other
3.64k stars 682 forks source link

Better documentation on how to use / convert OpenSSL generated keys with ring #2125

Open juliankrieger opened 2 days ago

juliankrieger commented 2 days ago

I'm using ring in an environment where private ( openssl generated ) keys are received from parts of our infrastructure. This I can not change.

I found https://github.com/briansmith/ring/issues/370 for conversion / stripping of openssl generated RSA keys to make them compatible with ring. I have tried and failed to convert an openssl generated ECDSA key to work with ring, but I keep failing. I've tried using https://lapo.it/asn1js to read out the offset until the SEQUENCE part starts and stripping my key DER that way, but no luck.

I've added a test file to this issue.

Is there any possibility of adding information regarding openssl compatibility into ring? Archive.zip