Welcome! Log In Create A New Profile

Advanced

Issue while running nginx + SSL on windows target machine

Posted by amruta 
Issue while running nginx + SSL on windows target machine
February 22, 2013 07:07AM
Hello,

I am facing problem for installtion of nginx with SSL on windows.

Nginx is build using following command on cygwin.
./configure --prefix=../nginx-build --with-ld-opt="-L /usr/local/lib" --with-cc-opt="-I /usr/local/include" \
--with-pcre=../nginx-modules/pcre-8.31 --with-http_ssl_module \
--with-openssl=../nginx-modules/openssl-1.0.1c \
--add-module=../nginx-modules/nginx-push-stream-module-master \
--add-module=../nginx-modules/ngx_http_set_hash-master \
--add-module=../nginx-modules/ngx_devel_kit-master \
--add-module=../nginx-modules/set-misc-nginx-module-master \
--add-module=../nginx-modules/nginx-upload-module-2.2

Packge is created as
cp nginx-build/* pkg

On target machine (cygwin is not installed), following command is used to run nginx
nginx.exe -p ..

Here, I got error "Failed to open openssl.cnf file"

Is there any way to provide openssl installation path at the time of running nginx?
Please any help would be helpful.

Thanks.
Re: Issue while running nginx + SSL on windows target machine
February 22, 2013 04:04PM
Use the windows build in the download area which has ssl support build in.
Re: Issue while running nginx + SSL on windows target machine
February 25, 2013 12:59AM
I require support of other nginx modules along with SSL (e.g. upload, push straem module). So I need to build nginx with these modules.

So please let me know how to solve these issue?

Thanks.
Re: Issue while running nginx + SSL on windows target machine
February 25, 2013 05:41AM
Detailed errror message:

Auto configuration failed
2675740:error:02001087:system library:fopen:reason(135):bss_file.c:169:fopen('/c
ygdrive/d/LSI-2/SVN/kirk-code/thirdparty_complete_source/nginx-1.2.4/../nginx-mo
dules/openssl-1.0.1c/.openssl/ssl/openssl.cnf','rb')
2675740:error:2006D002:BIO routines:BIO_new_file:system lib:bss_file.c:174:
2675740:error:0E078002:configuration file routines:DEF_LOAD:system lib:conf_def.
c:199:
Re: Issue while running nginx + SSL on windows target machine
February 25, 2013 08:10AM
After setting OPENSSL_CONF variable (with any value) in command prompt, the issue is resolved. This is very weird. Because in the test system openssl.cnf file is not present at all.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 126
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready