Skip to contentSkip to conversation

Need testers

Openvpn-devel Alon Bar-Lev 2 participants 10 messages Oct 11, 2008 – Oct 18, 2008 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hello,

As part of modification of the mscapi (cryptoapi.c) file, I try to cleanup the openssl usage.
I don't have Windows environment to test.

I will be glad if users of this feature help me testing this.

Sources are located at [1], binaries at [2].

No change in functionality should be visible, but I guess first few versions will not work correctly.

Thanks,
Alon Bar-Lev.

[1] http://svn.openvpn.net/projects/openvpn/contrib/alon/BETA21-ms-chk-3/openvpn
[2] http://alon.barlev.googlepages.com/openvpn-mscapi-test-3.tar.bz2

#1 lore raw

...

Quoted 10 lines

As part of modification of the mscapi (cryptoapi.c) file, I try to cleanup the openssl usage. I don't have Windows environment to test.

I will be glad if users of this feature help me testing this.

Sources are located at [1], binaries at [2].

No change in functionality should be visible, but I guess first few versions will not work correctly.

...
Sure, I could do it now but what are the test cases we are going to run? This is for the cryptoapicert feature?
-Dave

#2 lore raw

...

Quoted 6 lines

...

Quoted 5 lines

As part of modification of the mscapi (cryptoapi.c) file, I try to cleanup the openssl usage. I don't have Windows environment to test.

I will be glad if users of this feature help me testing this.

...

Quoted 4 lines

...
Sure, I could do it now but what are the test cases we are going to run? This is for the cryptoapicert feature? -Dave

OK, I'm not getting it. Educate me. I am using an existing and functional server, and removed all the ca cert and key options in my config and replaced them with:

cryptoapica
cryptoapicert "SUBJ:plexus"

Nevermind the second one -- I verified it works fine in isolation (i.e. meaning having ca or <ca> makes it work finding the cert and key via capi). That was mostly a 'using capi to do something at all' sanity check.

I imported my CA cert. I used the 'pick a sensible place' option. I verified that it is located (according to the MMC snapin) at:

Certificates - Current User
Trusted Root Certification Authorities
Certificates

which does seem a sensible place.

Upon connect, I am getting the error:

Sat Oct 11 22:25:16 2008 VERIFY ERROR: depth=1, error=self signed certificate in certificate chain:
/C=US/ST=TX/L=Cedar_Park/O=ziggurat29/CN=ziggurat29_CA/[email protected]... urat29.com

Not sure what to say about that -- root CA certs are always self-signed, no?

For fun I also imported the server cert. It wound up at:

Certificates - Current User
Other People
Certificates

Didn't do any good there -- no surprise -- but I moved it over to the trusted root CA and it did no good there either.

I'll be happy to give configs, logs, certs if it's useful.

-Dave

#3 lore raw

Thank you dave!

Let's divide this into two threads.

1. I've cleanup the OpenSSL integration, this should not change existing behavior... All you need to verify that OpenVPN continue to work while using private key from CAPI store.

2. Add the CAPI certificate validation.

From what I understand, (1) works at your side?

For the VERIFY ERROR, can you please paste some more log lines? Should be something like "Failed to verify certificate..."

Thanks!
Alon.

Quoted 61 lines · Dave

...

Quoted 6 lines

...

Quoted 5 lines

As part of modification of the mscapi (cryptoapi.c) file, I try to cleanup the openssl usage. I don't have Windows environment to test.

I will be glad if users of this feature help me testing this.

...

Quoted 4 lines

...
Sure, I could do it now but what are the test cases we are going to run? This is for the cryptoapicert feature? -Dave

OK, I'm not getting it. Educate me. I am using an existing and functional
server, and removed all the ca cert and key options in my config and replaced them with:

cryptoapica
cryptoapicert "SUBJ:plexus"

Nevermind the second one -- I verified it works fine in isolation (i.e. meaning having ca or <ca> makes it work finding the cert and key via capi). That was mostly a 'using capi to do something at all' sanity check.

I imported my CA cert. I used the 'pick a sensible place' option. I verified that it is located (according to the MMC snapin) at:

Certificates - Current User
Trusted Root Certification Authorities
Certificates

which does seem a sensible place.

Upon connect, I am getting the error:

Sat Oct 11 22:25:16 2008 VERIFY ERROR: depth=1, error=self signed certificate in certificate chain:
/C=US/ST=TX/L=Cedar_Park/O=ziggurat29/CN=ziggurat29_CA/[email protected]... urat29.com

Not sure what to say about that -- root CA certs are always self-signed, no?

