Re: Windows Certificate Store Private Key

2010-06-23 Thread aerowolf
Run mmc.exe (Microsoft Management Console), add the "Certificates" snap-in, and then export the certificate and private key to a PKCS#12 file. Then use openssl pkcs12 to parse it. -Kyle H On Wed, Jun 23, 2010 at 3:43 PM, Harshvir Sidhu wrote: Hi All,     I am trying to read Certificates and

Re: Windows Certificate Store Private Key

2010-06-23 Thread aerowolf
Run mmc.exe (Microsoft Management Console), add the "Certificates" snap-in, and then export the certificate and private key to a PKCS#12 file. Then use openssl pkcs12 to parse it. -Kyle H On Wed, Jun 23, 2010 at 3:43 PM, Harshvir Sidhu wrote: Hi All,     I am trying to read Certificates and

Windows Certificate Store Private Key

2010-06-23 Thread Harshvir Sidhu
Hi All, I am trying to read Certificates and Private Key from Windows Certificate Store and then using them in OpenSSL. I am able to read Certificates but i am having trouble with reading Private Key. Have anyone done this before, any pointers will be great. Thanks. // Harshvir

Re: openssl s_client intermittent problem (DNS?)

2010-06-23 Thread ohaya
Hi, I wanted to mention one other piece of information. Apparently, the server certificate in this case has the IP address of the server, rather than a hostname/FQDN, in the subject (i.e., CN=xx.xx.xx.xx,...). The server end is not our under our control, so we can't change that. Jim ---

Re: crash from curl with pkcs12 certs and threads

2010-06-23 Thread Dr. Stephen Henson
On Wed, Jun 23, 2010, Dr. Stephen Henson wrote: > On Tue, Jun 22, 2010, Brian Makin wrote: > > > On Tue, 2010-06-22 at 19:00 +0200, Dr. Stephen Henson wrote: > > > On Tue, Jun 22, 2010, Brian Makin wrote: > > > > > > > Using curl 7.16.1 and 7.20.0 > > > > with openssl 0.9.8l and 0.9.8o > > > > I

Re: crash from curl with pkcs12 certs and threads

2010-06-23 Thread Dr. Stephen Henson
On Tue, Jun 22, 2010, Brian Makin wrote: > On Tue, 2010-06-22 at 19:00 +0200, Dr. Stephen Henson wrote: > > On Tue, Jun 22, 2010, Brian Makin wrote: > > > > > Using curl 7.16.1 and 7.20.0 > > > with openssl 0.9.8l and 0.9.8o > > > I am getting intermittent crashes. Apache is setup with a pkcs12

openssl s_client intermittent problem (DNS?)

2010-06-23 Thread ohaya
Hi, We are trying to use "openssl s_client" to test a server-authenticated (1-way SSL) connection. The openssl s_client command is being run (on a Redhat machine) using the IP address of the SSL-enabled server, i.e., something like: openssl s_client -connect xx.xx.xx.xx:443 The problem w

Re: Save a pkcs#7 structure to a file

2010-06-23 Thread Dr. Stephen Henson
On Wed, Jun 23, 2010, Federico Berton wrote: > Hi guys, I am trying to save a pkcs#7 structure with sign-and-enveloped data > to a file but I can't find the appropriate function. I know that i should > use somewhat kind of BIO. Can somebody help me? > i2d_PKCS7_bio() will work but you don't have

Save a pkcs#7 structure to a file

2010-06-23 Thread Federico Berton
Hi guys, I am trying to save a pkcs#7 structure with sign-and-enveloped data to a file but I can't find the appropriate function. I know that i should use somewhat kind of BIO. Can somebody help me? Thanks in advance and sorry for my bad english. Berton Federico

Re: Integrating OpenSSL as a DLL in Windows

2010-06-23 Thread Strauch, Robert
Here's my sample code. --- SNIP --- [DllImport("lib\\libeay32.dll")] public static extern IntPtr EVP_MD_CTX_create(); [DllImport("lib\\libeay32.dll")] public static extern IntPtr EVP_md5(); [DllImport("lib\\libeay32.dll")] public static extern int EVP_DigestInit_ex(IntPtr digestContext, IntPtr

Re: Integrating OpenSSL as a DLL in Windows

2010-06-23 Thread Strauch, Robert
Hello Mounir, > Take a look at the OpenSSL.NET project on SourceForge : > http://openssl-net.sourceforge.net/ > They have implemented a managed wrapper around libeay32.dll and > ssleay32.dll. > I think this is what you are looking for. Thanks for that hint. Yes, I will definitely have a look at t

Re: Integrating OpenSSL as a DLL in Windows

2010-06-23 Thread Mounir IDRASSI
Hi Robert, Take a look at the OpenSSL.NET project on SourceForge : http://openssl-net.sourceforge.net/ They have implemented a managed wrapper around libeay32.dll and ssleay32.dll. I think this is what you are looking for. Cheers, -- Mounir IDRASSI IDRIX http://www.idrix.fr On 6/23/2010 8:23

Re: Integrating OpenSSL as a DLL in Windows

2010-06-23 Thread Jakob Bohm
On 23-06-2010 08:23, Strauch, Robert wrote: Hello, I've been using OpenSSL for quite a time but now it's time for me to integrate some functionality into my own application (C#). That is: decrypting with a private key and building hashsums. As far as I understood I need the libeay32.dll to ac

Re: Updating openssl on Solaris [Was: Re:would like to join openssl team]

2010-06-23 Thread Jakob Bohm
On 21-06-2010 20:37, Tran, Brandon D, CTR, OSD-CAPE wrote: I have couple questions. 1) How do I know if openssl running on the solaris 9 & 10 boxes. (openssl is installed-pkginfo –i) The command $ openssl version should tell you what version of the openssl utility and library you have (if onl

Re: Server Hello does not include Session ID

2010-06-23 Thread Gökhan Şengün
For those who interested: Changing SSL method from SSLv23_method to either SSLv3_method or TLSv1_method resolves this weird issue. On Wed, Jun 23, 2010 at 2:27 AM, Gökhan Şengün wrote: > Hello again, > > Could somebody give me some clue on this? What could be my problem? > > Thanks. > > > On Mon