![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
After installing 8.0.0beta4 (previously tried with beta3,2,etc) on a linux system with a working 7.4.x installation I was unable to connect with ssl. Tried compiling with OpenSSL 0.9.7d/e. I used certificates created with OpenSSL 0.9.7d/e that both worked fine with 7.4.x but apparently not so with 8.0.0. Server starts fine, but when I attempt to connect to the server with latest pgadmin or psql (8.0.0beta4 both on the pgfoundry binary for windows and a compiled version on Mandrake Linux) the error is always the same. The error message returned to the client is "SSL error: sslv3 alert handshake failure". The log reports: "could not accept SSL connection: 1". |
#3
| |||
| |||
|
|
After installing 8.0.0beta4 (previously tried with beta3,2,etc) on a linux system with a working 7.4.x installation I was unable to connect with ssl. Tried compiling with OpenSSL 0.9.7d/e. I used certificates created with OpenSSL 0.9.7d/e that both worked fine with 7.4.x but apparently not so with 8.0.0. Server starts fine, but when I attempt to connect to the server with latest pgadmin or psql (8.0.0beta4 both on the pgfoundry binary for windows and a compiled version on Mandrake Linux) the error is always the same. The error message returned to the client is "SSL error: sslv3 alert handshake failure". The log reports: "could not accept SSL connection: 1". The only SSL changes between beta3 and beta4 were Magnus' changes to make ssl work on Windows, so I'm assuming this is his fault ... |
#4
| |||
| |||
|
|
"PostgreSQL Bugs List" <pgsql-bugs (AT) postgresql (DOT) org> writes: After installing 8.0.0beta4 (previously tried with beta3,2,etc) on a linux system with a working 7.4.x installation I was unable to connect with ssl. Tried compiling with OpenSSL 0.9.7d/e. I used certificates created with OpenSSL 0.9.7d/e that both worked fine with 7.4.x but apparently not so with 8.0.0. Server starts fine, but when I attempt to connect to the server with latest pgadmin or psql (8.0.0beta4 both on the pgfoundry binary for windows and a compiled version on Mandrake Linux) the error is always the same. The error message returned to the client is "SSL error: sslv3 alert handshake failure". The log reports: "could not accept SSL connection: 1". The only SSL changes between beta3 and beta4 were Magnus' changes to make ssl work on Windows, so I'm assuming this is his fault ... |
#5
| |||
| |||
|
|
Sounds like a problem due to the backend in recent betas demanding a client certificate if $PGDATA/root.crt exists, but the client certificate doesn't exist in ~/.postgresql/postgresql.{crt,key}. |
#6
| |||
| |||
|
|
Michael Fuhr <mike (AT) fuhr (DOT) org> writes: Sounds like a problem due to the backend in recent betas demanding a client certificate if $PGDATA/root.crt exists, but the client certificate doesn't exist in ~/.postgresql/postgresql.{crt,key}. If that is the problem, it's still broken because the error message is so unhelpful. (I'm quite certain I tested that case last time I touched the SSL code, and it said something reasonable then.) |
#7
| |||
| |||
|
|
On Tue, Nov 16, 2004 at 03:33:49PM -0500, Tom Lane wrote: Michael Fuhr <mike (AT) fuhr (DOT) org> writes: Sounds like a problem due to the backend in recent betas demanding a client certificate if $PGDATA/root.crt exists, but the client certificate doesn't exist in ~/.postgresql/postgresql.{crt,key}. If that is the problem, it's still broken because the error message is so unhelpful. (I'm quite certain I tested that case last time I touched the SSL code, and it said something reasonable then.) I get the following error if I use an 8.0.0beta4 client to connect to an 8.0.0beta4 server that has a root.crt, but the client certificate doesn't exist in ~/.postgresql: psql: SSL error: sslv3 alert handshake failure The server logs the following: LOG: could not accept SSL connection: 1 If the certificate exists but I use a 7.4.6 client, then the client fails with the following: psql: unrecognized SSL error code The server logs this: LOG: could not accept SSL connection: 5 |
#8
| |||
| |||
|
|
To clarify, what I have experienced was in all versions of 8.0.0.beta, it did not just happen between 3 to 4. It was the change from 7.4 to 8.0. The error was not just windows based as I built psql on a seperate linux machine communicating with a linux server and got the same results. I created a client.crt client.key and placed them into the data directory, no change. I read the below post again and renamed the files to postgresql.crt and postgresql.key. No change. Read the below post very carefully AGAIN and then copied those files up one directory into the main pgsql dir. No change. Did I miss something? |
#9
| |||
| |||
|
|
Upon reviewing this patch, I notice this horrible line slipped into the patch earlier up (in the #ifdef WIN32 section): + printf("uhh\n");fflush(stdout); Oopsie. Could you remove that, or do you want a patch to do it? :-) Can't beleive I missed that... |
![]() |
| Thread Tools | |
| Display Modes | |
| |