7
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

curlで証明書エラーが出る場合の対処法

Posted at

症状

linuxbrewでインストールしたcurlコマンドを実行する際に下記のエラーがでる

curl: (77) error setting certificate verify locations:
  CAfile: /home/user_name/.linuxbrew/etc/openssl/cert.pem
  CApath: /home/user_name/.linuxbrew/etc/openssl/certs

対処法

証明書をダウンロードして該当ディレクトリに保存する

$ wget http://curl.haxx.se/ca/cacert.pem
$ cp cacert.pem /home/user_name/.linuxbrew/etc/openssl/cert.pem

Mozillaの証明書のようです。
https://curl.haxx.se/docs/caextract.html

7
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?