- ESP8266 (CLient/Server)
- ESP32 (Client only)
cert.cmd Script to recreate all the certificates in the catalog. Requires OpenSSL installed.
Good issue explanation to read
bool connect(const char* host, uint16_t port, const char* client_cert = nullptr, const char* client_private_key = nullptr, const char* ca_cert = nullptr);
bool connectWithKnownKey(IPAddress ip, uint16_t port, const char* client_cert = nullptr, const char* client_private_key = nullptr, const char* key = nullptr);const char* hostHost name to connect touint16_t portHost portconst char* client_certClient's certificateconst char* client_private_keyClient's private keyconst char* ca_certCertificate of CA. Can be omitted (or set NULL) to escape certificate chain verifying.IPAddress ipHost IP address to connect toconst char* keyServer's public key
All certificates must be in PEM format and can be stored in PROGMEM.
void server(uint16_t port, const char* server_cert = nullptr, const char* server_private_key = nullptr, const char* ca_cert = nullptr);uint16_t portPort to bind toconst char* server_certServer certificate in PEM format.const char* server_private_keyServer private key in PEM format.const char* ca_certCertificate of CA.
All certificates must be in PEM format and can be stored in PROGMEM.
(c)2020 Alexander Emelianov
The code in this repo is licensed under the BSD New License. See LICENSE.txt for more info.