Questions tagged [x509certificate2]

.NET Class for handling X.509 Certificates

792 questions
0
votes
1 answer

System.Security.Cryptography.X509Certificates.X509Certificate2Collection does not contain definition for 'Cast'

I'm trying to create a MapReduce job using HDInsight .NET SDK tutorial. In creating the JobSubmissionCertificateCredential object, specifically the following line: X509Certificate2 cert = store.Certificates.Cast().First(item =>…
Ian Davis
  • 17,465
  • 26
  • 80
  • 125
0
votes
1 answer

Can an X509Certificate be fetched from the certificates store by ASP.NET without file-system permissions?

Where should a certificate that appears in the Trusted Root Certification Authorities node in certmgr.msc be kept so that an IIS web app can obtain it and sign a SAML Assertion with it? Is there a way to extract the certificate from the certificates…
Tim
  • 8,256
  • 29
  • 96
  • 168
0
votes
1 answer

SignedCms.CheckSignature() with renewed cert -> new serial?

i am using SignedCms.CheckSignature(certColl, true) (with only one cert in certColl) to verify the signature of a pkcs-7 message. My problem is that i dont want to change the (public part of the) signers certificate on my server after the signer has…
Kr15
  • 545
  • 1
  • 6
  • 20
0
votes
1 answer

How to get a certificate from the services certificates store in .net 4

I have a windows service written in .net 4. The service uses successfully an X509-Certificate (its private key) from the machines certificate store (via the X509Store-class). I saw that the certificates snap-in (Server 2008) allows managing…
HCL
  • 34,231
  • 24
  • 150
  • 202
0
votes
1 answer

does my certificate have OCSP No Check Extension?

Some certificates have OCSP some certificates Only CRL some certificates neither of all. how can I see, if certificate have or does not have "OCSP No Check Extension " using bouncicastle ro javas classes? thank you very much :-)
0
votes
1 answer

Validation of an X509Certificate2 from a string Using fluent validation

I have this class SAMLConfigurationValidator(): AbstractValidator { public SAMLConfigurationValidator() { //some rules.... //My desired Code RuleFor(x => x.Certificate) …
0
votes
1 answer

How to construct a certificate based on another

I need to send a certificate through an asp.net page. An ActiveX would read the certificate from user's PC and with a click of a button, somehow the certificate should go to server to sign a document (private key) I was thinking of filling hidden…
0
votes
1 answer

C#.NET Encrypt XML on one machine and Decrypt on other machine

I need to do a GET/PUT/DELETE/POST message on httpwebrequest. my request body contains XML. I need to encrypt the content in body XML and decrypt back on the client/receiver side. I see there are multiple ways to encrypt the XML. one of it is here…
HaBo
  • 12,509
  • 34
  • 102
  • 191
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,826
  • 3
  • 19
  • 31
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,024
  • 11
  • 33
  • 59
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
  • 17,965
  • 3
  • 46
  • 65
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,018
  • 5
  • 38
  • 69
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,418
  • 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,268
  • 5
  • 31
  • 42
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
1 2 3
52
53