I'm trying to configure 2 domains (A and B) in the same server with different certificates. The domain A works fine, it has it's own certificates and rules to redirect to it. If I try to access to domain B it displays the following message:
This server could not prove that it is subdomainB.DomainB.com.mx; its security certificate is from subdomainA.domainA.org. This may be caused by a misconfiguration or an attacker intercepting your connection.
Now if I add domain B it does exactly the same but in reverse.
This server could not prove that it is subdomainA.DomainA.com.mx; its security certificate is from subdomainB.domainB.org. This may be caused by a misconfiguration or an attacker intercepting your connection.
Also I lost the redirects to SubdomainA.domainA.org and it access to php page version, not the site itself.
Hope someone can help me. my config:
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName subdomainB.domainB.com.mx
DocumentRoot /var/www/html/
SSLEngine on
SSLCertificateFile /etc/apache2/sslB/certificate.crt
SSLCertificateKeyFile /etc/apache2/sslB/private.key
SSLCertificateChainFile /etc/apache2/sslB/intermediate.crt
SSLProtocol all -SSLv2 -SSLv3 -TLSv1
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName subdomainA.domainA.com.mx
DocumentRoot /var/www/html/
SSLEngine on
SSLCertificateFile /etc/apache2/sslA/certificate.crt
SSLCertificateKeyFile /etc/apache2/sslA/private.key
SSLCertificateChainFile /etc/apache2/sslA/intermediate.crt
SSLProtocol all -SSLv2 -SSLv3 -TLSv1
</VirtualHost>