-
Notifications
You must be signed in to change notification settings - Fork 105
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
RS256 failed when private key has passphrase #224
Comments
@oyljerry oh no! |
@lolgear Thanks for your response. |
@oyljerry
I assume that if you remove these parameters, JWT will work well. |
@lolgear I generate private key with password 123456, Then, I remove encrypt section
|
New Issue Checklist
Issue Info
Issue Description and Steps
I am use RS256 to encode token, when the private key generated without password, it works fine, however, when I set password, the code is not worked. It always failed with error:
error Domain=NSOSStatusErrorDomain Code=-50 "RSA private key creation from data failed" (paramErr: error in user parameter list) UserInfo={NSDescription=RSA private key creation from data failed}
The privateKey is as below. and passPhrase is "123456"
The text was updated successfully, but these errors were encountered: