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

"The certificate key algorithm is not supported." error for PrivateKey of certificate #47

Open
mrtsrdm opened this issue Mar 8, 2022 · 2 comments

Comments

@mrtsrdm
Copy link

mrtsrdm commented Mar 8, 2022

ı am trying search the PrivateKey property of my certificate which is created by using 'NewRootCertificate' method, but it threws exception.

string pathd = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "localhost_root_l1.pfx");
X509Certificate2 crt = new X509Certificate2(pathd, "1234");
image

what is the reason of this error ?

@mrtsrdm
Copy link
Author

mrtsrdm commented Mar 9, 2022

hi @damienbod ,

do you have any idea about this issue ?

@damienbod
Copy link
Owner

Can't see anything wrong here, can you compare to the tests or examples?

Greetings Damien

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

2 participants