1 <!--#include virtual="/samba/header.html" -->
2 <title>SWAT and SSL</title>
3 <!--#include virtual="/samba/header_wide.html" -->
7 Lots of people have asked about how to setup SWAT with SSL to allow
8 for secure remote administration of Samba. Here is a method that
9 works, courtesy of <a href="mailto:krieger@rz.uni-wuerzburg.de">Markus
12 My modifications to the swat setup are as following:
15 <li> generate certificate and private key<br>
16 root# /usr/bin/openssl req -new -x509 -days 365 -nodes -config /usr/share/doc/packages/stunnel/stunnel.cnf -out /etc/stunnel/stunnel.pem -keyout /etc/stunnel/stunnel.pem<br>
17 <li> remove swat-entry from [x]inetd
18 <li> start stunnel<br>
19 root# stunnel -p /etc/stunnel/stunnel.pem -d 901 -l /usr/local/samba/bin/swat swat
22 afterwards i simply contact swat by using the URL "https://myhost:901", accept the certificate
23 and the SSL connection is up<p>
26 stunnel: <a href="http://www.stunnel.org/">http://www.stunnel.org/</a><br>
27 openssl: <a href="http://www.openssl.org/">http://www.openssl.org/</a>
29 <!--#include virtual="/samba/footer.html" -->