解决SSL证书验证问题的方法(cURL error 60: SSL certificate problem: unable to get local issuer certificate) 后端
$url = 'https://www.xxx.com/aaa.htm';
echo (Http::get($url)->body());
报错:
GuzzleHttp\Exception\RequestException
cURL error 60: SSL certificate problem: unable to get lo...
acme.sh 可以从 letsencrypt 生成免费的证书
1. 安装 acme.sh
安装很简单, 一个命令:
curl https://get.acme.sh | sh -s email=my@example.com
普通用户和 root 用户都可以安装使用. 安装过程进行了以下几步:
1.把 acme.sh 安装到你的 home 目录下:
~/.acme.sh/
并创建 一个 shell 的 alias, 例如...