contributed by < OscarShiang
>
To write a TLS server using OpenSSL library, we must install the packages by entering the following commands:
Before starting our server, we need key and cerification to configure the SSL sesssion. Using the following commands to generate key and certification:
SSL_accept()
SSL_write()
and receive data using SSL_read()
the implementation is much like this
Because we are using OpenSSL library to perform TLS handshake, we must link the ssl and crypto libraries when compiling the server.
linux2020