Certificate and private key that can be passed to the HTTPSServer. More...
#include <SSLCert.hpp>
Certificate and private key that can be passed to the HTTPSServer.
Converting PEM to DER Files
Certificate:
openssl x509 -inform PEM -outform DER -in myCert.crt -out cert.der
Private Key:
openssl rsa -inform PEM -outform DER -in myCert.key -out key.der
Converting DER File to C Header
echo "#ifndef KEY_H_" > ./key.h
echo "#define KEY_H_" >> ./key.h
xxd -i key.der >> ./key.h
echo "#endif" >> ./key.h
Constructor & Destructor Documentation ◆ SSLCert() httpsserver::SSLCert::SSLCert ( unsigned char * certData =NULL
, uint16_t certLength = 0
, unsigned char * pkData = NULL
, uint16_t pkLength = 0
)
Creates a new SSLCert.
The certificate and key data may be NULL (default values) if the certificate is meant to be passed to createSelfSignedCert().
Otherwise, the data must reside in a memory location that is not deleted until the server using the certificate is stopped.
Sets the certificate data in DER format.
The data has to reside in a place in memory that is not deleted as long as the server is running.
See SSLCert for some information on how to generate DER data.
Sets the private key in DER format.
The data has to reside in a place in memory that is not deleted as long as the server is running.
See SSLCert() for some information on how to generate DER data.
The documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4