FIPS_mode_set in windows

2006-07-17 Thread Shicai Hu
In linux, I can call FIPS_mode, if return value is zero, then I can call FIPS_mode_set( 1 ) to set FIPS mode; however, in windows, call FIPS_mode, the return value is zero, but when I call FIPS_mode_set(1), it still return the ERROR message : 2496:error:2A069066:FIPS routines:FIPS_mode_set:fips

ECDSA/SHA1 verification

2006-07-17 Thread Alfred Thomas
Hi all Can anyone please tell me what I might be doing wrong when trying to verify a signature using openssl. We are using the same digest, signature and certificate in Java and then it verifies ok. But it fails on (errorcode 0) in openssl. I am including the code as well as the signature, digest

When it is safe to call SSL_write after SSL_read?

2006-07-17 Thread Henrik Thuermer
Hi, Our application sends/receives audio/video streams on a ssl connection. The i/o is done by our application and we communicate with the ssl library via BIO_read/BIO_write and SSL_write/SSL_read. All operations are non blocking. Everything works fine until the processed packets per second

Re: When it is safe to call SSL_write after SSL_read?

2006-07-17 Thread Darryl Miles
Henrik Thuermer wrote: If we receive some data we process it via one BIO_write call followed by SSL_read calls until the call to SSL_read fails with SSL_get_error() == SSL_ERROR_WANT_READ or SSL_read returns no more data (SSL_ERROR_WANT_WRITE is also handled correctly - I hope). Then we stop

Problem generating a certificate.

2006-07-17 Thread Dave Pawson
Following the example in the openssl book, I generated a cert request $C:\caopenssl req -newkey rsa:1024 -keyout blkey.pem -keyform PEM -out blreq.pem -outform PEM Then tried to generate the certificate (with openssl.cnf set to the CA configuration). C:\caopenssl ca -in blreq.pem Using

Re: Problem generating a certificate.

2006-07-17 Thread Dr. Stephen Henson
On Mon, Jul 17, 2006, Dave Pawson wrote: wrong number of fields on line 1 (looking for field 6, got 1, '' left) I'm unsure which file it's telling me is wrong, the request or the config file? Neither it is saying the CA index.txt file is in an invalid format. I'd suggest using the CA.pl

Run openssl.exe after OPENSSL_FIPS system variable is set

2006-07-17 Thread Shicai Hu
I got the same error:C:\OpenSSL\openssl-0.9.7j\out32dllopenssl.exe3300:error:2A069066:FIPS routines:FIPS_mode_set:fips mode already set:fips.c:239:(Last week, when I run openssl wihtout OPENSSL_FIPS set, it's running OK. Recently,I looked the source code, openssl.c calls FIPS_mode_set

Re: Problem generating a certificate.

2006-07-17 Thread Dave Pawson
On 17/07/06, Dr. Stephen Henson [EMAIL PROTECTED] wrote: I'm unsure which file it's telling me is wrong, the request or the config file? Neither it is saying the CA index.txt file is in an invalid format. I'd suggest using the CA.pl script instead for this, it makes things considerably

Re: Problem generating a certificate.

2006-07-17 Thread Dr. Stephen Henson
On Mon, Jul 17, 2006, Dave Pawson wrote: On 17/07/06, Dr. Stephen Henson [EMAIL PROTECTED] wrote: I'm unsure which file it's telling me is wrong, the request or the config file? Neither it is saying the CA index.txt file is in an invalid format. I'd suggest using the CA.pl script

Re: Problem generating a certificate.

2006-07-17 Thread Dave Pawson
On 17/07/06, Dr. Stephen Henson [EMAIL PROTECTED] wrote: I'd suggest using the CA.pl script instead for this, it makes things considerably easier. CA.pl just does the right thing without the user having to worry about it. Later if you want to understand how everything works or for more

Re: When it is safe to call SSL_write after SSL_read?

2006-07-17 Thread Henrik Thuermer
At 11:59 17.07.2006 +0100, you wrote: Henrik Thuermer wrote: If we receive some data we process it via one BIO_write call followed by SSL_read calls until the call to SSL_read fails with SSL_get_error() == SSL_ERROR_WANT_READ or SSL_read returns no more data (SSL_ERROR_WANT_WRITE is also

issues with the openssl command-line tool

2006-07-17 Thread Michael P. Soulier
Hello, When I try to sign CSRs for my CA to create client certificates the openssl command-line tool returns 0, regardless of whether it succeeded or failed. Should it not be returning a non-zero value if it failed to sign the CSR for some reason? This is crucial when wrappering the openssl tool

RE: Last call to BIO_read in loop freezes

2006-07-17 Thread David Schwartz
For some reason I didn't get the original post, so I'm replying to the reply. In a blocking socket when a network read freezes, it is normal. It only means that nothing arrived on the socket. You got to take a look at the MSN protocol. With HTTP, it might be sending a TCP FIN or

RE: Last call to BIO_read in loop freezes

2006-07-17 Thread Marek Marcola
Hello, For some reason I didn't get the original post, so I'm replying to the reply. In a blocking socket when a network read freezes, it is normal. It only means that nothing arrived on the socket. You got to take a look at the MSN protocol. With HTTP, it might be sending a

RE: Last call to BIO_read in loop freezes

2006-07-17 Thread David Schwartz
To clarify: HTTP 1.0 do not have persistent connection so connection has no meaning for HTTP 1.0 and server should drop connection after servicing such client request. This is true under the official specification, but is not true as to how the protocol is used. Persistent connections

RE: Last call to BIO_read in loop freezes

2006-07-17 Thread Marek Marcola
Hello, To clarify: HTTP 1.0 do not have persistent connection so connection has no meaning for HTTP 1.0 and server should drop connection after servicing such client request. This is true under the official specification, but is not true as to how the protocol is used. Persistent

Re: Last call to BIO_read in loop freezes

2006-07-17 Thread William A. Rowe, Jr.
David Schwartz wrote: Notice the two persistent connection headers returned? And, in practice, the connection is in fact persistent. If you were correct, the server would ignore the Connection header since it has no meaning. Try it without a connection header and you will see the

Re: Connection problem with some ciphers ... ServerHello seemsto be the problem

2006-07-17 Thread Marek Marcola
Hello, Many applications generate a static one, can the same exact key be re-used without any security considerations for unrelated sessions ? Should a highly secure application generate a new one for every connection? In this case (export restriction) generating RSA 512 bit key is not

Re: When it is safe to call SSL_write after SSL_read?

2006-07-17 Thread Girish Venkatachalam
Excuse me if I am saying the obvious. But did you factor the fact that an SSL renegotiation or handshake can happen anytime during the conversation? Irrespective of whether you are doing SSL_read or SSL_write... That is why you have to check for pending write during a SSL_read and vice versa

Re: issues with the openssl command-line tool

2006-07-17 Thread Marek Marcola
Hello, When I try to sign CSRs for my CA to create client certificates the openssl command-line tool returns 0, regardless of whether it succeeded or failed. Should it not be returning a non-zero value if it failed to sign the CSR for some reason? This is crucial when wrappering the openssl

Error in Proxy Certificates HOWTO

2006-07-17 Thread John Zornig
I came across a mistake in one of the HOWTO documentshttp://www.openssl.org/docs/HOWTO/proxy_certificates.txt - in all other cases, proxy certificate validation can be enabled   before starting the application by setting the envirnoment variable   OPENSSL_ALLOW_PROXY with some non-empty value.This