The curl command sends HTTPS requests to the server
[email protected]:~# 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…
- cURL error 60: SSL certificate problem: self signed certificate in certificate chain
- Configure HTTPS and self signed certificate for nginx
- PHP function file_ get_ Contents() reports an error when using HTTPS protocol: SSL operation failed
- Error 9 at 1 depth lookup:certificate is Not yet valid error
- Error 403 Forbidden when using WGet or curl
- A download error occurred while downloading data from pytorch. Urllib.error.urlerror: < urlopen error [SSL: certificate_verify_failed]
- FileZilla server failed to initialize SSL Library
- WSS connection server error
- Command codesign failed with a nonzero exit code or revoke certificate for IOS / Xcode problems
- Apache failed to start due to SSL library certificate has expired
- SAP ABAP HTTPS installation certificate to SAP application server
- server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
- Spark login error unable to verify certificate and certificate host name verification failed
- Error:Failed to create provisioning profile. – iOS
- Resolve git clone error fatal: http request failed
- When we crawl to the HTTPS website, the SSL certificate error is solved
- K8s configure HTTPS with existing certificate
- How to convert audio to subtitle (text) with Python?
- SSL handshake failed: SSL error: illegal key usage detected in the certificate