Re: SSL_connect fails on systemd socket

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 29, 2020 at 3:14 PM Tiwari, Hari Sahaya <hari-sahaya.tiwari@xxxxxxx> wrote:

Thanks for the response.

 

Yes the server program need not bind and listen because systemd socket will do that.

 

On “Accept=True” parameter, here the requirement is that systemd should accept the connection and handover it to server.

 

My query was on post the connection accept by systemd.

Once the regular connection is accepted, client does SSL_connect over same fd to establish SSL connection.

Will this SSL connect request also be handled by systemd ?


No. Systemd will never read nor write the socket – your service needs to handle SSL handshake the same way as it normally would (mostly).

(I haven't really worked with OpenSSL, but I'm guessing you would use `SSL_set_fd()` in this case?)

--
Mantas Mikulėnas
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux