x509certificate

iphone - sign url request with X.509 Certificate

Hi there, I am trying to port what I have done in .NET to the iphone. Basically I am trying to use an API to communicate with a server. The API requires mutual authentication through a X.509 certificate. I did manage to make this work with .NET (which was quite easy), however it's note clear with the iPhone. Did somebody do this be...

Using certutil to check certificate responses

I am having a lot of trouble setting up an X509 certificate scheme in C#.NET. SSL is enabled on the server and the connection is being made over SSL. Certificates are being added to the request's store via request.ClientCertificates.Add(). However, no client certificate is being attached to the handshake request (which I am both confi...

Should X509 certificate have nonRepudiation bit set to check PKCS7 signature?

X509 certificate has set of keyUsage bits. Two of them are digitalSignature nonRepudiation (recent editions of X.509 have renamed this bit to contentCommitment). I read X509 RFC (http://tools.ietf.org/html/rfc5280) and it talks about general usage of these bit. And I read PKCS7 RFC (http://tools.ietf.org/html/rfc2315) and it talks abou...

how to apply XML signature on outgoing SOAP messages

Hi, I have generated stubs and bindings using cxf codegen. Everything runs fine however the server still rejects the message because of security issues. Basically I have 3 layers to take care all of which require certificates (which I have). SSL Encryption on the pipe certificate signature on specific data element certificate XML Si...

How to copy X509Certificate from one server to another with private key file

Fellow Stackers, I screwed up. I created a new application for one of the servers at my office that requires an X509Certificate with private key file. I installed the certificate on several machines. Now, I need to install the certificate on another machine. The problem is, I've lost the files to install the certificate. One solutio...

What would cause SSL negotiations to succeed under .NET but fail under Java ?

We have to create a web service client using Apache CXF in Java. The thing is I cannot seem to get the SSL session to properly engage. Either it fails altogether, the server fails to decipher what is sent to it once the application data is transmitted or I fail to read the responses from the server. However when trying the same transa...

WCF SSL certificate validation error

Trying to get the simple Hello World (via SSL) working but receiving a following error: The remote certificate is invalid according to the validation procedure. The server App.config is: <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.serviceModel> <behaviors> <serviceBehaviors> <...

How to validate X509 certificate?

I have to write a tool which validates if a X509 certificate is valid or not (input = cert path / subject and password). How can I do that? I don't know much about certs... ...

PKCS12 Java Keystore from CA and User certificate in java

Hello, I've recently been put in charge of mocking up an Apple product (iPhone Configuration Utility) in Java. One of the sections I've been a bit stuck on is a part about Exchange ActiveSync. In there, it allows you to select a certificate from your Keychain to use as credentials for your EAS account. After some research, I found that ...

Inserting Certificate (with privatekey) in Root, LocalMachine certificate store fails in .NET 4

Hi, I'm having problems inserting a new CA certificate with privatekey in the Root certificate store of the localmachine. This is what happens: //This doesn't help either. new StorePermission (PermissionState.Unrestricted) { Flags = StorePermissionFlags.AddToStore }.Assert(); var store = new X509Store(StoreName.Root, StoreLocation.Lo...

How do I validate and access EV properties of a EV Certificate?

I'd like to determine if a given x509 Certificate is an EV cert using C#. Since there are no properties available to me in the .NET API and I'm not sure where to get more information on this standard, I'm a bit stuck. Does anyone have the answer, or know where I should start looking inside the binary blob? ...

Private key not associated with x509 certificate on Windows 7 (C#)

Hello I am trying to add a X509Certificate2 to a X509Store using: X509Store store = new X509Store(StoreName.My, StoreLocation.LocalMachine); store.Open(OpenFlags.ReadWrite); X509Certificate2 certificate = new X509Certificate2(); certificate.Import( Convert.FromBase64String(strCert), "", X509KeyStorageFlags.Per...

WCF service could not be activated

I am having problem with my WCF (which has client and server certificates) Exception: System.ServiceModel.ServiceActivationException: The requested service, 'http://localhost/CustomerServiceSite/Customer.svc' could not be activated. See the server's diagnostic trace logs for more information.. Error Stack trace: DoNe...

Making the switch from WSE-enabled Web Services, is WCF the way to go?

We currently have a half a dozen of project which originally have been built using .NET Framework 1.1 and WSE 2.0. But Microsoft's support for WSE is lacking and the latest version of it (3.0) only targets .NET Framework 2.0. Our new projects will use .NET Framework 3.5 and instead of hacking our self a WSE-support, we are currently look...

Question on WCF Security in a Client Application

What I'm trying to do is setup a call to a service on another server. So far.. I've created the proxy and got the config information. What I'm having trouble finding is how to set the security. They are using message security and client certificates. here is my app.config file..what I have so far. Any information on setting the sec...

Is it possible to programmatically generate an X509 certificate using only C#?

We're trying to generate an X509 certificate (including the private key) programmatically using C# and the BouncyCastle library. We've tried using some of the code from this sample by Felix Kollmann but the private key part of the certificate returns null. Code and unit test are as below: using System; using System.Collections; using Or...

Java - Get Certificate Chain

I have a certificate encoded in Base64 ----- BEGIN CERTIFICATE ----- MIIGezCCBWOgAwIBA ...., how to get the root and intermediate certificates that appear in the certification path from it! ...

Best practice for exposing multiple client-specific endpoints in a WCF service?

Moving forward with re-designing a web service architecture using WCF, our team has been discussing how we want to expose the endpoints. Example: I have a standard endpoint that all users could use with the proper token, but I also have some number of endpoints that will instead use certificate security. All endpoints will ultimately use...

How to create an X509Certificate2 that is signed by another (self-signed) certificate?

I have generated my own self-signed X509Certificate2 in C#. Now how do I create another certificate that is signed by the first in .NET? ...

.NET certificates (C#)

Hello, My website is doing some http posts to another server and I need to attach a certificate. I am using this code to open the certificate store and getting the certificate I need: X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser); store.Open(OpenFlags.ReadOnly); X509CertificateCollection certCollection = sto...