BUGs with SSL certificate for webmin

It looks like the problem is in the file /usr/libexec/webmin/virtual-server/copy_cert.cgi starting at line 13.



if ($in{‘usermin’}) {
&copy_usermin_ssl_service($d);
}
else {
&copy_usermin_ssl_service($d);
}



The program executes the same “&copy_usermin_ssl_service($d);” function whether “usermin” is passed to it or “webmin” is passed to it. Please fix this.

I believe it should read:



if ($in{‘usermin’}) {
&copy_usermin_ssl_service($d);
}
else {
&copy_webmin_ssl_service($d);
}



I made the change on my server and it looks like to worked.

Bug has been reported here: Copy to Webmin button is broken

Their work-around is to SSH in as root and run :



virtualmin install-service-cert --domain yourdomain.com --service webmin


The issue status is “Fixed” so it should hopefully be in the next release.

it copies itself from usermin to webmin, certs are there but button never dissapears

if it works can you share modified file please

anyone tried that ?

Thank you, @zamek.

I tried the ‘virtualmin install-service-cert’ option, and it did work in the sense that my Webmin on port 10000 now works properly with SSL.

But it didn’t make the ‘Add to Webmin’ button go away. Even after restarting Webmin and Apache services.