For fun I also imported the server cert. It wound up at:

Certificates - Current User
Other People
Certificates

Didn't do any good there -- no surprise -- but I moved it over to the trusted root CA and it did no good there either.

I'll be happy to give configs, logs, certs if it's useful.

-Dave

#4 lore raw

I would consider [1] as verified, at least partially. I did not try any negative tests outside of the absence of the cert/key does not enable login, also I did not try in the 'service' scenario, which I imagine just means 'put the cert in the machine's store'.

attached herewith is my log, and also my config file for reference. the error is on line 18. I can re-run and bump up the verb, as 3 is probably too low for you?

I would also like to test revocation, both by explicitly untrusting a cert, and by having a crl. When I import a CRL using the default 'choose a sane place' option, it goes under

Intermediate Certification Authorities
Certificate Revocation List

which strikes me as odd since this is not an intermediate CA, and because the CA cert went under the 'Trusted Root CA' as expected, and not the 'Intermediate CA'. Such, I suppose, are the mysteries of capi.

It would be great if the 'CRL distribution point' and 'Authority Info Access' 'OCSP' certificate extensions were used, but that's another projectlette in itself, no?....

-Dave

Quoted 80 lines

-----Original Message-----
From: Alon Bar-Lev [mailto:[email protected]...]
Sent: Sunday, October 12, 2008 1:07 AM
To: Dave
Cc: openvpn devel; Peter 'Luna' Runestig
Subject: Re: [Openvpn-devel] [MSCAPI] Need testers

Thank you dave!

Let's divide this into two threads.

1. I've cleanup the OpenSSL integration, this should not change existing behavior... All you need to verify that OpenVPN continue to work while using private key from CAPI store.

2. Add the CAPI certificate validation.

From what I understand, (1) works at your side?

For the VERIFY ERROR, can you please paste some more log lines? Should be something like "Failed to verify certificate..."

Thanks!
Alon.

Quoted 4 lines · Dave

...

Quoted 2 lines

...

Quoted 1 line

As part of modification of the mscapi (cryptoapi.c)

file, I > >

Quoted 8 lines

try to cleanup the openssl usage. I don't have Windows > > environment to test. > >

Quoted 1 line
Quoted 1 line

I will be glad if users of this feature help me testing this.

...

Quoted 2 lines

...
Sure, I could do it now but what are the test cases we

are > going

Quoted 5 lines

to run? This is for the cryptoapicert feature? -Dave >

OK, I'm not getting it. Educate me. I am using an existing and functional server, and removed all the ca cert and key

options in my

Quoted 8 lines

config and replaced them with:

cryptoapica
cryptoapicert "SUBJ:plexus"

Nevermind the second one -- I verified it works fine in isolation
(i.e. meaning having ca or <ca> makes it work finding the cert and key via capi). That was mostly a 'using capi to do

something at all'

Quoted 3 lines

sanity check.

I imported my CA cert. I used the 'pick a sensible place'

option. I

Quoted 6 lines

verified that it is located (according to the MMC snapin) at:

Certificates - Current User
Trusted Root Certification Authorities
Certificates

Quoted 7 lines

which does seem a sensible place.

Upon connect, I am getting the error:

Sat Oct 11 22:25:16 2008 VERIFY ERROR: depth=1, error=self signed
certificate in certificate chain:

/C=US/ST=TX/L=Cedar_Park/O=ziggurat29/CN=ziggurat29_CA/emailAddress=de

Quoted 6 lines

[email protected]...
urat29.com

Not sure what to say about that -- root CA certs are always
self-signed, no?

Quoted 17 lines
Quoted 7 lines

For fun I also imported the server cert. It wound up at:

Certificates - Current User
Other People
Certificates

Didn't do any good there -- no surprise -- but I moved it

over to the

Quoted 8 lines

trusted root CA and it did no good there either.

I'll be happy to give configs, logs, certs if it's useful.

-Dave

