Questions tagged [x509certificate2]

.NET Class for handling X.509 Certificates

922 questions
-1
votes
1 answer

C#. p12 contains two certificates. How to get them?

I have a p12 certificate that contains several certificates. How to get a collection of these certificates? Code: new X509Certificate2(bytes, pass); returns last. Thx!
-1
votes
1 answer

How do I convert DER Format certificate x509 into human readable format?

How can I convert a DER Format certificate x509 into a human readable format in JavaScript?
-1
votes
1 answer

X509Certificate2.Verify wrongly verifies bogus certificate

In my application, I call the .NET method X509Certificate2.Verify on a client certificate and sometimes it returns True (valid) when it should not. This happens when I deliberately try to fool it. I have code like this: ' Obtain a client cert in…
Mark R
  • 251
  • 3
  • 12
-1
votes
1 answer

When I install CA certificate to local computer (TR), same key get installed in current user as well

Hi I'm setting up my web site with certificate authentication. When I installed the client authentication Certificate on the server to Local Computer\Trusted Root, it get installed to Current User\Trusted Root as well. So I get 403 error. If I…
Ash
  • 447
  • 2
  • 6
  • 19
-2
votes
1 answer

GetSerialNumber gives different value than SerialNumber in an X509Certificate2

I have a certificate data (byte array): var cert = new X509Certificate2(certBytes); var serialBytes = cert.GetSerialNumber(); var serialString = cert.SerialNumber; when converting serialBytes to hex…
mshwf
  • 7,009
  • 12
  • 59
  • 133
-2
votes
2 answers

What is this "|" (pipe) means in C#?

In the context of Security Cryptography X509Certificates, I've came across this in one of the projects code. X509Store store = new X509Store("MY", StoreLocation.CurrentUser); store.Open(OpenFlags.OpenExistingOnly | OpenFlags.ReadWrite); What is…
Jason
  • 1,680
  • 3
  • 13
  • 16
1 2 3
61
62