This is my code:
Code: Select all
httpd_ssl_config_t configSSL= HTTPD_SSL_CONFIG_DEFAULT();
configSSL.httpd.max_uri_handlers= 64;
configSSL.httpd.max_open_sockets= 2;
extern const unsigned char sslcacert_pem_start[] asm("_binary_sslcacert_pem_start");
extern const unsigned char sslcacert_pem_end[] asm("_binary_sslcacert_pem_end");
configSSL.cacert_pem= sslcacert_pem_start;
configSSL.cacert_len= sslcacert_pem_end- sslcacert_pem_start;
extern const unsigned char sslrsaprivate_pem_start[] asm("_binary_sslrsaprivate_pem_start");
extern const unsigned char sslrsaprivate_pem_end[] asm("_binary_sslrsaprivate_pem_end");
configSSL.prvtkey_pem= sslrsaprivate_pem_start;
configSSL.prvtkey_len= sslrsaprivate_pem_end- sslrsaprivate_pem_start;
printf("WebServer: starting\n");
if (httpd_ssl_start(&WebsHandle, &configSSL)!= ESP_OK) {
printf("SSL webServer: failed to start!\n");
return ESP_FAIL;
} else {...