Sat Oct 11 23:24:40 2008 OpenVPN 2.1_rc12a i686-pc-mingw32 [SSL] [LZO2] [PKCS11] built on Oct 7 2008
Sat Oct 11 23:24:40 2008 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info. Sat Oct 11 23:24:40 2008 Control Channel Authentication: tls-auth using INLINE static key file
Sat Oct 11 23:24:40 2008 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Oct 11 23:24:40 2008 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Oct 11 23:24:40 2008 LZO compression initialized
Sat Oct 11 23:24:40 2008 Control Channel MTU parms [ L:1576 D:168 EF:68 EB:0 ET:0 EL:0 ]
Sat Oct 11 23:24:40 2008 Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:135 ET:32 EL:0 AF:3/1 ]
Sat Oct 11 23:24:40 2008 Local Options hash (VER=V4): 'e39a3273'
Sat Oct 11 23:24:40 2008 Expected Remote Options hash (VER=V4): '3c14feac'
Sat Oct 11 23:24:40 2008 Attempting to establish TCP connection with 192.168.173.2:443
Sat Oct 11 23:24:40 2008 TCP connection established with 192.168.173.2:443
Sat Oct 11 23:24:40 2008 Socket Buffers: R=[8192->8192] S=[8192->8192]
Sat Oct 11 23:24:40 2008 Socket flags: TCP_NODELAY=1 succeeded
Sat Oct 11 23:24:40 2008 TCPv4_CLIENT link local: [undef]
Sat Oct 11 23:24:40 2008 TCPv4_CLIENT link remote: 192.168.173.2:443
Sat Oct 11 23:24:40 2008 TLS: Initial packet from 192.168.173.2:443, sid=a7389c72 ae66006d
Sat Oct 11 23:24:41 2008 VERIFY ERROR: depth=1, error=self signed certificate in certificate chain: /C=US/ST=TX/L=Cedar_Park/O=ziggurat29/CN=ziggurat29_CA/[email protected]... Sat Oct 11 23:24:41 2008 TLS_ERROR: BIO read tls_read_plaintext error: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed Sat Oct 11 23:24:41 2008 TLS Error: TLS object -> incoming plaintext read error
Sat Oct 11 23:24:41 2008 TLS Error: TLS handshake failed
Sat Oct 11 23:24:41 2008 Fatal TLS error (check_tls_errors_co), restarting
Sat Oct 11 23:24:41 2008 TCP/UDP: Closing socket
Sat Oct 11 23:24:41 2008 SIGUSR1[soft,tls-error] received, process restarting
Sat Oct 11 23:24:41 2008 Restart pause, 5 second(s)
Sat Oct 11 23:24:46 2008 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info. Sat Oct 11 23:24:46 2008 Re-using SSL/TLS context
Sat Oct 11 23:24:46 2008 LZO compression initialized
Sat Oct 11 23:24:46 2008 Control Channel MTU parms [ L:1576 D:168 EF:68 EB:0 ET:0 EL:0 ]
Sat Oct 11 23:24:46 2008 Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:135 ET:32 EL:0 AF:3/1 ]
Sat Oct 11 23:24:46 2008 Local Options hash (VER=V4): 'e39a3273'
Sat Oct 11 23:24:46 2008 Expected Remote Options hash (VER=V4): '3c14feac'
Sat Oct 11 23:24:46 2008 Attempting to establish TCP connection with 192.168.173.2:443
Sat Oct 11 23:24:46 2008 TCP connection established with 192.168.173.2:443
Sat Oct 11 23:24:46 2008 Socket Buffers: R=[8192->8192] S=[8192->8192]
Sat Oct 11 23:24:46 2008 Socket flags: TCP_NODELAY=1 succeeded
Sat Oct 11 23:24:46 2008 TCPv4_CLIENT link local: [undef]
Sat Oct 11 23:24:46 2008 TCPv4_CLIENT link remote: 192.168.173.2:443
Sat Oct 11 23:24:46 2008 TLS: Initial packet from 192.168.173.2:443, sid=776c7bf6 82d25433
Sat Oct 11 23:24:46 2008 VERIFY ERROR: depth=1, error=self signed certificate in certificate chain: /C=US/ST=TX/L=Cedar_Park/O=ziggurat29/CN=ziggurat29_CA/[email protected]... Sat Oct 11 23:24:46 2008 TLS_ERROR: BIO read tls_read_plaintext error: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed Sat Oct 11 23:24:46 2008 TLS Error: TLS object -> incoming plaintext read error
Sat Oct 11 23:24:46 2008 TLS Error: TLS handshake failed
Sat Oct 11 23:24:46 2008 Fatal TLS error (check_tls_errors_co), restarting
Sat Oct 11 23:24:46 2008 TCP/UDP: Closing socket
Sat Oct 11 23:24:46 2008 SIGUSR1[soft,tls-error] received, process restarting
Sat Oct 11 23:24:46 2008 Restart pause, 5 second(s)
Sat Oct 11 23:24:51 2008 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info. Sat Oct 11 23:24:51 2008 Re-using SSL/TLS context
Sat Oct 11 23:24:51 2008 LZO compression initialized
Sat Oct 11 23:24:51 2008 Control Channel MTU parms [ L:1576 D:168 EF:68 EB:0 ET:0 EL:0 ]
Sat Oct 11 23:24:51 2008 Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:135 ET:32 EL:0 AF:3/1 ]
Sat Oct 11 23:24:51 2008 Local Options hash (VER=V4): 'e39a3273'
Sat Oct 11 23:24:51 2008 Expected Remote Options hash (VER=V4): '3c14feac'
Sat Oct 11 23:24:51 2008 Attempting to establish TCP connection with 192.168.173.2:443
Sat Oct 11 23:24:51 2008 TCP connection established with 192.168.173.2:443
Sat Oct 11 23:24:51 2008 Socket Buffers: R=[8192->8192] S=[8192->8192]
Sat Oct 11 23:24:51 2008 Socket flags: TCP_NODELAY=1 succeeded
Sat Oct 11 23:24:51 2008 TCPv4_CLIENT link local: [undef]
Sat Oct 11 23:24:51 2008 TCPv4_CLIENT link remote: 192.168.173.2:443
Sat Oct 11 23:24:51 2008 TLS: Initial packet from 192.168.173.2:443, sid=a8c788a3 6b62b4e6
Sat Oct 11 23:24:52 2008 VERIFY ERROR: depth=1, error=self signed certificate in certificate chain: /C=US/ST=TX/L=Cedar_Park/O=ziggurat29/CN=ziggurat29_CA/[email protected]... Sat Oct 11 23:24:52 2008 TLS_ERROR: BIO read tls_read_plaintext error: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed Sat Oct 11 23:24:52 2008 TLS Error: TLS object -> incoming plaintext read error
Sat Oct 11 23:24:52 2008 TLS Error: TLS handshake failed
Sat Oct 11 23:24:52 2008 Fatal TLS error (check_tls_errors_co), restarting
Sat Oct 11 23:24:52 2008 TCP/UDP: Closing socket
Sat Oct 11 23:24:52 2008 SIGUSR1[soft,tls-error] received, process restarting
Sat Oct 11 23:24:52 2008 Restart pause, 5 second(s)
Sat Oct 11 23:24:57 2008 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info. Sat Oct 11 23:24:57 2008 Re-using SSL/TLS context
Sat Oct 11 23:24:57 2008 LZO compression initialized
Sat Oct 11 23:24:57 2008 Control Channel MTU parms [ L:1576 D:168 EF:68 EB:0 ET:0 EL:0 ]
Sat Oct 11 23:24:57 2008 Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:135 ET:32 EL:0 AF:3/1 ]
Sat Oct 11 23:24:57 2008 Local Options hash (VER=V4): 'e39a3273'
Sat Oct 11 23:24:57 2008 Expected Remote Options hash (VER=V4): '3c14feac'
Sat Oct 11 23:24:57 2008 Attempting to establish TCP connection with 192.168.173.2:443
Sat Oct 11 23:24:57 2008 TCP connection established with 192.168.173.2:443
Sat Oct 11 23:24:57 2008 Socket Buffers: R=[8192->8192] S=[8192->8192]
Sat Oct 11 23:24:57 2008 Socket flags: TCP_NODELAY=1 succeeded
Sat Oct 11 23:24:57 2008 TCPv4_CLIENT link local: [undef]
Sat Oct 11 23:24:57 2008 TCPv4_CLIENT link remote: 192.168.173.2:443
Sat Oct 11 23:24:57 2008 TLS: Initial packet from 192.168.173.2:443, sid=53c9e2fe 7d79d9ca
Sat Oct 11 23:24:57 2008 VERIFY ERROR: depth=1, error=self signed certificate in certificate chain: /C=US/ST=TX/L=Cedar_Park/O=ziggurat29/CN=ziggurat29_CA/[email protected]... Sat Oct 11 23:24:57 2008 TLS_ERROR: BIO read tls_read_plaintext error: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed Sat Oct 11 23:24:57 2008 TLS Error: TLS object -> incoming plaintext read error
Sat Oct 11 23:24:57 2008 TLS Error: TLS handshake failed
Sat Oct 11 23:24:57 2008 Fatal TLS error (check_tls_errors_co), restarting
Sat Oct 11 23:24:57 2008 TCP/UDP: Closing socket
Sat Oct 11 23:24:57 2008 SIGUSR1[soft,tls-error] received, process restarting
Sat Oct 11 23:24:57 2008 Restart pause, 5 second(s)
Sat Oct 11 23:25:02 2008 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info. Sat Oct 11 23:25:02 2008 Re-using SSL/TLS context
Sat Oct 11 23:25:02 2008 LZO compression initialized
Sat Oct 11 23:25:02 2008 Control Channel MTU parms [ L:1576 D:168 EF:68 EB:0 ET:0 EL:0 ]
Sat Oct 11 23:25:02 2008 Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:135 ET:32 EL:0 AF:3/1 ]
Sat Oct 11 23:25:02 2008 Local Options hash (VER=V4): 'e39a3273'
Sat Oct 11 23:25:02 2008 Expected Remote Options hash (VER=V4): '3c14feac'
Sat Oct 11 23:25:02 2008 Attempting to establish TCP connection with 192.168.173.2:443
Sat Oct 11 23:25:02 2008 TCP/UDP: Closing socket
Sat Oct 11 23:25:02 2008 SIGTERM[hard,init_instance] received, process exiting

