-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openssl 证书路径 #88
Comments
除了上述办法以外,还可以使用如下几种方式 创建证书
指定证书方式一:
指定证书方式二:
指定证书方式三:$ca='/root/cacert.pem';
curl_setopt($ch, CURLOPT_CAINFO, $ca);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); |
还可以在编译 swoole-cli 时添加这个参数: 运行环境创建这个目录,并在 --with-config-file-path=/usr/local/swoole-cli/etc/
|
还可以这样 export PHP_INI_SCAN_DIR=/usr/local/swoole-cli/etc/
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
macOS 下会指向
~/.swoole_cli/openssl/ssl
,linux 会指向/usr/openssl/ssl
用户需要创建软连接,可在编译 openssl 时指定证书路径,直接使用操作系统的证书
The text was updated successfully, but these errors were encountered: