Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Differential Revision: D66679184 fbshipit-source-id: f935f04ff278279e63bd90a4686531c407f7d446
- Loading branch information
Differential Revision: D66679184 fbshipit-source-id: f935f04ff278279e63bd90a4686531c407f7d446
dbac257
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are you? While testing with your code, I found that the “Bouncy Castle Cryptography” library apparently has some problem when working with the decryption of the private pen file, in this fragment of the code it fails:
So it always usually throws:
throw new CryptographicException(“The provided PEM does not contain a valid RSA private key.”);
Can you think of a solution to this? How could I make it work?
Fuentes:
Line 253
https://github.com/bcgit/bc-csharp/blob/b9ac9fffc29164740527ec77a7ca4e539a8c7026/crypto/src/openssl/PEMReader.cs#L254
https://github.com/bcgit/bc-csharp/tree/b9ac9fffc29164740527ec77a7ca4e539a8c7026