#5 lore raw

Thank you for your tests!

Your configuration is correct.

Can you please double click the certificate at the MMC, and see if it marked "OK"? If there is an error then there is probably something wrong with CA location or CRL fetch.

How did you enroll your certificate? If you did this via microsoft CA, you have CDP (CRL distribution point) X.509 extension that is used by Windows to automatically fetch your CRL. If you got OCSP responder which is integrated with CAPI on your machine it will also work in this configuration.

I added some more debugging information.
Please run the new version [1] with verb 255.
Thanks!

[1] http://alon.barlev.googlepages.com/openvpn-mscapi-test-4.tar.bz2

Quoted 127 lines · Dave

I would consider [1] as verified, at least partially. I did not try any
negative tests outside of the absence of the cert/key does not enable login, also I did not try in the 'service' scenario, which I imagine just means 'put the cert in the machine's store'.

attached herewith is my log, and also my config file for reference. the error is on line 18. I can re-run and bump up the verb, as 3 is probably too low for you?

I would also like to test revocation, both by explicitly untrusting a cert, and by having a crl. When I import a CRL using the default 'choose a sane place' option, it goes under

Intermediate Certification Authorities
Certificate Revocation List

which strikes me as odd since this is not an intermediate CA, and because the CA cert went under the 'Trusted Root CA' as expected, and not the 'Intermediate CA'. Such, I suppose, are the mysteries of capi.

