BlueNoteWeb
Verified User
I'm throughly confused on this one. The client in question has two sites which share some common files between them. To make things easier, I set up both sites under one account in DA (so all files have the same ownership) and symlinked the directories that need to be shared.
Now the client wants to add SSL on the second domain. DA can't really handle that, because it requires to IPs on one user account. I found and followed some instructions about making that happen, here:
http://www.directadmin.com/forum/showpost.php?p=90667&postcount=19
The first domain, which has been using SSL for a while now, is working fine. The certificate is installed and working properly. On the second domain, I get the snakeoil.dom certificate.
Here are the relevant sections from /usr/local/directadmin/data/users/<user>/httpd.conf, cut for brevity and censored for privacy:
I have checked the certificates from the command line using openssl, they are returning the values I expect. As you see, the .cacert file is installed on both domains. Both domains are set up in DA to use SSL on their own certificate.
When I try to load the problem domain in a browser I still get the snakeoil certificate. I see this error in the file /var/log/httpd/ssl_engine_log:
That client IP is definitely my local IP. From that log message, it looks like the problem domain is attempting to use the server shared certificate - since there isn't a shared certificate installed it's coming up with the snakeoil cert.
What's the next thing to check?
Now the client wants to add SSL on the second domain. DA can't really handle that, because it requires to IPs on one user account. I found and followed some instructions about making that happen, here:
http://www.directadmin.com/forum/showpost.php?p=90667&postcount=19
The first domain, which has been using SSL for a while now, is working fine. The certificate is installed and working properly. On the second domain, I get the snakeoil.dom certificate.
Here are the relevant sections from /usr/local/directadmin/data/users/<user>/httpd.conf, cut for brevity and censored for privacy:
Code:
# Auto generated apache config file by DirectAdmin version 1.28.0
# Modifying this file is not recommended as any changes you make will be
# overwritten when the user makes any changes to his/her website
# Frontpage requires these parameters in every httpd.conf file or else
# it won't work.
Port 80
ServerRoot /etc/httpd
.....cut for brevity......
<VirtualHost x.x.x.221:443>
SSLEngine on
SSLCertificateFile /usr/local/directadmin/data/users/<user>/domains/<domain>.com.cert
SSLCertificateKeyFile /usr/local/directadmin/data/users/<user>/domains/<domain>.com.key
SSLCACertificateFile /usr/local/directadmin/data/users/<user>/domains/<domain>.com.cacert
.....cut for brevity......
</VirtualHost>
.....cut for brevity......
<VirtualHost x.x.x.220:443>
SSLEngine on
SSLCertificateFile /usr/local/directadmin/data/users/<user>/domains/<otherdomain>.com.cert
SSLCertificateKeyFile /usr/local/directadmin/data/users/<user>/domains/<otherdomain>.com.key
SSLCACertificateFile /usr/local/directadmin/data/users/<user>/domains/<otherdomain>.com.cacert
.....cut for brevity......
</VirtualHost>
I have checked the certificates from the command line using openssl, they are returning the values I expect. As you see, the .cacert file is installed on both domains. Both domains are set up in DA to use SSL on their own certificate.
When I try to load the problem domain in a browser I still get the snakeoil certificate. I see this error in the file /var/log/httpd/ssl_engine_log:
Code:
[14/Feb/2007 05:44:13 18724] [error] SSL handshake failed (server shared.domain:443, client 71.164.246.232) (OpenSSL library error follows)
[14/Feb/2007 05:44:13 18724] [error] OpenSSL: error:14094415:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate expired
That client IP is definitely my local IP. From that log message, it looks like the problem domain is attempting to use the server shared certificate - since there isn't a shared certificate installed it's coming up with the snakeoil cert.
What's the next thing to check?