curl client (the server uses curl to send API request)
insecure, no verification of server certificate
https://unix.stackexchange.com/questions/60750/does-curl-have-a-no-check-certificate-option-like-wget
-k, or --insecure
https://medium.com/@brucifi/working-with-tls-client-certificates-f67437a9aeb9
curl -i \
-k \
-H "content-type:application/json" \
-H "acception:application/json" \
--cert "/rootPathToYourPublicPem" \
--key "/rootPathToYourPrivKeyPem(Like/home/me/myPrivKey.pem)" \
-X POST -d '{"d":{ "test"}' \
https://remoteEndpoint \
--trace-ascii /dev/stdout
No comments:
Post a Comment