The curl command sends HTTPS requests to the server
root@53c79d8a7095:~# curl --header "PRIVATE-TOKEN: Nf1kK4MeF4fPMo7d4jY2" https://172.16.0.168/api/v4/projects?search=xxxx
curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
And then I did a search, and at first I thought it was the Daijiguo blog that said you need to set the parameters, but in fact that should be PHP related Settings. Then continue to Google, find bytxl, curl
need to add -k
, wget
need to add --no-check-certificate
:
curl --header "PRIVATE-TOKEN: Nf1kK4MeF4fPMo7d4jY2" https://172.16.0.168/api/v4/projects?search=xxxx -k
wget 'https://172.16.0.168/api/v4/projects?search=xxxx -k' --no-check-certificate
conclusion
A bad keyboard is worse than a good memory! Hope to speed up the speed of solving the problem!
Read More:
- cURL error 60: SSL certificate problem: self signed certificate in certificate chain
- GuzzleHttp cURL error 60: SSL certificate problem: self signed certificate
- cURL error 60: SSL certificate problem: unable to get local issuer certificate
- cURL error 60: SSL certificate problem…
- svn: E230001: Server SSL certificate verification failed: certificate issued
- Idea svn connection https error report: E230001: Server SSL certificate verification failed: certificate issued
- Configure HTTPS and self signed certificate for nginx
- How to Fix SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed.
- SSL handshake failed: SSL error: illegal key usage detected in the certificate
- Spark login error unable to verify certificate and certificate host name verification failed
- ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
- Python – SSL certificate error
- When we crawl to the HTTPS website, the SSL certificate error is solved
- server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
- [SSL: CERTIFICATE_VERIFY_FAILED] Certificate Verify Failed (_ssl.C:579)
- Python uses requests to request and reports SSL: CERTIFICATE_VERIFY_FAILED error
- Was import certificate — error prompt: java.security.cert .CertPathValidatorException: Certificate chaining error
- An undetermined call to function ‘shell’: missing ‘. Stop. Problem encountered when using shell command in makefile
- URLError: urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)
- [Solved] onlyoffice Error: error self signed certificate and download failed