It would be great if the 'CRL distribution point' and 'Authority Info Access' 'OCSP' certificate extensions were used, but that's another projectlette in itself, no?....

-Dave

Quoted 97 lines

-----Original Message-----
From: Alon Bar-Lev [mailto:[email protected]...]
Sent: Sunday, October 12, 2008 1:07 AM
To: Dave
Cc: openvpn devel; Peter 'Luna' Runestig
Subject: Re: [Openvpn-devel] [MSCAPI] Need testers

Thank you dave!

Let's divide this into two threads.

1. I've cleanup the OpenSSL integration, this should not change existing behavior... All you need to verify that OpenVPN continue to work while using private key from CAPI store.

2. Add the CAPI certificate validation.

From what I understand, (1) works at your side?

For the VERIFY ERROR, can you please paste some more log lines? Should be something like "Failed to verify certificate..."

Thanks!
Alon.

Quoted 4 lines · Dave

...

Quoted 2 lines

...

Quoted 1 line

As part of modification of the mscapi (cryptoapi.c)

file, I > >

Quoted 8 lines

try to cleanup the openssl usage. I don't have Windows > > environment to test. > >

Quoted 1 line
Quoted 1 line

I will be glad if users of this feature help me testing this.

...

Quoted 2 lines

...
Sure, I could do it now but what are the test cases we

are > going

Quoted 5 lines

to run? This is for the cryptoapicert feature? -Dave >

OK, I'm not getting it. Educate me. I am using an existing and functional server, and removed all the ca cert and key

options in my

Quoted 8 lines

config and replaced them with:

cryptoapica
cryptoapicert "SUBJ:plexus"

Nevermind the second one -- I verified it works fine in isolation
(i.e. meaning having ca or <ca> makes it work finding the cert and key via capi). That was mostly a 'using capi to do

something at all'

Quoted 3 lines

sanity check.

I imported my CA cert. I used the 'pick a sensible place'

option. I

Quoted 6 lines

verified that it is located (according to the MMC snapin) at:

Certificates - Current User
Trusted Root Certification Authorities
Certificates

Quoted 7 lines

which does seem a sensible place.

Upon connect, I am getting the error:

Sat Oct 11 22:25:16 2008 VERIFY ERROR: depth=1, error=self signed
certificate in certificate chain:

/C=US/ST=TX/L=Cedar_Park/O=ziggurat29/CN=ziggurat29_CA/emailAddress=de

Quoted 6 lines

[email protected]...
urat29.com

