nginx & SSLCertificateChainFile

Igor Sysoev is at rambler-co.ru
Sun Jul 10 10:33:50 MSD 2005


On Sun, 10 Jul 2005, L0rda wrote:

> L0rda wrote:
>
>> Здравствуйте Игорь,
>> 
>> очень интересует, будет ли аналог директивы SSLCertificateChainFile 
>> mod_ssl.
>> Нужно устанавливать intermediate certificate для работы с подписанными 
>> сертефикатами, иначе некоторые браузеры ругаются.
>> 
> update: в dovecot я просто прописал два сертификата в одном файле, с nginx 
> трюк не прокатил.

С прилагаемым патчем должно работать в dovecot.


Игорь Сысоев
http://sysoev.ru
-------------- next part --------------
--- src/http/modules/ngx_http_ssl_module.c	Sat Apr 30 13:50:40 2005
+++ src/http/modules/ngx_http_ssl_module.c	Sun Jul 10 10:31:26 2005
@@ -221,11 +221,11 @@
         }
     }
 
-    if (SSL_CTX_use_certificate_file(conf->ssl_ctx,
-                                     (char *) conf->certificate.data,
-                                     SSL_FILETYPE_PEM) == 0) {
+    if (SSL_CTX_use_certificate_chain_file(conf->ssl_ctx,
+                                         (char *) conf->certificate.data) == 0)
+    {
         ngx_ssl_error(NGX_LOG_EMERG, cf->log, 0,
-                      "SSL_CTX_use_certificate_file(\"%s\") failed",
+                      "SSL_CTX_use_certificate_chain_file(\"%s\") failed",
                       conf->certificate.data);
         return NGX_CONF_ERROR;
     }


More information about the nginx-ru mailing list