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
When calling sign, an exception was thrown about atob being called with invalid text.
After debugging, I narrowed it down to the pemToArrayBuffer call and it turns out my private key didn't begin with:
"-----BEGIN PRIVATE KEY-----"
but began with
"-----BEGIN RSA PRIVATE KEY-----"
I was able to resolve this by converting the private key to the correct format with:
When calling
sign
, an exception was thrown aboutatob
being called with invalid text.After debugging, I narrowed it down to the
pemToArrayBuffer
call and it turns out my private key didn't begin with:"-----BEGIN PRIVATE KEY-----"
but began with
"-----BEGIN RSA PRIVATE KEY-----"
I was able to resolve this by converting the private key to the correct format with:
openssl pkcs8 -topk8 -nocrypt -in private.pem -out private2.pem
Maybe you could put something in the FAQ in case someone encounters this.
The text was updated successfully, but these errors were encountered: