rejetto forum

Software => HFS ~ HTTP File Server => router & port problems => Topic started by: uvbeenzaned on January 22, 2010, 02:21:57 PM

Title: HTTPS support (stunnel?)
Post by: uvbeenzaned on January 22, 2010, 02:21:57 PM
Hi,

I need ssl support and need to know how to set up stunnel!
I have installed and I need to know what the config is supposed to be set to in stunnel.conf.
Never used https in hfs.
The only time I use it is when I am using apache and mysql, php and all of the huge websever stuff.
Title: Re: HTTPS support (stunnel?)
Post by: uvbeenzaned on January 22, 2010, 02:44:34 PM
Well thanks then.

I looked at some other posts and tried it the way they did it but it didn't work!

This is what I had by the way:
;[https]
;accept  = 443
;connect = 80
;TIMEOUTclose

It's not working every time I connect to my server.

Sorry if I am being annoying about this. :-[
Title: Re: HTTPS support (stunnel?)
Post by: Mars on January 22, 2010, 03:01:57 PM
; Sample stunnel configuration file by Michal Trojnara 2002-2006
; Some options used here may not be adequate for your particular configuration

; Certificate/key is needed in server mode and optional in client mode
; The default certificate is provided only for testing and should not
; be used in a production environment
cert = cert.pem
key  = key.pem

; Some performance tunings
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1

; Workaround for Eudora bug
;options = DONT_INSERT_EMPTY_FRAGMENTS

; Authentication stuff
;verify = 2
; Don't forget to c_rehash CApath
;CApath = certs
; It's often easier to use CAfile
;CAfile = certs.pem
; Don't forget to c_rehash CRLpath
;CRLpath = crls
; Alternatively you can use CRLfile
;CRLfile = crls.pem

; Some debugging stuff useful for troubleshooting
debug = 7

;output = stunnel.log

; Use it for client mode
;client = yes

; Service-level configuration

;[pop3s]
;accept  = 995
;connect = 110

;[imaps]
;accept  = 993
;connect = 143

;[ssmtp]
;accept  = 465
;connect = 25

[https]
accept  = 0.0.0.0:443
connect = 127.0.0.1:80
local = 127.0.0.1
TIMEOUTclose = 0
Title: Re: HTTPS support (stunnel?)
Post by: uvbeenzaned on January 22, 2010, 03:14:58 PM
Get this every time!

 >:( I hate port and http stuff sometimes.
Title: Re: HTTPS support (stunnel?)
Post by: Mars on January 22, 2010, 05:22:54 PM
use an other port for hfs 7000 by example

and in ssl.conf

[https]
accept  = 0.0.0.0:443
connect = 127.0.0.1:7000
local = 127.0.0.1
TIMEOUTclose = 0

Title: Re: HTTPS support (stunnel?)
Post by: FRENCH CAN CAN on January 22, 2010, 05:43:43 PM
Well thanks then.

I looked at some other posts and tried it the way they did it but it didn't work!

This is what I had by the way:
;[https]
;accept  = 443
;connect = 80
;TIMEOUTclose

It's not working every time I connect to my server.

Sorry if I am being annoying about this. :-[

Eliminate  ;

Correct:

[https]
accept  = 443
connect = 80
TIMEOUTclose = 0



cert = cert.pem
key  = key.pem
Title: Re: HTTPS support (stunnel?)
Post by: uvbeenzaned on January 27, 2010, 08:22:31 PM
Thanks!  I will get back around to this later! ;)