« Back to Index

POST data via curl command using CERT and password

View original Gist on GitHub

curl and cert password.bash

curl --verbose \ 
     --header "Content-Type: application/json" \
     --request POST \
     --data '{"foo":"bar"}' \
     --insecure \
     --cert $DEV_CERT_P12:{password} \
     https://domain.com/path/to/endpoint