Re: OpenSSL - CryptoAPI - nCipher

2012-03-14 Thread Sunjeet Singh
8. Now, I want to load the certificate into the same SSL Context. At first I tried using the simple- ENGINE_load_ssl_client_cert() on the certificate file generated earlier, but that failed. I can understand why- the certificate is encrypted (self-signed).

Re: OpenSSL - CryptoAPI - nCipher

2012-03-14 Thread Dr. Stephen Henson
On Wed, Mar 14, 2012, Sunjeet Singh wrote: 8. Now, I want to load the certificate into the same SSL Context. At first I tried using the simple- ENGINE_load_ssl_client_cert() on the certificate file generated earlier, but that failed. I can understand why- the

Re: OpenSSL - CryptoAPI - nCipher

2012-03-14 Thread Sunjeet Singh
The it is probably DER format. Use d2i_X509_fp instead and make sure you open the fp in binary mode. Steve. Yes, indeed. It worked! Thanks again for your quick reply. Sunjeet __ OpenSSL Project

OpenSSL - CryptoAPI - nCipher

2012-03-13 Thread Sunjeet Singh
Hi, In trying to implement integration of my application that uses OpenSSL with nCipher HSM using CryptoAPI, I am stuck with a rather conceptual issue. First let me explain the steps that I was able to do successfully (hopefully I'm doing these right and this will be a helpful summarization

Re: OpenSSL - CryptoAPI - nCipher

2012-03-13 Thread Dr. Stephen Henson
On Tue, Mar 13, 2012, Sunjeet Singh wrote: 8. Now, I want to load the certificate into the same SSL Context. At first I tried using the simple- ENGINE_load_ssl_client_cert() on the certificate file generated earlier, but that failed. I can understand why- the