Добрый день.<br><br>Чего-то напрочь не удается собрать с поддержкой ssl нормально.<br><br>OS - CentOS 5.2 (вроде как - или 5.1)<br><br>При сборке с базовыми либами ругается <br>        objs/ngx_modules.o \<br>        -lcrypt -lpcre -lssl -lcrypto -ldl -lz<br>
objs/src/http/ngx_http_request.o: In function `ngx_http_ssl_servername&#39;:<br>ngx_http_request.c:(.text+0xc85): undefined reference to `SSL_get_servername&#39;<br>ngx_http_request.c:(.text+0xd76): undefined reference to `SSL_set_SSL_CTX&#39;<br>
collect2: выполнение ld завершилось с кодом возврата 1<br>make[1]: *** [objs/nginx] Ошибка 1<br>make[1]: Leaving directory `/root/nginx-ssl/nginx-0.8.29&#39;<br>make: *** [build] Ошибка 2<br><br>При сборке с внешним ssl - <br>
./configure --with-openssl=/root/nginx-ssl/openssl-0.9.8l --with-http_ssl_module<br>
<br># make -j 5<br>make -f objs/Makefile<br>make[1]: Entering directory `/root/nginx-ssl/nginx-0.8.29&#39;<br>cd /root/nginx-ssl/openssl-0.9.8l \<br>        &amp;&amp; make clean \<br>        &amp;&amp; ./config --prefix=/root/nginx-ssl/openssl-0.9.8l/.openssl no-shared  no-threads \<br>
        &amp;&amp; make \<br>        &amp;&amp; make install<br>make[2]: Entering directory `/root/nginx-ssl/openssl-0.9.8l&#39;<br>rm -f *.map *.so *.so.* *.dll engines/*.so engines/*.dll *.a engines/*.a */lib */*/lib<br>
rm: невозможно удалить `openssl/lib&#39;: Это каталог<br>make[2]: *** [libclean] Ошибка 1<br>make[2]: Leaving directory `/root/nginx-ssl/openssl-0.9.8l&#39;<br>make[1]: *** [/root/nginx-ssl/openssl-0.9.8l/.openssl/include/openssl/ssl.h] Ошибка 2<br>
make[1]: Leaving directory `/root/nginx-ssl/nginx-0.8.29&#39;<br>make: *** [build] Ошибка 2<br><br><br>Это был 0.8.29.<br>=====================<br><br>0.7.64 собирается с собственным ssl (./configure --with-openssl=/root/nginx-ssl/openssl-0.9.8l --with-http_ssl_module)<br>
# /usr/local/nginx/sbin/nginx -V<br>nginx version: nginx/0.7.64<br>TLS SNI support enabled<br>configure arguments: --with-openssl=/root/nginx-ssl/openssl-0.9.8l --with-http_ssl_module<br><br>но не может запуститься<br># /usr/local/nginx/sbin/nginx -t -c conf/nginx.conf-ssl<br>
[emerg]: SSL_CTX_use_certificate_chain_file(&quot;/usr/local/nginx/conf/srv.pem&quot;) failed (SSL: error:0906D066:PEM routines:PEM_read_bio:bad end line error:140DC009:SSL routines:SSL_CTX_use_certificate_chain_file:PEM lib)<br>
configuration file /usr/local/nginx/conf/nginx.conf-ssl test failed<br><br><br>Жутко умаялся, посоветуйте плиз что делать.<br><br>Да, ssl самый простенький от globessl.<br>srv.pem собирался из 2 файлов - crt и ca-bundle<br>