LoginSignup
1
0

More than 5 years have passed since last update.

bitbucket.orgからMercurialリポジトリをクローンする際にSSLエラーが出た時の対処

Posted at

macOS Mojave(10.14)環境において、bitbucket.orgで管理しているMercurialリポジトリをクローンしようとしたところ、以下のSSLエラーが出てしまいクローンが出来ませんでした。

(an attempt was made to load CA certificates but none were loaded; see https://mercurial-scm.org/wiki/SecureConnections for how to configure Mercurial to avoid this error)
error fetching bundle: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)
abort: error applying bundle

bitbucketが利用している最新のルート証明書が、Pythonの参照するルート証明書の一覧に登録されていないことが原因でしたので、
以下のコマンドを実行し、libresslの最新のcert.pemを参照させることで回避ができました。

brew install libressl
export SSL_CERT_FILE="/usr/local/etc/libressl/cert.pem"

今後の同様の事態に備えて、 export SSL_CERT_FILE="/usr/local/etc/libressl/cert.pem" は、 .bash_profile あたりに書いておいても良いでしょう。

参考

1
0
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
1
0