stunnel

Https on Zenoss (zope) using stunnel

This setting is to configure Zenoss to be accessed by SSL (https).
This setting is done on top of Ubuntu 8.0.4.2 x86_64 , Zenoss 64 bit

$ su -

$ apt-get install openssl stunnel

$ cd /etc/stunnel

$ openssl req -new -x509 -days 3650 -nodes -out stunnel.pem -keyout stunnel.pem

$ chmod 600 ./stunnel.pem

$ nano /etc/stunnel/stunnel.conf

add/edit the file:

cert = /etc/stunnel/stunnel.pem

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

then, save n close,next

$ nano /etc/default/stunnel4

change to:

ENABLED=1

save n close,

$ /etc/init.d/stunnel4 restart
$ su zenoss
$ cd /usr/local/zenoss/zenoss/etc
$ nano ./zope.conf

edit in the config file:

<cgi-environment>
   HTTPS ON
</cgi-environment>

Save n close. Next restart zope:

$ zopectl restart

done, open browser n go to https://yourzenossIP

p/s:  sudo /etc/init.d/stunnel14 restart     —– if browser doesnt respond

By salawank on October 19, 2009 | Uncategorized | 1 comment
Tags: , ,

5 visitors online now
5 guests, 0 members
Max visitors today: 11 at 11:25 am GMT-8
This month: 11 at 09-09-2010 11:25 am GMT-8
This year: 21 at 03-24-2010 06:49 pm GMT-8
All time: 43 at 10-20-2009 08:17 am GMT-8

salawank is Digg proof thanks to caching by WP Super Cache