* certData = NULL,
77uint16_t certLength = 0,
78 unsigned char* pkData = NULL,
114 void setPK(
unsigned char* _pkData, uint16_t length);
127 void setCert(
unsigned char* _certData, uint16_t length);
135uint16_t _certLength;
136 unsigned char* _certData;
138 unsigned char* _pkData;
142 #ifndef HTTPS_DISABLE_SELFSIGNING 178 #endif // !HTTPS_DISABLE_SELFSIGNINGuint16_t getPKLength()
Returns the length of the private key in byte.
Definition: SSLCert.cpp:22
void clear()
Clears the key buffers and deletes them.
Definition: SSLCert.cpp:44
RSA key with 2048 bit.
Definition: SSLCert.hpp:153
RSA key with 1024 bit.
Definition: SSLCert.hpp:151
unsigned char * getCertData()
Returns the certificate data.
Definition: SSLCert.cpp:26
Certificate and private key that can be passed to the HTTPSServer.
Definition: SSLCert.hpp:59
int createSelfSignedCert(SSLCert &certCtx, SSLKeySize keySize, std::string dn, std::string validFrom, std::string validUntil)
Creates a self-signed certificate on the ESP32.
Definition: SSLCert.cpp:287
SSLCert(unsigned char *certData=NULL, uint16_t certLength=0, unsigned char *pkData=NULL, uint16_t pkLength=0)
Creates a new SSLCert.
Definition: SSLCert.cpp:5
void setCert(unsigned char *_certData, uint16_t length)
Sets the certificate data in DER format.
Definition: SSLCert.cpp:39
unsigned char * getPKData()
Returns the private key data.
Definition: SSLCert.cpp:30
RSA key with 4096 bit.
Definition: SSLCert.hpp:155
uint16_t getCertLength()
Returns the length of the certificate in byte.
Definition: SSLCert.cpp:18
Definition: ConnectionContext.cpp:3
void setPK(unsigned char *_pkData, uint16_t length)
Sets the private key in DER format.
Definition: SSLCert.cpp:34
SSLKeySize
Defines the key size for key generation.
Definition: SSLCert.hpp:149
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