Top "X509certificate2" questions

.NET Class for handling X.509 Certificates

Exporting X.509 certificate WITHOUT private key

I thought this would be straightforward but apparently it isn't. I have a certificate installed that has a private key, …

c# .net ssl-certificate x509certificate2
HTTPS request fails using HttpClient

I am using the following code and get HttpRequestException exception: using (var handler = new HttpClientHandler()) { handler.ClientCertificateOptions = ClientCertificateOption.Manual; handler.…

c# asp.net-core .net-core x509certificate x509certificate2
PowerShell Get Certificate Thumbprint with Password PFX File

I'm trying to get the thumbprint of a password protected pfx file using this code: function Get-CertificateThumbprint { # # This will return …

powershell passwords x509certificate2
Export private key from X509Certificate object

We use C# code we build X509Certificate2 with .p12 file, in the constructor we insert the path to certificate, …

c# certificate base64 private-key x509certificate2
read client certificate from httprequest C#

I am trying to read an X509 certificate using Request.ClientCertificate but nothing is returned. The certificate is definitely being …

c# asp.net security x509certificate2
How to get private key from PKCS#12 (.p12) file using C#

Im trying to sign some data using PKCS#12 certificate ,however i have problem with obtaining private key from PKCS#12 (.p12) …

c# encryption x509certificate2 pkcs#12
'Cannot find the requested object' exception while creating X509Certificate2 from string

I am trying to create X509Certificate2 from string. Let me show an example: string keyBase64String = Convert.ToBase64String(…

c# encryption public-key-encryption x509certificate2
DOD Common Access Card (CAC) Authentication

I have figured out all the necessary steps to get DOD CAC card based client certificate authentication working in Apache, …

pki x509certificate2 mod-ssl cac
Export private/public keys from X509 certificate to PEM

is there any convenient way to export private/public keys from .p12 certificate in PEM format using .NET Core? Without …

c# .net-core pem x509certificate2
C# Export cert in pfx format

NET to export a certificate from the cert store into a PFX file. I'm trying to use the X509certificate2.…

pki pfx x509certificate2