Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Compatible with Nginx(Openresty) ? #151

Closed
xliuqq opened this issue Dec 19, 2018 · 5 comments
Closed

Not Compatible with Nginx(Openresty) ? #151

xliuqq opened this issue Dec 19, 2018 · 5 comments

Comments

@xliuqq
Copy link

xliuqq commented Dec 19, 2018

I use lua-openssl-scm-5, openresty 1.13.6.2, openssl 1.0.2k。

when nginx reload,it failed and error info is :

2018/12/18 21:33:53 [notice] 28600#0: using the “epoll” event method
2018/12/18 21:33:53 [notice] 28600#0: start worker processes
2018/12/18 21:33:53 [notice] 28600#0: start worker process 28968
2018/12/18 21:33:53 [notice] 28600#0: start worker process 28969
2018/12/18 21:33:53 [notice] 28600#0: start worker process 28970
2018/12/18 21:33:53 [notice] 28600#0: start worker process 28971
2018/12/18 21:33:53 [notice] 28600#0: start worker process 28972
2018/12/18 21:33:53 [notice] 28600#0: start worker process 28973
2018/12/18 21:33:53 [emerg] 28968#0: SSL_CTX_new() failed (SSL: error:140A90F1:lib(20):func(169):reason(241))
2018/12/18 21:33:53 [emerg] 28969#0: SSL_CTX_new() failed (SSL: error:140A90F1:lib(20):func(169):reason(241))
2018/12/18 21:33:53 [emerg] 28970#0: SSL_CTX_new() failed (SSL: error:140A90F1:lib(20):func(169):reason(241))
2018/12/18 21:33:53 [emerg] 28971#0: SSL_CTX_new() failed (SSL: error:140A90F1:lib(20):func(169):reason(241))
2018/12/18 21:33:53 [emerg] 28972#0: SSL_CTX_new() failed (SSL: error:140A90F1:lib(20):func(169):reason(241))
2018/12/18 21:33:53 [emerg] 28973#0: SSL_CTX_new() failed (SSL: error:140A90F1:lib(20):func(169):reason(241))
2018/12/18 21:33:53 [notice] 28606#0: gracefully shutting down

Here is the simplest customized nginx.conf to reproduce above problem.

init_by_lua_block {
   require("luarocks.loader")
    local cms = require(“openssl_scm_5-openssl.so”).cms
} 

init_worker_by_lua_block {
 -- empty content
}

However, If I remove the 'init_worker_by_lua_block ', Kong or openresty can reload success.

Any advise or solution?

Thanks!

@xliuqq xliuqq changed the title Not Compatible with Kong? Not Compatible with Nginx(Openresty) ? Dec 20, 2018
@zhaozg zhaozg added the compat label Aug 26, 2019
@InfoHunter
Copy link

This project is very interesting. Actually if lua-openssl could be compatible with NGINX (or other variants like tengine: https://github.com/alibaba/tengine), it will be very cool since NGINX Lua module's original SSL functionality has not so many OpenSSL APIs supported yet.

@zhaozg
Copy link
Owner

zhaozg commented Oct 28, 2019

Worth doing it, can only invest in my free time. I have not even started to study NGNIX, maybe this can be a begin.

@InfoHunter
Copy link

Worth doing it, can only invest in my free time. I have not even started to study NGNIX, maybe this can be a begin.

Great. Given that I am also a member of the Tengine project, I think I can help on this if I have adequate spare time.

@zhaozg
Copy link
Owner

zhaozg commented Oct 29, 2019

duplicate with #196

@zhaozg zhaozg closed this as completed Oct 29, 2019
@zhaozg
Copy link
Owner

zhaozg commented Oct 29, 2019

@xliuqq I have do some test about this, it works well with 0.7.7-0.
Please notice that keep lua-openssl and openresty/nginx with same version openssl library or source code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants