S
S
sddvxd2019-03-07 17:24:33
Computer networks
sddvxd, 2019-03-07 17:24:33

How to implement an HTTPS server?

Good afternoon. Of the tools, only sockets and bare C, it turned out to implement an HTTP server, but what to do with HTTPS is not clear
Telegram API requires only HTTPS to work, how to process data, from which side to enter?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey, 2019-03-14
@sddvxd

Take the OpenSSL library and use it like a plugin. That is, raise the connection on a bare socket, without encryption, and then drive the data through the library, like a gasket. Encryption is enabled in an already running connection upon request. A good example is the implementation of OpenSSL support in the Synapse library , we use it in a commercial project, but it is in Delphi.

R
Roman Mirilaczvili, 2019-03-07
@2ord

Use as a reverse proxy HAProxy/nginx/lighttpd, configured to work with an SSL certificate.

V
Vladimir Kuts, 2019-03-07
@fox_12

stunnel use as an option

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question