How can i send an api request skipping tls verification? using curl i get the error cURL error 60: SSL certificate problem: unable to get local issuer certificate
using an https url, using the /api/docs to test it gives out the error Response Status: NetworkError when attempting to fetch resource. (CORS or Network Issue)
when using local IP. enabling local auth required on api config does nothing too.
$ man curl
[..]
-k, --insecure
(TLS SFTP SCP) By default, every secure connection
curl makes is verified to be secure before the trans-
fer takes place. This option makes curl skip the veri-
fication step and proceed without checking.
When this option is not used for protocols using TLS,
curl verifies the server's TLS certificate before it
continues: that the certificate contains the right
name which matches the host name used in the URL and
that the certificate has been signed by a CA certifi-
cate present in the cert store. See this online re-
source for further details:
https://curl.se/docs/sslcerts.html
For SFTP and SCP, this option makes curl skip the
known_hosts verification. known_hosts is a file nor-
mally stored in the user's home directory in the
".ssh" subdirectory, which contains host names and
their public keys.
WARNING: using this option makes the transfer inse-
cure.
When curl uses secure protocols it trusts responses
and allows for example HSTS and Alt-Svc information to
be stored and used subsequently. Using -k, --insecure
can make curl trust and use such information from ma-
licious servers.
Providing -k, --insecure multiple times has no extra
effect. Disable it again with --no-insecure.
Example:
curl --insecure https://example.com
See also --proxy-insecure, --cacert and --capath.
I forgot to add information, i was using php+curl to make the request, i got it working by adding the verify = false header to the request.