-
-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get PEM using KEYUTIL.getPEM. #53
Comments
I had the same issue. After struggling with it for an hour or so I found that one requirement in KEYUTIL's code was not being satisfied:
Not sure if it's a bug in generateKeypair or what, but man that was annoying to find. |
I've fixed it today on version 4.2.3. Thanks. |
bumps I think this is back in 4.7.1-all-min
|
This is my code:
It results in this error:
keypair.prvKeyObj
is aRSAKey
object, and I believe that is what thersa.KEYUTIL.getPEM
method accepts basedon the docs. Why might I be getting this error?The text was updated successfully, but these errors were encountered: