I would like to host multiple domains at same VPS and need to configure SSL certificate for those. The server is Ubuntu 12.04. All domains have their own certificates.
I need help regarding multiple domain configuration in default-ssl.
I would like to host multiple domains at same VPS and need to configure SSL certificate for those. The server is Ubuntu 12.04. All domains have their own certificates.
I need help regarding multiple domain configuration in default-ssl.
You should Create multiple virtual-hosts in Apache and assign SSL Certificate seperatly for each one of them.
Example:
NameVirtualHost *:443
<VirtualHost *:443>
ServerName some.domain.com
# SSL options, other options, and stuff defined here.
</VirtualHost>
<VirtualHost *:443>
ServerName some.domain2.com
# SSL options, other options, and stuff defined here.
</VirtualHost>
For SSL Options refer to: http://httpd.apache.org/docs/current/ssl/ssl_howto.html
Make sure to add NameVirtualHost to your configuration.
openssl s_client I can see that your server does pay attention to SNI, but it does not pick different certificates based on it. This link says it is possible on Ubuntu 12.04: https://www.clickssl.com/blog/abolish-multiple-ips-trouble-in-ssl-installation-with-sni
– kasperd
Nov 09 '14 at 10:10