Enable TLS host and certificate verification by setting options CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST. Similar to -k/--insecure curl option.
-k/--insecure