Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4731

Connect to SSL server using connect_ssl

$
0
0

I am using haproxy as a authorization layer, using a lua script. Since the lua code is being run in haproxy, I can’t use the luasocket and luasec libraries. So I am trying to use the connect_ssl function from haproxy to connect to my internal SSL server:

addr = “x.x.x.x”
port = 443
req = “GET “https://myserver/…” -H “accept: /””
local socket = core.tcp()
if socket:connect_ssl(addr, port) then
if socket:send(req) then

I could not find any documentation on how to pass the user certificate and key using the connect_ssl function. Has anyone used the connect_ssl with a certificate and key?
Thanks for the help.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4731

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>