Hi guys! First of all I'd like to give best thanks to the makers of HFS. Great software for people like myself, who don't know a lot about servers and just want to share files. Like many folks using HFS, I am also trying to use STunnel to transfer encrypted data via internet. I was following the
http://www.rejetto.com/wiki/index.php?title=HFS:_Secure_your_server guide 2 times to get this to work, and I guess I made no mistakes. Here's my problem. When trying to access httpS://"My IP number" I get a "bad certificate" error in firefox and Stunnel log file. The log looks like this:
https accepted FD=200 from "My IP Number":3019
Creating a new thread
New thread created
https started
FD 200 in non-blocking mode
TCP_NODELAY option set on local socket
https accepted connection from "My IP Number":3019
SL state (accept): before/accept initialization
SSL state (accept): SSLv3 read client hello A
SSL state (accept): SSLv3 write server hello A
SSL state (accept): SSLv3 write certificate A
SSL state (accept): SSLv3 write server done A
SSL state (accept): SSLv3 flush data
SSL alert (read): fatal: bad certificate
SSL_accept: 14094412: error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate
Connection reset: 0 bytes sent to SSL, 0 bytes sent to socket
https finished (0 left)
This is the port configuration that I'm using (I've done EVERYTHING EXACTLY like the tutorial says):
accept = 0.0.0.0:443
connect = 127.0.0.1:80
When creating the pem key in the last line I insert http://"My IP number" ,and after all is set up (configuration presented in the tutorial is done), when I enter https://"My IP number" address to my browser, firefox generates the "bad certificate error". I can still click to accept the certificate temporarily, and after I do so, another message appears. Something like (translation-probably not exact): "firefox tried to connect to "My Ip number" , however the certificate presented by the address belongs to http://"My Ip number" If there is a suspicion, that the certificate doesn't belong to "My Ip number" please cancel the connection. At that point I have three options:
1.Show certificate (which correctly shows the data I put when generating the pem key)
2.Ok.
3.Cancel
When I hit OK, I get the httpS://"My IP number" in gold(certificate works?), loading is done, but I get a BLANK PAGE. Stunnel gives the log shown above.
PLEASE HELP ME, as I guess the problem probably is not complicated at all, but I'm a newbie (but not a stupid newbie). I've been trying to get this to work for a half day now, but I failed to do so.. Any help will be greatly appreciated.. I'm totally stuck now.. Won't move forward without outside help...
Ps: "My Ip number" is of course my real ip number, without the quotation marks.