generate a new self-signed SSL certificate for Virtualmin/Webmin

Virtualmin/Webmin ships with a self-signed SSL certificate. In case you want to generate a new one, here’s how:

openssl genrsa -des3 -out webmin.key 4096
openssl rsa -in webmin.key -out webmin.pem
openssl req -new -key webmin.key -out webmin.csr
openssl x509 -req -days 1095 -in webmin.csr -signkey webmin.key -out webmin.crt
cat webmin.crt >> webmin.pem
cd /etc/webmin/
cp miniserv.pem miniserv.pem.bak
cp /root/ssl/webmin.pem miniserv.pem
service webmin restart


This entry was posted in Debian, Virtualmin. Bookmark the permalink.