![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Having some problems (still, hehe) getting SSL to work properly on windows in the new 8.0 (all vers) environment (where cert/key is required). On the client side when not finding the certificate/key psql would report the SSL error sslv3 alert handshale failure. After I figured out where psql was looking for the files and placing them there I now get the error: SSL SYSCALL error: Connection reset by peer (0x00002746/10054). On the server side it still reports that the peer did not return a certificate. I am able to connect to the server just fine using the same certificate/key on a linux machine...so I'm guessing it's just another good ol' windows issue? ![]() ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org |
#3
| |||
| |||
|
|
Did we ever find the solution to this, or did anyone find the cause? --------------------------------------------------------------------------- T.J. wrote: Having some problems (still, hehe) getting SSL to work properly on windows in the new 8.0 (all vers) environment (where cert/key is required). On the client side when not finding the certificate/key psql would report the SSL error sslv3 alert handshale failure. After I figured out where psql was looking for the files and placing them there I now get the error: SSL SYSCALL error: Connection reset by peer (0x00002746/10054). On the server side it still reports that the peer did not return a certificate. I am able to connect to the server just fine using the same certificate/key on a linux machine...so I'm guessing it's just another good ol' windows issue? ![]() ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org |
#4
| |||
| |||
|
|
Not to my knowledge. By the way, for future reference on windows it looks for the cert/key in the linux equivalent of `pwd`/.postgresql/postgresql.crt/key, instead of $HOME/.postgresql/postgresql.crt/key. |
#5
| |||
| |||
|
|
"T.J." <tjtoocool (AT) phreaker (DOT) net> writes: Not to my knowledge. By the way, for future reference on windows it looks for the cert/key in the linux equivalent of `pwd`/.postgresql/postgresql.crt/key, instead of $HOME/.postgresql/postgresql.crt/key. Actually, it asks getpwuid() for the user's home directory, rather than looking for an environment variable named HOME. See client_cert_cb() in fe-secure.c. This could probably be documented better, but I'm not sure how. The average user is even less likely to be familiar with getpwuid() than $HOME, so it doesn't seem like referencing that library function is much of an improvement. regards, tom lane |
#6
| |||
| |||
|
|
Which leads me to my next question; that function client_cert_cb, does it ever get executed on windows? ![]() |
#7
| |||
| |||
|
|
"T.J." <tjtoocool (AT) phreaker (DOT) net> writes: Which leads me to my next question; that function client_cert_cb, does it ever get executed on windows? ![]() Um. Looks like someone ifdef'd it out :-(. In fact, if you look through fe-secure.c, you'll see that just about all the SSL code is ifdef'd out on Windows. Try removing the #ifs and see if it compiles. win32 hackers, anyone know why it's like this? regards, tom lane |
#8
| |||
| |||
|
|
win32 hackers, anyone know why it's like this? |
#9
| |||
| |||
|
|
I wrote: win32 hackers, anyone know why it's like this? Looking through the code, it seems that it's because someone thought that breaking SSL would be easier than replacing the pqGetpwuid() calls that are used to find out the user's home directory. Does Windows even have a concept of home directory? What would be a reasonable equivalent to ~/.postgresql/ ? |
#10
| |||
| |||
|
|
Tom Lane wrote: Does Windows even have a concept of home directory? What would be a reasonable equivalent to ~/.postgresql/ ? The versions of windows that the port supports (NT4, 2000, 2003, XP) do have home directories. |
![]() |
| Thread Tools | |
| Display Modes | |
| |