Header Only Library
TCP Server Openssl
How to use TCP server class with openssl
References
#include "IP/InternetProtocol.hpp"
Syntax
Example code
Functions
This class has the same functions from TCPServer
, except for the ones shown below
Get Ssl Context
- Set Ssl extra configuration.
Get Ssl Sockets
- Get all ssl sockets connected
Load Private Key Data
- Load the private key from a string.
- If any error occurs, it will trigger the
OnError
event.
Load Private Key File
- Load the private key from file.
- If any error occurs, it will trigger the
OnError
event. - Relative path.
Load Certificate Data
- Load the certificate from a string.
- If any error occurs, it will trigger the
OnError
event.
Load Certificate File
- Load the certificate from file.
- If any error occurs, it will trigger the
OnError
event. - Relative path.
Load Certificate Chain Data
- Load the certificate chain from a string.
- If any error occurs, it will trigger the
OnError
event.
Load Certificate Chain File
- Load the certificate chain from file.
- If any error occurs, it will trigger the
OnError
event. - Relative path.
Load Verify File
- Load the certificate from file and verify if it is valid.
- If any error occurs, it will trigger the
OnError
event. - Relative path.