terminal - How can I set the certificates in CURL -


in order successful response using curl --cacert <path of ca.pem> ... how can set path of ca.pem in configuration file in mac in order not specify path of certificate every time, , can directly use curl ...

on system can set environment variables point these files.

try:

export ssl_cert_file=/path/to/ca.pem 

there ss_cert_dir specify directory containing certificates.

you can add .bashrc or .bash_profile file make permanent.

this can changed @ compile time curl passing --with-ca-path=directory when building curl i'd recommend leaving is.

better yet, find out ca path/file os and/or openssl using , add relevant certificate there. have no idea live on mac should have directory of trusted ca certs curl using verification (probably somewhere in /etc).


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -