Apache enable SNI

Thu 01 January 2015
By alex

Problem:

The proper versions of apache and OpenSSL are installed to support SNI but when multiple SSL certificates are configured in apache you get the following errors in the error.log and apache fails to start.

[ssl:emerg] [pid 48715] AH02242: Init: Multiple RSA server certificates not allowed
[ssl:emerg] [pid 48715] AH02312: Fatal error initialising mod_ssl, exiting.

WTF??

Solution:

Add the following to the config, preferably the SSL config e.g. /etc/httpd/conf.d/ssl.conf, /etc/apache2/mods-enabled/ssl.conf

NameVirtualHost *:443


Wanna know more?
HTTPD Wiki SNI
Serving Secure Sites With SNI On Apache