Not sure what to say about that -- root CA certs are always
self-signed, no?

Quoted 7 lines

For fun I also imported the server cert. It wound up at:

Certificates - Current User
Other People
Certificates

Didn't do any good there -- no surprise -- but I moved it

over to the

Quoted 8 lines

trusted root CA and it did no good there either.

I'll be happy to give configs, logs, certs if it's useful.

-Dave

A message that is not in the archive (sent off-list or not yet received): [email protected]...

#7 lore raw

Thank you for testing!

Found the problem... CryptoAPI cannot validate root certificate... OK, can you please test [1]?

I also renamed the option from cryptoapica to cryptoapi-chain-validation, I think it is clearer.

Thanks!
Alon.

[1] http://alon.barlev.googlepages.com/openvpn-mscapi-test-5.tar.bz2

Quoted 42 lines · Dave

attached herewith is the log of the (failed) attempt(s) to connect.

Certs are all OK as far as I can tell (no red X overlaid).

This CA cert I created some years back with easy-RSA. These days I now manage my CA with XCA off a USB key, but I imported that CA cert rather than rebuilding the PKI.

Your CRL/OCSP suggestion is interesting, though of course that's Windows only (my servers are all Linux). Actually I was hoping for an extension of the OCSP patch that was submitted about a year ago, but maybe that is a task for me to do! Then it would be general across Windows/Linux. I have not used the extensions before, and I would love it if you had an example cert with the CDP or OCSP extensions filled out so I can use that as a reference to proper form. My OCSP responder also runs on Linux, rather than Windows.

-Dave

...

Quoted 17 lines

Thank you for your tests!

Your configuration is correct.

Can you please double click the certificate at the MMC, and see if it marked "OK"? If there is an error then there is probably something wrong with CA location or CRL fetch.

How did you enroll your certificate? If you did this via microsoft CA, you have CDP (CRL distribution point) X.509 extension that is used by Windows to automatically fetch your CRL. If you got OCSP responder which is integrated with CAPI on your machine it will also work in this configuration.

I added some more debugging information.
Please run the new version [1] with verb 255.
Thanks!

...

A message that is not in the archive (sent off-list or not yet received): [email protected]...

#9 lore raw

I cannot see what is wrong, what exactly crashes? Do you have an entry in event log?, I recompiled everything at [1], I may had a problem with the libraries.
Can you please test only with cryptoapicert and see if it changes something?

Thanks!

[1] http://alon.barlev.googlepages.com/openvpn-mscapi-test-6.tar.bz2

Quoted 96 lines · Dave

A little bit further, though now it crashes for me using all the binaries
you included in your bz file. Log attached herewith in case that helps locate the area affected.

-Dave

Quoted 87 lines

-----Original Message-----
From: Alon Bar-Lev [mailto:[email protected]...]

Sent: Saturday, October 18, 2008 1:01 PM
To: Dave
Cc: openvpn devel

Subject: Re: [Openvpn-devel] [MSCAPI] Need testers

Thank you for testing!

Found the problem... CryptoAPI cannot validate root certificate... OK, can you please test [1]?

I also renamed the option from cryptoapica to cryptoapi-chain-validation, I think it is clearer.

Thanks!
Alon.

[1] http://alon.barlev.googlepages.com/openvpn-mscapi-test-5.tar.bz2

Quoted 5 lines · Dave

attached herewith is the log of the (failed) attempt(s) to connect.

Certs are all OK as far as I can tell (no red X overlaid).

This CA cert I created some years back with easy-RSA.

These days I

Quoted 1 line

now manage my CA with XCA off a USB key, but I imported

that CA cert

Quoted 4 lines

rather than rebuilding the PKI.

Your CRL/OCSP suggestion is interesting, though of course that's
Windows only (my servers are all Linux). Actually I was

hoping for

Quoted 1 line

an extension of the OCSP patch that was submitted about a

year ago,

Quoted 2 lines

but maybe that is a task for me to do! Then it would be general across Windows/Linux. I have not used the extensions

before, and I

Quoted 5 lines

would love it if you had an example cert with the CDP or OCSP extensions filled out so I can use that as a reference to proper form. My OCSP responder also runs on Linux, rather than Windows.

Quoted 9 lines

-Dave

...

Quoted 5 lines

Thank you for your tests!

Your configuration is correct.

Can you please double click the certificate at the MMC,

and > see

Quoted 8 lines

if it marked "OK"? If there is an error then there is > probably something wrong with CA location or CRL fetch. >

Quoted 6 lines

