Rushland Logo

Webmin with SSL

Frankly, I'm a huge fan of Webmin - it's a fantastic piece of software and a huge help to any admin, including a sole-server admin like me. But setting up SSL under Fedora Core 1 is a right pain in the ass. Following the instructions on the site didn't help me so I tried a few things until I got it working. I assume you already have a working version of Webmin.

The first thing we need to do is make sure you actually need to follow these instructions. Login to your server as root and type:

perl -e 'use Net::SSLeay'

You should get a big error message saying that it can't find the module. If you don't get any message, you already have all the needed modules and this tutorial is no use to you.

Now, we need to get round a problem with Perl using unicode. Type:

export LANG=en_US

Next we have to login to CPAN and grab the required Net::SSLeay module. This is quite simple to do:

perl -MCPAN -e shell
install Net::SSLeay

Now, under my server, I got two errors when doing this. First was that the TCP test ran out of memory and that one of the test sites was down. If you get these errors too, you'll probably agree that they don't sound too major and you'll want to force install. While still in CPAN, type:

force install Net::SSLeay
quit

You should now have forcibly installed Net::SSLeay, you can check it's there:

perl -e 'use Net::SSLeay'

This time you should get no output. Now all you have to do is go into Webmin configuration, and click SSL Encryption. Then click enable.

All going well, you should get a notice about the certificate not being trusted (you're issueing it yourself) but you should be greeted by a padlock icon in Internet Explorer. Congratulations, you can now send your passwords in confidence.