[Openvpn-devel] [PATCH] Use CryptoAPI CA store

2006-12-24 Thread Faidon Liambotis
Hello, Below you will find a patch that creates a new configuration option --cryptoapicastore (the naming sucks, I know...) which enables certificate verification using Windows Certificate Stores (CA and ROOT). It can be used in addition to --cafile and --capath or standalone. I have compile and b

[Openvpn-devel] [PATCH v2] Use CryptoAPI to verify certificates

2007-01-02 Thread Faidon Liambotis
Ok, here's another try, even though I didn't get any comments on the first one :-) This is a totally different approach; the previous one was flawed in at least two aspects: - A certificate signed by an CA stored in the "Intermediate CA store" but not trusted would be considered acceptable by Open

Re: [Openvpn-devel] [PATCH v2] Use CryptoAPI to verify certificates

2007-01-04 Thread Faidon Liambotis
Hi, Thank you for your comments. Alon Bar-Lev wrote: > On 1/3/07, Faidon Liambotis wrote: >> Ok, here's another try, even though I didn't get any comments on the >> first one :-) >> >> This is a totally different approach; the previous one was flawed in

Re: [Openvpn-devel] [PATCH v2] Use CryptoAPI to verify certificates

2007-01-04 Thread Faidon Liambotis
Alon Bar-Lev wrote: > If you integrate into Microsoft trust providers, you should also > support CTL and such. So that the Domain/Computer policy will be > applied to OpenVPN. After a bit of googling, I can know *guess* what you mean. I'm no Microsoft expert or developer -and I don't want to be, to

[Openvpn-devel] client-cert-not-required == client-cert-do-not-check

2007-01-04 Thread Faidon Liambotis
Hello again, While fiddling with the OpenVPN code for the patch -look at my other mail- I noticed the following: When a server specifies client-cert-not-required and the client passes a certificate, the server does not check this certificate for validity, i.e. no trust verification (signed by the C

[Openvpn-devel] [PATCH v3] Use CryptoAPI CA store

2007-09-22 Thread Faidon Liambotis
Hello, Below you will find a revised version of a patch that I sent almost 9 months before. It allows OpenVPN to verify certificates agains the Windows Certificate Store. Changed since v2: * Replace the global variable by a TLS options variable * Added relevant man page entry * Minor bugfixes

Re: [Openvpn-devel] [PATCH v3] Use CryptoAPI CA store

2007-09-22 Thread Faidon Liambotis
Alon Bar-Lev wrote: > Why not use SSL_CTX_add_client_CA and add all CAPI root store into > OpenSSL context? My initial approach (v1) was that (albeit not with SSL_CTX_add_client_CA but with X509_STORE_add_cert). This was flawed, for the reasons I mentioned in v2 changelog (which btw, you have seen

Re: [Openvpn-devel] [PATCH v3] Use CryptoAPI CA store

2007-09-22 Thread Faidon Liambotis
Alon Bar-Lev wrote: > So you need to use CertVerifyCertificateChainPolicy() with > CERT_CHAIN_POLICY_SSL I'm no Microsoft developer (adn I don't want to be to be honest) but if I understand it right, it's better to call CertGetCertificateChain() as I am doing. MSDN for CertVerifyCertificateChainP

[Openvpn-devel] [PATCH v4] Use CryptoAPI CA store (was Re: [PATCH v3] Use CryptoAPI CA store)

2007-09-23 Thread Faidon Liambotis
Alon Bar-Lev wrote: > On 9/22/07, Faidon Liambotis wrote: >> Alon Bar-Lev wrote: >>> So you need to use CertVerifyCertificateChainPolicy() with >>> CERT_CHAIN_POLICY_SSL >> I'm no Microsoft developer (adn I don't want to be to be honest) but if &g

Re: [Openvpn-devel] [PATCH v4] Use CryptoAPI CA store (was Re: [PATCH v3] Use CryptoAPI CA store)

2007-09-27 Thread Faidon Liambotis
Faidon Liambotis wrote: > Alon Bar-Lev wrote: >> You need to use both, one for create the chain and the other to verify >> that it meets with system CTL for SSL. > Seems that you are right. Below you will find -v4 of the patch that does > that. > > Also, my previous ve

Re: [Openvpn-devel] Needing help with writing an easy-to-use Radius-Plugin for authentication

2008-02-18 Thread Faidon Liambotis
ADIUS authentication that are more featureful. Haven't evaluated them though, the above works pretty well for me. Regards, Faidon #!/usr/bin/perl # OpenVPN auth-user-pass-verify script for RADIUS Authentication # # Copyright (c) 2005 Greek Research and Technology Network S.A. # # Author: Faidon

[Openvpn-devel] Merge status of OCSP support?

2008-06-16 Thread Faidon Liambotis
Hi, In light of the Debian OpenSSL vulnerability, I was looking for a way to efficiently check for revoked certificates. Updating CRLs is one way but it's not exactly efficient. I've found that someone has actually implemented OCSP for OpenVPN[1]. Is there any specific reason that this hasn't b

Re: [Openvpn-devel] [PATCH v4] Use CryptoAPI CA store (was Re: [PATCH v3] Use CryptoAPI CA store)

2008-10-07 Thread Faidon Liambotis
Hi, Alon Bar-Lev wrote: > On 9/27/08, Alon Bar-Lev wrote: >> I prefer to receive patches... >> Anyway, this is not exactly what I meant. >> Please review latest head. >> I did not test this, but it should be correct now as far as the >> changes are concerned. >> It may not work as the valid