1
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 3 years have passed since last update.

AWS SDK のSSL証明書エラーが出た場合【Windows10】

Posted at
  • よくある、実行環境にSSL証明書がない場合に発生するエラー
cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in xxx
cURL error 77: error setting certificate verify locations:
  CAfile: xxx
  CApath: none (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in 
xxx on line 195
  • 解決策
    cURLサイトから証明書をダウンロード出来るらしい
    https://curl.haxx.se/docs/caextract.html
    サイト内の cacert.pem というリンクからダウンロード出来る
    ダウンロードしたら適当な場所に配置して、php.iniの設定
openssl.cafile='C:\tools\php\extras\ssl\cacert.pem'

apacheとかnginxならサービスを再起動
これで完了

参考: https://docs.aws.amazon.com/ja_jp/sdk-for-php/v3/developer-guide/faq.html

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