SSL Certificate not installing correctly.

jim.thornton

Verified User
Joined
Jan 1, 2008
Messages
334
I was wondering if you could tell me why an SSL certificate that I installed for a user isn't working? For some reason it is trying to use the server's certificate instead of the one I installed for the domain.

Here is what I did:
- Activated the SSL for the user
- Set the symlink for private_html and public_html so they will share the same content
- Generated a CSR from within DA
- Submitted CSR to CA
- Copied the cert that was emailed to me and pasted it below the key in DA

Thinking that it might take some time to work, I left it over night. When I go to the site w-w-w-.-q-u-i-c-k-m-o-r-t-g-a-g-e-a-p-p-r-o-v-a-l-s-.-c-a the server is trying to use the certificate that I have installed for my webhosting site (e-x-t-r-a-6-.-c-o-m). The certificate is trying to use the one installed for the subdomain I have my cert installed on.

I think my host has fixed this one time in the past for me. But it has now happened again so I would like to learn how to fix it myself. Is there something that I can do so that all future SSL certs work without a problem??

Thanks for your help!
 
Each SSL site must be on a different ip address. Unless you have a multidomain ssl certificate you cannot put more then one ssl site on the same ip address.
 
I know that. I have assigned a dedicated IP address to the user that I'm mentioning.

In the DA IP Managment screen it shows the IP address is owned and the username beside it.
 
Then there is no reason it would pull a different ssl certificate unless it is setup with one somewhere else. I would check /etc/httpd/conf/extra/httpd-ssl.conf
 
There are no vhosts listed in the file. The only thing that I can see that doesn't look right to me is this:

Code:
##
## SSL Virtual Host Context
##

<VirtualHost _default_:443>

#   General setup for the virtual host
DocumentRoot "/var/www/html"
ServerName www.example.com:443
ServerAdmin [email protected]
ErrorLog /var/log/httpd/error_log
TransferLog /var/log/httpd/access_log

But to be honest, I have no idea what I'm looking at.
 
I just looked at: /usr/local/directadmin/data/users/username and in there I found httpd.conf.

In this config file it shows the setup for the ssl certificate and it is pointing to the main server cert not the one that I installed.

How do I get DA to configure this file correctly?
 
If it was on the owned ip address when you added the cert then it should of added the cert correctly.

You could try:

cd /usr/local/directadmin/custombuild
./build update
./build rewrite_confs
/sbin/service httpd restart
 
If you have customcode in any of the apache configs it will be overwritten. Other then that no it will just re-create all the apache configs.
 
Back
Top