For those using Webmin and Firefox.



Firefox does not support certificates with private keys smaller than 1024 bits.

Click image for larger version  Name:	image_68418.jpg Views:	1 Size:	140.6 KB ID:	1212341

You can replace your webmin certificate with a new one by running this command:

Code:
1 - file=/etc/webmin/miniserv.pem
2 - openssl req -x509 -newkey rsa:2048 -keyout $file  -out $file \ -days 3650 -nodes -subj \ "/C=US/ST=Denial/L=Springfield/O=Di /CN=www.example.com"
3 - openssl x509 -x509toreq -in $file -signkey $file >> $file
4 - /etc/init.d/webmin restart

NOTE: change "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com" to whatever.

This command will create a 'pem' file with both the private key and self-signed certificate in the same file. -nodes will let you create the file without a passphrase. The -subj option saves you having to manually enter certificate details.

Or you can do it by

1 - setting ssl=0 in /etc/webmin/miniserv.conf
2 - restarting webmin with "/etc/init.d/webmin restart"
3 - then using the web interface to make the certificate change at
4 - Webmin -> Webmin Configuration -> SSL Encryption -> Self Signed Certificate

Click image for larger versionName:	SSL-1.jpgViews:	1Size:	43.9 KBID:	1247671


On the following page just put your information on the page and hit the create now button on the bottom.

Click image for larger version  Name:	image_71573.jpg Views:	1 Size:	36.2 KB ID:	1247672

Note here have my default settings in Firefox to forget history when exiting Firefox.

This option ghosted the save exceptions option for certs.

To make it un-ghosted temporarily set Firefox to remember history.

Confirm and save the exception.

Then change your option to save history and turn it off.

Restart Firefox and you should be good to go. IE: it will go to the Webmin login prompt.