question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for raw(?) EC private keys

See original GitHub issue

I’m not sure what the actual name of the format is, but EC keys are often generated in a non-PKCS8 format by default, e.g., with

$ openssl ecparam -out core/src/test/resources/com/linecorp/armeria/internal/crypto/pkcs1.key -genkey -name prime256v1

and currently Armeria can’t load them. It’d be nice if it could. Not sure the ideal way, but I’ve found that converting to PKCS8 when there’s an error works ok, but quite gross…

https://github.com/curioswitch/curiostack/blob/master/common/server/framework/src/main/java/org/curioswitch/common/server/framework/armeria/SslContextKeyConverter.java

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sivaallicommented, Jan 3, 2020

Oh yeah. My bad.

1reaction
trustincommented, Jan 3, 2020

I guess this issue may be a duplicate of #1985? It’s not EC but PKCS12 that causes the problem IIUC.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Converting raw ECC private key into ASN.1 DER encoded key
If your structure lacks a public key, I would first just try and import it; it's pretty easy to compute the public key...
Read more >
Python : Create ECC Keys from private and public key ...
This is a test key. The details of generating a key from the raw data depend on the respective library, e.g. in PyCryptodome...
Read more >
Command Line Elliptic Curve Operations - OpenSSLWiki
OpenSSL provides two command line tools for working with keys suitable for Elliptic Curve (EC) algorithms: openssl ecparam openssl ec.
Read more >
EC Private Keys Are Incompatible With iOS/OS X Security ...
The problem begins when I extract these two octet strings and present them to the Security APIs on OS X and iOS. These...
Read more >
MacOS: EC public key creation from data failed
takeRetainedValue() as Error }. This helped. but I have another question. If I use the following PHP code: $kString = "-----BEGIN EC PRIVATE...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found