Esp8266 https post requests fail

Hi,

I want to execute some get and post requests from esp8266. But those requests will not be only on my home network. So i want to have some protection using https for that. I’m trying to do that using
HTTPClient c;
if(c.begin(my_ip, port, “/temperature”, true, cert_fingerprint)) {

But i’m getting errors from post method. Post return code is -1(HTTPC_ERROR_CONNECTION_REFUSED). That means that i don’t have connection to the server. When i set true to false, in begin method, and reconfigure my server to use http then everything is working fine. Can you help me? Do you know how to enable HTTPClient debug logs?