Wildcard SSL, no default one (solved and how)

2 posts / 0 new
Last post
#1 Fri, 02/08/2013 - 13:43

Wildcard SSL, no default one (solved and how)


at creation, a new virtual host has a default certificate file generated with the according apache configuration for the 443 virtualhoast section. If enable SSL website is selected.

I'm using wildcard certificate. So I dont want any default certificate to be created and I want the newly created virtualhost to be https under the wildcard certificate for his IP address.

I could add a script for the after creation event to go and change the apache config to point to my wildcard and delete the default certs generated. But I would like a cleaner way manage by webmin/virtualmin.

Is it possible ?

Thank you

EDIT (SOLVED)************************************************************************

I tought I'll post my solution here I have 4 IP with one ssl wildcard for each

I rename my certificate and key files as this (where xx.xx.xx.xx is the ip address): xx.xx.xx.xx.domain.com

Now in the SSL settings of the virtualmin configuration I set

Template for private key path : /etc/httpd/conf/ssl.key/${IP}.domain.key Template for certificate path : /etc/httpd/conf/ssl.crt/${IP}.domain.com.crt

And now my configuration points to the right certificate !! :-)

Fri, 02/08/2013 - 22:20
tpnsolutions's picture


Spiffy idea :-)

Best Regards,
Peter Knowles
TPN Solutions

E: pknowles@tpnsolutions.com
P: 604-782-9342
W: http://www.tpnsolutions.com
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist