SSL certificate problem unable to get local issuer certificate解決辦法

SSL certificate problem unable to get local issuer certificate 解決辦法:php

  1. 下載:ca-bundle.crtgit

  2. 將它放在本身的wamp或者xampp目錄下,如 c:\wamp\ ca-bundle.crtgithub

  3. 在Apache中開啓mod_ssl ,在php.ini開啓php_openssl.dll
  4. 在php.ini文件中添加ca-bundle.crt的文件路徑,如:服務器

    curl.cainfo="C:/wamp/ca-bundle.crt"
    openssl.cafile="C:/wamp/ca-bundle.crt"
  5. 重啓Apache服務器curl

相關文章
相關標籤/搜索