You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to load a private ecdsa key (in pem format) to be used for signing. I was having several issues with my signed tokens, so I did some debugging. Here is a code snippet (using a throwaway private key):
Here, you would expect the output from original_key.to_pem to match key_string. This is the case in Ruby 2.3.0, but in JRuby 1.7.27 (and JRuby 9.2.7.0), this is what my output looks like:
I have been trying to figure out why this is happening for a while now, and I am stumped. Does anyone know what's going on, and how I can get it to work properly.
Thanks!
The text was updated successfully, but these errors were encountered:
PKey::EC support isn't 'complete' - we could use a helping hand figuring this one out.
not sure what's going on here but instead of looking at pem outputs would try figuring out the parameters, unfortunately PKey::EC#to_text isn't implemented - could be a good starting point.
Hey there,
I am trying to load a private ecdsa key (in pem format) to be used for signing. I was having several issues with my signed tokens, so I did some debugging. Here is a code snippet (using a throwaway private key):
Here, you would expect the output from
original_key.to_pem
to matchkey_string
. This is the case in Ruby 2.3.0, but in JRuby 1.7.27 (and JRuby 9.2.7.0), this is what my output looks like:I have been trying to figure out why this is happening for a while now, and I am stumped. Does anyone know what's going on, and how I can get it to work properly.
Thanks!
The text was updated successfully, but these errors were encountered: