Calendar
数据载入中,请稍候......
Placard
数据载入中,请稍候......
Category
数据载入中,请稍候......
Latest Entries
数据载入中,请稍候......
Latest Comments
数据载入中,请稍候......
Last Messages
数据载入中,请稍候......
User Login
数据载入中,请稍候......
Links
Information
数据载入中,请稍候......
Search
Other


Welcome to my blog!
  Using SSL with Webmin
 

Because your Webmin login and password are normally passed between your browser and

the server in unencrypted form, an attacker with access to any of the networks between

the browser and server can easily capture your Webmin login. To prevent this, Webmin

can be configured to use SSL to encrypt all of its network traffic.
 Last updated:
Sunday, 01-Oct-2006 17:24:23 PDT


Running Webmin in SSL mode
To install SSL, follow these steps :
1.Download the OpenSSL library
OpenSSL is a C library that provides the underlying SSL functions used by Webmin and

many other programs. It is available in RPM format and as a .tar.gz file. When

installing from the RPM, you may also need the development RPM in order to compile

Net::SSLeay.
Most Linux and BSD distributions now come with OpenSSL RPMs that are installed as

standard or available on the CD. If your distribution has openssl and possibily

openssl-devel packages, use them instead.
(http://www.openssl.org/source/下载网址  源文件openssl-0.9.8.tar.gz)

2.Install the OpenSSL library
If you are installing from the RPM, run the commands :
  rpm -i openssl-0.x.y.rpm
  rpm -i openssl-devel-0.x.y.rpm
If installing from the source, you will need to compile and install it with the

commands :
  tar xvzf openssl-0.x.y.tar.gz
  cd openssl-0.x.y
  ./Configure     (or ./config in new OpenSSL versions)
  make
  make install


3.Download the Net::SSLeay Perl module
Net::SSLeay is a module that allows Perl scripts to call the functions in the OpenSSL

library. It is available in .tar.gz format from the Webmin site or from the CPAN Perl

module archive.
Alternately, you can use the Perl Modules module in Webmin to download an install

Net::SSLeay from CPAN. If this works OK, the next step can be skipped.
Some Linux distributions come with an RPM package containing this Perl module, often

named perl-Net-SSLeay. If one is available, install it instead of compiling the module

manually. You may also be able to find a suitable package at rpmfind.net if your

distribution doesn't include one. However, be aware that any Perl module in RPM format

must have been built for the same version of Perl that you are running, or it won't

work.
(http://download.webmin.com/download/下载网址  源文件Net_SSLeay.pm-1.23.tar.gz)
4.Install the Net::SSLeay module
To install the module, use the commands :
  tar xvzf Net_SSLeay.pm-x.yy.tar.gz
  cd Net_SSLeay.pm-x.yy
  perl Makefile.PL
  make install
If you have installed OpenSSL from the RPM, you may need to run perl Makefile.PL /usr

in order to find the OpenSSL library properly.

5.Test the SSL install
If the command perl -e 'use Net::SSLeay' doesn't output any error message, then the

SSL support that Webmin needs is properly installed.

6.If Webmin is not installed yet, install it
If you install SSL support first, when Webmin's setup.sh script is run it will ask you

if you want to enable SSL. Just enter y. The RPM version of Webmin will always

automaticlly use SSL mode if possible.

7.If Webmin is already installed, turn on SSL
In the Webmin Configuration module (under the Webmin category) an icon for SSL

Encryption should appear. Click on it, and change the SSL option from Disabled to

Enabled.

8.当启用后,就会以https来进行访问了.

Warning - if you enable SSL support in Webmin, your browser must also support SSL

(such as Netscape and IE). If not, you will not be able to access the Webmin server.

If there is a firewall or proxy between the machine you are running your browser on

and the Webmin server, check that it allows SSL requests to pass through as well.

[ 阅读全文 | 回复(0) | 引用通告 | 编辑

  Post  by  badboy 发表于 2006-10-6 16:18:00
发表评论:
数据载入中,请稍候......
数据载入中,请稍候......