Welcome! Log In Create A New Profile

Advanced

Openresty + socket + ssl question

Ilja Razinkov
March 05, 2012 10:30AM
Hello!

This question is for agentzh, one of OpenResty authors.

i need some help or proper direction to look futher, please help...
I`m using openresty 1.0.11.19 (nginx+lua, great mix btw) and wish to
make calls to ssl-enabled third-party server (Apple Push Notifications
server, specifically).
For this i hoped to use recently added to openresty "ngx.socket.*"
functionality with LuaSec module to enable ssl-protected
communication. But seems it is not possible because LuaSec requires
setfd/getfd methods (raw access to socket file descriptors) just as
LuaSocket. Seems there is no other lua library that can do ssl
exchange only with simple "send/receive" over already established
connection anyway :( am i right?

before that i tryed to use nginx build-in "upstream + proxy_pass
https://" functionality, but in that case there is no way to specify
custom key+cert for upstream call and there is no way to specify
proper payload (apple APN servers are requiring direct message
exchange over sll-protected connection)

Thanks in advance for any help
sincerely, Ilja Razinkov

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Openresty + socket + ssl question

Ilja Razinkov March 05, 2012 10:30AM

Re: Openresty + socket + ssl question

agentzh March 05, 2012 11:34PM

Re: Openresty + socket + ssl question

Ilja Razinkov March 06, 2012 07:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 67
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready