RE: Using certificate and private key from Windows cert store with OpenSSL

2011-11-02 Thread Andrejs Štrumfs
or engine plug-in? > > Please, give a small example or where can I find documentation about > this? > Is any documentation on the openssl.org? > > -------------- > From: Jakob Bohm > Sent: Tuesday, November 01, 2011 8:04 PM > To: openssl-u

Re: Using certificate and private key from Windows cert store with OpenSSL

2011-11-01 Thread Jakob Bohm
, 2011 10:45 PM To: openssl-users@openssl.org Subject: Re: Using certificate and private key from Windows cert store with OpenSSL On Tue, Nov 01, 2011, Vladimir Belov wrote: > > How to use some "engine API" in my program? What is the name of > this "some engin

Re: Using certificate and private key from Windows cert store with OpenSSL

2011-11-01 Thread Vladimir Belov
functions for next verifications of certificate with Windows CryptoAPI? From: Dr. Stephen Henson Sent: Tuesday, November 01, 2011 10:45 PM To: openssl-users@openssl.org Subject: Re: Using certificate and private key from Windows cert store with OpenSSL On Tue, Nov 01, 2011, Vladimir Belov

Re: Using certificate and private key from Windows cert store with OpenSSL

2011-11-01 Thread Dr. Stephen Henson
On Tue, Nov 01, 2011, Vladimir Belov wrote: > > How to use some "engine API" in my program? What is the name of > this "some engine API" or engine plug-in? > > Please, give a small example or where can I find documentation about > this? Is any documentation on the openssl.org? > Note that the

Re: Using certificate and private key from Windows cert store with OpenSSL

2011-11-01 Thread Jakob Bohm
sers@openssl.org Subject: Re: Using certificate and private key from Windows cert store with OpenSSL This option is for the OpenSSL API, and I sure hope it would work with all the supported Windows Compilers, so you can use it with the compiler needed by the rest of your project. Once compiled

Re: Using certificate and private key from Windows cert store with OpenSSL

2011-11-01 Thread Vladimir Belov
--- From: Jakob Bohm Sent: Tuesday, November 01, 2011 8:04 PM To: openssl-users@openssl.org Subject: Re: Using certificate and private key from Windows cert store with OpenSSL This option is for the OpenSSL API, and I sure hope it would work with all the supported Windows Compilers, so

Re: Using certificate and private key from Windows cert store with OpenSSL

2011-11-01 Thread Jakob Bohm
sl-users@openssl.org Subject: RE: Using certificate and private key from Windows cert store with OpenSSL Ciao. I use MinGW to build OpenSSL and it has always worked very well. Steps: a) perl Configure mingw shared enable-capieng --prefix=/mingw --openssldir=C:/OpenSSL b) make After

Re: Using certificate and private key from Windows cert store with OpenSSL

2011-11-01 Thread Vladimir Belov
CryptoAPI? --- From: Sergio NNX Sent: Monday, October 31, 2011 11:12 PM To: openssl-users@openssl.org Subject: RE: Using certificate and private key from Windows cert store with OpenSSL Ciao. I use MinGW to build OpenSSL and it has always w

RE: Using certificate and private key from Windows cert store with OpenSSL

2011-10-31 Thread Sergio NNX
ss Windows Certificate store. If you're using Windows boxes, I can send you my copy of OpenSSL for you to test. I hope it helps. Sergio. > From: ml.vladimbe...@gmail.com > To: openssl-users@openssl.org > Subject: Re: Using certificate and private key from Windows cert store wit

Re: Using certificate and private key from Windows cert store with OpenSSL

2011-10-31 Thread Vladimir Belov
PM To: openssl-users@openssl.org Subject: RE: Using certificate and private key from Windows cert store with OpenSSL Ciao Andrejs. I don't know much about the source code you posted previously but if you build OpenSSL with the 'enable-capieng' option you'll be able to acces

Re: Using certificate and private key from Windows cert store with OpenSSL

2011-10-31 Thread Jakob Bohm
with the 'enable-capieng' option you'll be able to access every single store and all the certs stored in Windows. I hope it helps. Sergio. Date: Mon, 31 Oct 2011 09:44:11 +0100 From: jb-open...@wisemo.com To: openssl-users@openssl.org Subject: Re: Using certificate and priv

RE: Using certificate and private key from Windows cert store with OpenSSL

2011-10-31 Thread Sergio NNX
:44:11 +0100 > From: jb-open...@wisemo.com > To: openssl-users@openssl.org > Subject: Re: Using certificate and private key from Windows cert store with > OpenSSL > > In that case look for the CryptoAPI engine for openssl, not sure of its > official name though. >

Re: Using certificate and private key from Windows cert store with OpenSSL

2011-10-31 Thread Jakob Bohm
In that case look for the CryptoAPI engine for openssl, not sure of its official name though. On 10/29/2011 8:21 AM, Andrejs Štrumfs wrote: Duh... I was sure these were the needed parts. Now, I tried to call CryptExportKey with PRIVATEKEYBLOB flag, and of course it returned error, because the

RE: Using certificate and private key from Windows cert store with OpenSSL

2011-10-31 Thread Andrejs Štrumfs
Duh... I was sure these were the needed parts. Now, I tried to call CryptExportKey with PRIVATEKEYBLOB flag, and of course it returned error, because the certificate was imported to store without Mark as Exportable option. But there has to be way to use certificate and private key somehow with

Re: Using certificate and private key from Windows cert store with OpenSSL

2011-10-28 Thread Jakob Bohm
Simple, really: You have not set the "private" part of the private key (d, p, q, dmp1, dmq1, iqmp). You need to export the private key from CryptoAPI too, and convert that blob, not the public key blob. Alternatively, I have heard rumors of a "CryptoAPI engine" plug in for OpenSSL which wi

Using certificate and private key from Windows cert store with OpenSSL

2011-10-28 Thread Andrejs Štrumfs
Hi! I am trying to make a program, that uses some Web Services in Delphi XE. To connect to the Web Services, i have to use self signed (hope this is correct term) certificate, which is stored in Windows cert store. So, i open the cert store with CertOpenSystemStore, get cert with CertFindCertif

Re: Private Key from Windows Cert Store

2011-01-03 Thread Harshvir Sidhu
nssl.org] On Behalf Of Fili, Tom > Sent: Friday, December 03, 2010 3:48 PM > To: openssl-users@openssl.org > Subject: RE: Private Key from Windows Cert Store > > Ok, I got it loading. Thanks. > > I'm still have an issue, which would stem from my lack of understanding

RE: Private Key from Windows Cert Store

2010-12-08 Thread Fili, Tom
- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Fili, Tom Sent: Friday, December 03, 2010 3:48 PM To: openssl-users@openssl.org Subject: RE: Private Key from Windows Cert Store Ok, I got it loading. Thanks. I'm still have an issue, which would stem fr

Re: Private Key from Windows Cert Store

2010-12-08 Thread Harshvir Sidhu
all I have to make? > > Again, thanks. You have been so helpful. > > -Original Message- > From: owner-openssl-us...@openssl.org > [mailto:owner-openssl-us...@openssl.org] On Behalf Of Dr. Stephen Henson > Sent: Friday, December 03, 2010 12:27 PM > To: openssl-users@o

RE: Private Key from Windows Cert Store

2010-12-03 Thread Fili, Tom
openssl-users@openssl.org Subject: Re: Private Key from Windows Cert Store On Fri, Dec 03, 2010, Fili, Tom wrote: > I rebuild OpenSSL and didn't get a capi.dll. I'm using 0.9.8k. Is there > something I'm missing in the build process that I need to change to get > the eng

Re: Private Key from Windows Cert Store

2010-12-03 Thread Mounir IDRASSI
From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Fili, Tom Sent: Friday, December 03, 2010 12:01 PM To: openssl-users@openssl.org Subject: RE: Private Key from Windows Cert Store I rebuild OpenSSL and didn't get a capi.dll. I'm using 0.9.8k. Is there s

Re: Private Key from Windows Cert Store

2010-12-03 Thread Dr. Stephen Henson
On Fri, Dec 03, 2010, Fili, Tom wrote: > I rebuild OpenSSL and didn't get a capi.dll. I'm using 0.9.8k. Is there > something I'm missing in the build process that I need to change to get > the engines to compiled in. From what I've read it looks like it builds > these engines into the openssl dlls

RE: Private Key from Windows Cert Store

2010-12-03 Thread Fili, Tom
Of Fili, Tom Sent: Friday, December 03, 2010 12:01 PM To: openssl-users@openssl.org Subject: RE: Private Key from Windows Cert Store I rebuild OpenSSL and didn't get a capi.dll. I'm using 0.9.8k. Is there something I'm missing in the build process that I need to change to get the engines

RE: Private Key from Windows Cert Store

2010-12-03 Thread Fili, Tom
November 30, 2010 11:49 AM To: openssl-users@openssl.org Subject: Re: Private Key from Windows Cert Store On Tue, Nov 30, 2010, Fili, Tom wrote: > Thanks, but I was more looking for docs on the interop of OpenSSL and > the Crypto API. I got pretty most info from the capi that I needed > excep

Re: Private Key from Windows Cert Store

2010-11-30 Thread Dr. Stephen Henson
On Tue, Nov 30, 2010, Fili, Tom wrote: > Thanks, but I was more looking for docs on the interop of OpenSSL and > the Crypto API. I got pretty most info from the capi that I needed > except the private key, which from what I've read may not always be > exportable anyway. I was looking for how to ca

Re: Private Key from Windows Cert Store

2010-11-30 Thread Harshvir Sidhu
load as I get NULL from ENGINE_by_id("capi"); > > -Original Message- > From: owner-openssl-us...@openssl.org [ > mailto:owner-openssl-us...@openssl.org ] > On Behalf Of Stef Hoeben > Sent: Sunday, November 28, 2010 12:58 PM > To: openssl-users@openssl.org >

RE: Private Key from Windows Cert Store

2010-11-30 Thread Fili, Tom
I get NULL from ENGINE_by_id("capi"); -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Stef Hoeben Sent: Sunday, November 28, 2010 12:58 PM To: openssl-users@openssl.org Subject: RE: Private Key from Windows Cert Store Hi T

RE: Private Key from Windows Cert Store

2010-11-28 Thread Stef Hoeben
sl-users@openssl.org > Subject: RE: Private Key from Windows Cert Store > > Is there a place that has some docs or examples of the capi API? I've > looked around, but haven't found any good source for these. > > Tom Fili > Software Engineer > Analytical Graphics In

RE: Private Key from Windows Cert Store

2010-11-28 Thread Fili, Tom
/26/2010 4:35 AM To: openssl-users@openssl.org Subject: Re: Private Key from Windows Cert Store I think you may use the CAPI engine instead. 2010/11/24 Fili, Tom > I'm trying to load a private key file of a personal cert from a key file > and load it like so: > > SSL_CTX_use_

Re: Private Key from Windows Cert Store

2010-11-26 Thread So Gerald
I think you may use the CAPI engine instead. 2010/11/24 Fili, Tom > I'm trying to load a private key file of a personal cert from a key file > and load it like so: > > SSL_CTX_use_PrivateKey_file(pSSLContext, privateKeyFile, SSL_FILETYPE_PEM) > > However the certificate is in the Windows Certif

Private Key from Windows Cert Store

2010-11-23 Thread Fili, Tom
I'm trying to load a private key file of a personal cert from a key file and load it like so: SSL_CTX_use_PrivateKey_file(pSSLContext, privateKeyFile, SSL_FILETYPE_PEM) However the certificate is in the Windows Certificate Store. I'm trying to write it out to a PEM file, but I'm not quite sure