Help us understand the problem. What is going on with this article?

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

  • よくある、実行環境に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

futaiten
お絵描きが趣味。 いつもお世話になっております。
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした