0
0

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.

perl実行時にCertificate Authoritiesが無いと怒られた

Last updated at Posted at 2018-08-26

環境:
macOS hight sierra
perl 5.18.2

connpassのAPIを叩いてくれるソースコードを実行したところで、次のエラーが起きました。

Fetch error: 500 Can't verify SSL peers without knowing which Certificate Authorities to trust at XXXXXXXXXXXXXXXXXXXXX

オレオレ証明書が足りないということなので、証明書を入れてあげましょう

#cpanmがインストールされている前提で、 Mozilla::CAのモジュールをインストールします
$ cpanm Mozilla::CA
#モジュールがインストール成功か確認します。エラーがなければ成功です。
$ perl -MMozilla::CA

Mozilla::CAはどんなことをしているかの原文を次のように記述されています。(理解はできていません)

Mozilla::CA provides a copy of Mozilla's bundle of Certificate Authority certificates in a form that can be consumed by modules and libraries based on OpenSSL.

The module provide a single function:

SSL_ca_file()
Returns the absolute path to the Mozilla's CA cert bundle PEM file.

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?