How did you enroll your certificate? If you did this via microsoft CA, you have CDP (CRL distribution point) X.509 extension that is used by Windows to automatically fetch your CRL. If you got OCSP responder which is integrated with CAPI on your machine it will also work in this configuration.

Quoted 7 lines
Quoted 3 lines

I added some more debugging information.
Please run the new version [1] with verb 255.
Thanks!

...

--------------------------------------------------------------
-----------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#10 lore raw

Nope, still crashes.

Application Event Log reveals:

Faulting application openvpn.exe, version 0.0.0.0, faulting module
libeay32.dll, version 0.9.9.0, fault address 0x0005c4c5.

I suppose there's no debug info in the MinGW build -- I can attach a debugger when it crashes and could see the source if there was debug info. Invariably something about my config triggers some boundary case.

When testing only with cryptoapicert, the failure occurs also, and is logged as having had happened at the same location.

-Dave

Quoted 137 lines

-----Original Message-----
From: Alon Bar-Lev [mailto:[email protected]...]
Sent: Saturday, October 18, 2008 1:51 PM
To: Dave
Cc: openvpn devel
Subject: Re: [Openvpn-devel] [MSCAPI] Need testers

I cannot see what is wrong, what exactly crashes? Do you have an entry in event log?, I recompiled everything at [1], I may had a problem with the libraries. Can you please test only with cryptoapicert and see if it changes something?

Thanks!

[1] http://alon.barlev.googlepages.com/openvpn-mscapi-test-6.tar.bz2

Quoted 2 lines · Dave

A little bit further, though now it crashes for me using all the binaries you included in your bz file. Log attached

herewith in case

Quoted 21 lines

that helps locate the area affected.

-Dave

Quoted 16 lines

-----Original Message-----
From: Alon Bar-Lev [mailto:[email protected]...]

Sent: Saturday, October 18, 2008 1:01 PM
To: Dave
Cc: openvpn devel

Subject: Re: [Openvpn-devel] [MSCAPI] Need testers

Thank you for testing!

Found the problem... CryptoAPI cannot validate root certificate... OK, can you please test [1]?

Quoted 11 lines
Quoted 7 lines

I also renamed the option from cryptoapica to cryptoapi-chain-validation, I think it is clearer.

Thanks!
Alon.

[1]

http://alon.barlev.googlepages.com/openvpn-mscapi-test-5.tar.bz2

Quoted 3 lines · Dave
Quoted 1 line

attached herewith is the log of the (failed)

attempt(s) to connect.

Quoted 10 lines
Quoted 10 lines
Quoted 4 lines

Certs are all OK as far as I can tell (no red X overlaid).

This CA cert I created some years back with easy-RSA.

These days I

Quoted 1 line

now manage my CA with XCA off a USB key, but I imported

that CA cert

Quoted 3 lines

rather than rebuilding the PKI.

Your CRL/OCSP suggestion is interesting, though of

course that's

Quoted 5 lines
Quoted 5 lines
Quoted 1 line

Windows only (my servers are all Linux). Actually I was

hoping for

Quoted 1 line

an extension of the OCSP patch that was submitted about a

year ago,

Quoted 1 line

but maybe that is a task for me to do! Then it would

be general

Quoted 4 lines
Quoted 4 lines
Quoted 1 line

across Windows/Linux. I have not used the extensions

before, and I

Quoted 2 lines

would love it if you had an example cert with the CDP or OCSP extensions filled out so I can use that as a reference

to proper

Quoted 1 line
Quoted 1 line
Quoted 1 line

form. My OCSP responder also runs on Linux, rather

than Windows.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

-Dave

...

Quoted 12 lines
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines

Thank you for your tests!

Your configuration is correct.

Can you please double click the certificate at the MMC,

and > see

Quoted 1 line

if it marked "OK"? If there is an error then there is

probably

Quoted 4 lines
Quoted 4 lines

something wrong with CA location or CRL fetch. >

Quoted 3 lines

How did you enroll your certificate? If you did this via microsoft CA, you have CDP (CRL distribution point) X.509 extension that is used by Windows to automatically

fetch your

Quoted 12 lines
Quoted 11 lines
Quoted 10 lines
Quoted 6 lines

CRL. If you got OCSP responder which is integrated with CAPI on your machine it will also work in this configuration.

I added some more debugging information.
Please run the new version [1] with verb 255.
Thanks!

...

Quoted 5 lines
Quoted 5 lines

--------------------------------------------------------------
-----------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand

prize > is a

Quoted 9 lines

trip for two to an Open Source event anywhere in the > world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Quoted 5 lines

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

--------------------------------------------------------------
-----------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#11 lore raw

