jwt-framework icon indicating copy to clipboard operation
jwt-framework copied to clipboard

Load Ed25519 key

Open sv-db opened this issue 5 years ago • 5 comments

Hi, im trying to implement your framework. I've got it all working upto loading a a Ed25519 key. When i generate a key trough $key = JWKFactory::createOKPKey('Ed25519'); everything works fine, but when I try to load a openssl generated PEM keyfile from disk i'm getting a Invalid argument exception with Unable to load the key.

Is there any way to do this?

sv-db avatar Oct 13 '19 13:10 sv-db

Hi @sv-db,

Unfortunately, the conversion from PEM to JWK for Ed25519/X25519 and Ed448/X448 curves is not supported. As the RFC8410 is now a proposed standard, this feature could be added.

Spomky avatar Oct 13 '19 20:10 Spomky

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 22 '20 06:06 stale[bot]

Hi First of all, Thanks for your great work! I am interested on this feature. In particular the load of PEM file for X25519 key pairs. There are any update?

mirkojoshua avatar Mar 18 '21 15:03 mirkojoshua

Hi First of all, Thanks for your great work! I am interested on this feature. In particular the load of PEM file for X25519 key pairs. There are any update?

https://www.rfc-editor.org/info/rfc8410

This states it is still a proposed standard, not an actual standard yet.

mdeboer avatar Apr 11 '22 08:04 mdeboer

Hi @mdeboer,

Thank you for the reminder. I created a PR for that (still in progress). I need to add tests to make sure it works fine.

Spomky avatar Apr 11 '22 20:04 Spomky

Will be available in 3.1.0

Spomky avatar Aug 22 '22 19:08 Spomky

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Feb 25 '24 04:02 github-actions[bot]