history: fix ü and ö in samba-4.3.0.html
[metze/test/samba-web.git] / docs / swat_ssl.html
1 <!--#include virtual="/samba/header.html" -->
2   <title>SWAT and SSL</title>
3 <!--#include virtual="/samba/header_wide.html" -->
4
5 <h2>SWAT and SSL</h2>
6
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
10 Krieger</a><p>
11
12 My modifications to the swat setup are as following:
13 <ul>
14 <li> install OpenSSL
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
20 </ul>
21
22 afterwards i simply  contact swat by using the URL "https://myhost:901", accept the certificate
23 and the SSL connection is up<p>
24
25 Sources:<br>
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>
28
29 <!--#include virtual="/samba/footer.html" -->