We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
-----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY----- are 27 + 25 = 52 characters.
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
27 + 25 = 52
But the code truncates 57 characters:
function rsa_import_pem_private_pkcs8(key: string): RSAKeyParams { const trimmedKey = key.substr(27, key.length - 57); }
So I get the error InvalidCharacterError: The string to be decoded is not correctly encoded from atob.
atob
My workaround is to add 5 more - at the end of the file. -----END PRIVATE KEY----------.
-
-----END PRIVATE KEY----------
The text was updated successfully, but these errors were encountered:
No branches or pull requests
-----BEGIN PRIVATE KEY-----
and-----END PRIVATE KEY-----
are27 + 25 = 52
characters.But the code truncates 57 characters:
So I get the error InvalidCharacterError: The string to be decoded is not correctly encoded from
atob
.My workaround is to add 5 more
-
at the end of the file.-----END PRIVATE KEY----------
.The text was updated successfully, but these errors were encountered: