HTTPS and Webmin
Summary:- What Is It
- Installation And Testing
- Securing Webmin
What Is It
HTTPS stands for HTTP via SSL, the Secure Socket Layer.The Hyper Text Transfer Protocol is an inherently insecure protocol as all information is sent in clear text between unauthenticated peers over an insecure network. It belongs to the group of 'old' protocols like telnet and ftp which are bound to be replaced - or at least enhanced - by transfer protocols which allow authentication and encryption. HTTPS allows client and server-side authentication via certificates, which have been in turn signed by a Certification Agency. The client's web-browser must support SSL, almost all (Mozilla, MSIE, Konqueror, Opera, Lynx, w3m) do. The server must listen on a port other than 80, usually this is port 443.
Upon connecting to the secure part of a website, signified by 'https://' (thus indicating port 443 instead of port 80), the server and the client negotiate the SSL protocol version to use and a unique session-ID is established. If the certificate presented by the server is unknown to the client, the client is free to accept or reject the certificate. In turn the server can also demand a certificate from the client. Server and client now share a common key which allows them to encrypt and decrypt messages they send to each other. For a far more detailed and accurate introduction, read the excellent mod_ssl user manual. The Webmin system configuration utility allows you to configure your linux system(s) via a browser. This makes remote administration very easy and comfortable. However, since the web-server running Webmin must be run 'setuid root', an improperly configured Webmin can pose a huge security threat to the system running it. One method of securing Webmin is to use HTTPS, another tunneling via SSH, still another will be introduced at the end of this article. section index
Installation And Testing
The most straightforward method of installing webmin is to use the Software Manager and select the webmin package from the list of "Installable" packages and press the "Add/Remove" button. If you prefer the commandline, you can runurpmi webmin
urpmi openssl
service webmin start
openssl s_client -connect localhost:443 -state -debug
- Change and
User
directives toGroup
.root
- Set to '/usr/share/webmin'.
~DocumentRoot
~SetEnv WEBMIN_CONFIG /etc/webmin
~SetEnv WEBMIN_VAR /var/webmin~SetEnv MINISERV_C0NFIG /etc/webmin/miniserv.conf
~AuthType basic, ~AuthUserFile /etc/webmin/miniserv.users
- .
require valid-user
Securing Webmin
A remotely accessible 'setuid root' application is one of the biggest possible security threats imaginable. Securing Webmin by using HTTPS or tunneling alone will not do. Use Webmin's 'IP Access Control' ('Webmin Configuration') and 'Port And Address' to limit the number of clients which are granted access and the number of addresses Webmin listens on. Use 'Webmin Modules' to delete modules you don't need or which you don't want anyone to access via Webmin. Note that simply changing from the Webmin interface to another page will not log you out1.1 As long as the browser window is open everyone is able to access Webmin without providing a password by simply using the 'Back' button of the browser. If you are on a dialup-connection, stop the Webmin service every time you connect to the net and restart it when you disconnect. A single line likeservice webmin stop
service webmin start
Related Resources:
Using SSL With Webminmod_ssl user manual Revision / Modified: Sept. 27, 2001 / Mar. 05, 2002
Author: Tom Berger, Todd Lyons Legal: This page is covered by the GNU Free Documentation License. Standard disclaimers of warranty apply. Copyright LSTB and Mandrakesoft.
HTTPS and Webmin
Version 1.3 last modified by AdminWiki on 22/03/2004 at 09:45
Version 1.3 last modified by AdminWiki on 22/03/2004 at 09:45
Document data
- Lost account?
- Join the community, be part of the Club: it's free!
- Get the PWP Download Subscription!