Thank you for your time!
Last time... If we don't make any progress I will install Windows setup when I have some free time.
The problem is may be due to RSA_FLAG_SIGN_VER flag that should be set on the RSA and not the method.
Can you please test [1]?

Alon.

[1] http://alon.barlev.googlepages.com/openvpn-mscapi-test-7.tar.bz2

Quoted 157 lines · Dave

Nope, still crashes.

Application Event Log reveals:

Faulting application openvpn.exe, version 0.0.0.0, faulting module
libeay32.dll, version 0.9.9.0, fault address 0x0005c4c5.

I suppose there's no debug info in the MinGW build -- I can attach a debugger when it crashes and could see the source if there was debug info. Invariably something about my config triggers some boundary case.

When testing only with cryptoapicert, the failure occurs also, and is logged as having had happened at the same location.

-Dave

Quoted 138 lines

-----Original Message-----
From: Alon Bar-Lev [mailto:[email protected]...]

Sent: Saturday, October 18, 2008 1:51 PM
To: Dave
Cc: openvpn devel
Subject: Re: [Openvpn-devel] [MSCAPI] Need testers

I cannot see what is wrong, what exactly crashes? Do you have an entry in event log?, I recompiled everything at [1], I may had a problem with the libraries. Can you please test only with cryptoapicert and see if it changes something?

Thanks!

[1] http://alon.barlev.googlepages.com/openvpn-mscapi-test-6.tar.bz2

Quoted 2 lines · Dave

A little bit further, though now it crashes for me using all the binaries you included in your bz file. Log attached

herewith in case

Quoted 21 lines

that helps locate the area affected.

-Dave

Quoted 16 lines

-----Original Message-----
From: Alon Bar-Lev [mailto:[email protected]...]

Sent: Saturday, October 18, 2008 1:01 PM
To: Dave
Cc: openvpn devel

Subject: Re: [Openvpn-devel] [MSCAPI] Need testers

Thank you for testing!

Found the problem... CryptoAPI cannot validate root certificate... OK, can you please test [1]?

Quoted 11 lines
Quoted 7 lines

I also renamed the option from cryptoapica to cryptoapi-chain-validation, I think it is clearer.

Thanks!
Alon.

[1]

http://alon.barlev.googlepages.com/openvpn-mscapi-test-5.tar.bz2

Quoted 3 lines · Dave
Quoted 1 line

attached herewith is the log of the (failed)

attempt(s) to connect.

Quoted 10 lines
Quoted 10 lines
Quoted 4 lines

Certs are all OK as far as I can tell (no red X overlaid).

This CA cert I created some years back with easy-RSA.

These days I

Quoted 1 line

now manage my CA with XCA off a USB key, but I imported

that CA cert

Quoted 3 lines

rather than rebuilding the PKI.

Your CRL/OCSP suggestion is interesting, though of

course that's

Quoted 5 lines
Quoted 5 lines
Quoted 1 line

Windows only (my servers are all Linux). Actually I was

hoping for

Quoted 1 line

an extension of the OCSP patch that was submitted about a

year ago,

Quoted 1 line

but maybe that is a task for me to do! Then it would

be general

Quoted 4 lines
Quoted 4 lines
Quoted 1 line

across Windows/Linux. I have not used the extensions

before, and I

Quoted 2 lines

would love it if you had an example cert with the CDP or OCSP extensions filled out so I can use that as a reference

to proper

Quoted 1 line
Quoted 1 line
Quoted 1 line

form. My OCSP responder also runs on Linux, rather

than Windows.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

-Dave

...

Quoted 12 lines
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines

Thank you for your tests!

Your configuration is correct.

Can you please double click the certificate at the MMC,

and > see

Quoted 1 line

if it marked "OK"? If there is an error then there is

probably

Quoted 4 lines
Quoted 4 lines

something wrong with CA location or CRL fetch. >

Quoted 3 lines

How did you enroll your certificate? If you did this via microsoft CA, you have CDP (CRL distribution point) X.509 extension that is used by Windows to automatically

fetch your

Quoted 12 lines
Quoted 11 lines
Quoted 10 lines
Quoted 6 lines

CRL. If you got OCSP responder which is integrated with CAPI on your machine it will also work in this configuration.

I added some more debugging information.
Please run the new version [1] with verb 255.
Thanks!

...

Quoted 5 lines
Quoted 5 lines

--------------------------------------------------------------
-----------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand

prize > is a

Quoted 9 lines

trip for two to an Open Source event anywhere in the > world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Quoted 5 lines

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

--------------------------------------------------------------
-----------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel