curl pass the pass phrase along with command line

Viewed 4204

I am using following command:

curl -X GET -k --header "Accept: text/plain" --key privateKey.pem --cert publicCert.pem --cacert ca.crt "https://example.org/update"

after I execute this command, system ask me to enter the pass phrase:

Enter PEM pass phrase: 

How can I pass phrase along with command line so no manual intervention is required.

1 Answers

as suggested by @dave adding --pass did the trick

curl -X GET -k --header "Accept: text/plain" --key privateKey.pem --cert publicCert.pem --cacert ca.crt "https://example.org/update" --pass myPassword
Related