How to write data to InfluxDB with ESP8266 over Internet & HTTPS

I am struggling to find a solution to sending sensor data from a NodeMCU securely. Any suggestions would be great.

Would curl work, if so i cannot figure out the format for the equivalent to my unix box which runs:

curl -k -i -XPOST ‘https://10.10.10.12:8086/write?db=server_stats’ -u UserID:Password --data-binary ‘cpu_load,host=pinky value=1’

This connects over SSL and ignores my self signed cert.

Thanks for any help you can provide.