Skip to content
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

Cannot decrypt private key encrypted with passphrase #17

Open
longnguyennhnd opened this issue Nov 16, 2021 · 0 comments
Open

Cannot decrypt private key encrypted with passphrase #17

longnguyennhnd opened this issue Nov 16, 2021 · 0 comments

Comments

@longnguyennhnd
Copy link

longnguyennhnd commented Nov 16, 2021

I am trying to generate 1 certificate with 1 public key and 1 private key with the following format

-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,5E39D2DDBA544FDE

3+ptiWruvYHzhX+rpSC3852..............................
-----END RSA PRIVATE KEY-----

But when I run the following code
ICertificateProvider provider = new CertificateFromFileProvider(publicKey, privateKey, false, passpharse);
, it returns an exeption like this:
The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
Looking forward to hearing from you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant