Apache SNI: multiple SSL certificates on one IP address -
today i'm trying configure apache run 2 domains each own ssl certificate. have read supported sni long apache configured recent version of openssl. verified is:
[notice] apache/2.2.22 (ubuntu) php/5.3.10-1ubuntu3.7 suhosin-patch mod_ssl/2.2.22 openssl/1.0.1 configured -- resuming normal operations
i thought had set second domain , certificate, when try visit second domain in chrome following error:
you attempted reach example2.com, instead reached server identifying example1.com.
this post seems closest issue:
hosting multiple ssl certs on apache
but can tell server configured correctly (clearly not!)
i have following directives in conf file example2.com
servername example2.com sslengine on sslcertificatefile /etc/apache2/ssl/example2.com.crt sslcertificatekeyfile /etc/apache2/ssl/example2.com.key
it looks right me. why apache serving example1's cert when visit example2?
turns out domain 1 configured
<virtualhost *:443>
i use webmin, reveals detail when view directive directly.
changing * part of solution introduced other problems. think punt , ip-based ssl.
Comments
Post a Comment