I'm setting up a server for local access. I created a CA and have SSL certs signed and working on other domains.
The problem is I'm trying to create a cert for a domain name that is the same as the host name?
I copied the steps to make the cert for the other domain, but when I create and sign this cert, and modify httpd.conf with the path to the cert and key, the localhost.localdomain cert seems to be taking precedence. In other words, when I view the cert in firefox, it is the localhost.localdomain cert instead of the one I just created.
I looked at ssl.conf, and tried to change the default path to the one issued, and I tried to comment out the VirtualHost, but neither worked.
How can I override the servers default certificate with the one I issued and signed?
EDIT: I went back into ssl.conf and commented out everything between and including the
<VirtualHost> tags. I restarted httpd and it is working as expected.
However, I'm not sure this is the best way to do this. Advice appreciated.