<div dir="ltr"><pre>Hello,<br><br>I installed mod_gnutls for SNI. But it doesn't work. It always returns the first certificate defined in the configure file.<br><br>I use Apache 2.0.52, with mod_gnutls 0.4.3 compiled against gnutls 2.4.1 on redhat el4. And here is my conf:<br>
<br>LoadModule gnutls_module modules/mod_gnutls.so<br><br>GnuTLSCache dbm "/var/cache/mod_gnutls"<br>GnuTLSCacheTimeout 500<br><br>Listen xxx.xxx.xxx.xxx:443<br><br>NameVirtualHost xxx.xxx.xxx.xxx:443<br>
<br><VirtualHost xxx.xxx.xxx.xxx:443><br> ServerName <a href="http://site1.example.org:443">site1.example.org:443</a><br> DocumentRoot /var/www/v1/Web<br><br> ErrorLog logs/tls_error_log<br> TransferLog logs/tls_access_log<br>
LogLevel warn<br><br> GnuTLSEnable On<br> GnuTLSPriorities NORMAL<br> GnuTLSKeyFile /path/to/site1.example.org.key<br> GnuTLSCertificateFile /path/to/site1.example.org.crt<br></VirtualHost><br><br><VirtualHost xxx.xxx.xxx.xxx:443><br>
ServerName <a href="http://site2.example.org:443">site2.example.org:443</a><br> DocumentRoot /var/www/v2/Web<br><br> ErrorLog logs/tls_error_log<br> TransferLog logs/tls_access_log<br> LogLevel warn<br><br>
GnuTLSEnable On<br> GnuTLSPriorities NORMAL<br> GnuTLSKeyFile /path/to/site2.example.org.key<br> GnuTLSCertificateFile /path/to/site2.example.org.crt<br></VirtualHost><br><br>Any idea?<br><br>Thanks,<br>
<br>Min<br></pre></div>