.NET Class for handling X.509 Certificates
Questions tagged [x509certificate2]
922 questions
0
votes
1 answer
How can a verify my WCF message is signed and encrypted?
How can I verify that my WCF message has been signed? I've got my setup running and working just fine, but need to be able to inspect the signature on the server side. How is this done? I'm using MsmqIntegrationBinding, and signing it with an…

Random
- 1,896
- 3
- 21
- 33
0
votes
1 answer
Converting a PKCS12 certificate to PEM certificate in .NET and vice versa?
PKCS12 certificate is stored in binary format while PEM certificate is an ASCII file which can be opened and viewed in a text editor.
Q1. How can I convert a PEM ceritificate of the form below to a PKCS12 certificate programmatically?
-----BEGIN…

pankajt
- 7,642
- 12
- 39
- 60
0
votes
2 answers
Programmatically generating, storing and using X.509 certificates in C#
I'm working on an application written in C# where I basically need to act as my own certificate authority. The data flow is something like this:
The end user generates a public/private key pair and sends me proof of their identity and a certificate…

RickNZ
- 18,448
- 3
- 51
- 66
0
votes
1 answer
Certificate is removed from the machine keyset when the application is closed
I'm trying to deploy a certificate into a windows-my store in order to use it for SSL in IIS6.0.
When the application is running I don't see any errors in SSLDiag output and everything works perfectly, but once I close the application SSLDiag shows…

username
- 3,378
- 5
- 44
- 75
0
votes
1 answer
WCF - x509 Certificate from Smart Card - 'Cannot Verify Signature'
I have a WCF service running on IIS6 which is configured with a WSHTTPBinding using the "Transport with Message Credentials" security setting (with the transport client credentials set to 'None' and the Message set to 'Certificate'. This is being…

iMortalitySX
- 1,478
- 1
- 9
- 23
0
votes
1 answer
Accessing Impersonated users key store
I am impersonating a service user account in order to connect to a webservice that requires a cert to connect. I have installed the client cert on the service account on the machine which is running the code however I receive the error…

Bitfiddler
- 3,942
- 7
- 36
- 51
0
votes
2 answers
Encrypt xml file in.net and Decrypt encrypted file in java using x509 certificate
I am new to xml encryption i want to encrypt xml file in .net and decrypt the encrypted file in java using x509 certificate. Can this be done?

kevin159
- 69
- 2
- 11
0
votes
2 answers
Digital signature with x509 certificate and encryption
I want to sign the xml document which will be validated at server. i dont know how to sign and encrypt the xml file using digital certificates such as .cer and .pfx files. i googled out & found various examples but could not understand the standard…

kevin159
- 69
- 2
- 11
-1
votes
0 answers
X509Certificate2 Raw Data does not contain Friendly Name
I have one X509Certificate2 certificate in which I have FriendlyName "test".
When i am getting the RawData from that certifcate and trying to create a new one from that then i am getting FriendlyName as blank ("").
X509Certificate2 x509 = new…

user2671229
- 19
- 1
- 4
-1
votes
1 answer
How to add Authority Ket Identifier Extension to my certificate?
I used default X509Extension:
certificateRequest.CertificateExtensions.Add(new X509Extension(new Oid("2.5.29.35"), issuer.GetPublicKey(), false));
But when i decode it, this extension is broken and has a strange order of random symbols.
In .NET 7 i…

Murrchalkina
- 31
- 5
-1
votes
1 answer
HttpWebRequest - C# - Post with Certificate.crt + private.key
How can I send a certificate with Private.key?
I am sending only the certificate and it returns a 403 Forbidden error.
Certificate + Private.key
GetAccessToken Code
PegarCertificadoServicoPeloIndividuo - Code
-1
votes
1 answer
Is it possible to create an image using dotnet aspnet as a base and dotnet sdk as build with powershell?
I have specific task,
Docker file that has 2 stages.
First stage is dotnet/aspnet:6.0 as base
And then I have dotnet/sdk:6.0 as build stage.
I need PowerShell in this docker container so i could exec some commands after in running container.
Here is…

HugoOlsen
- 9
- 3
-1
votes
1 answer
X509Certificate2 for unit tests
I'm currently unit testing .NET application with NUnit framework.
Some of the methods we use involve getting X509Certificate2 object as input and checking if one or more properties match certain crateria.
For example, method that check whether the…

Emilio
- 11
- 5
-1
votes
2 answers
Can FreeRADIUS be used for dynamic VLAN assignment based on a certificate attribute in EAP-TLS?
I would like to use FreeRADIUS to dynamically assign VLAN tags using the Tunnel Private Group ID field.
I would like to do this via EAP-TLS and have the freeRADIUS server assign the VLAN id based on a given certificate attribute i.e the name value…

Mohamed Ridha Hamid
- 7
- 1
- 2
-1
votes
1 answer
Unable to use Let's encrypt certificate into Azure Web App
I just installed this plugin into my azure webapp
https://github.com/shibayan/azure-appservice-letsencrypt
It works perfectly as SSL certificate for the hosting on my custom domain.
But now, I need to use this certificate to sign operation in my…

hugo
- 1,829
- 1
- 18
- 47