CURL to pass SSL certifcate and password

前端 未结 3 832
旧时难觅i
旧时难觅i 2021-02-05 11:22

I need to specify a certificate with CURL i tried with --cert option it is not working.

Could you please let me know to specify the keystore and passpharse while invokin

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-05 12:03

    Addition to previous answer make sure that your curl installation supports https.
    You can use curl --version to get information about supported protocols.

    If your curl supports https follow the previous answer.

    curl --cert certificate_path:password https://www.example.com

    If it does not support https, you need to install a cURL version that supports https.

提交回复
热议问题