Reply To: kusanagi-php7 7.2.5-1でcURLなどからの外部HTTPSサイトへの接続でエラー

TOP Forums バグ報告と提案(Requests and Feedback) kusanagi-php7 7.2.5-1でcURLなどからの外部HTTPSサイトへの接続でエラー Reply To: kusanagi-php7 7.2.5-1でcURLなどからの外部HTTPSサイトへの接続でエラー

#400
yousan
Participant

    @collne
    どうもです! ちょうど先ほど解決できました。
    今記事にまとめていますが下記のように証明書を指定すれば解決しそうです。

    sudo git diff /etc/php7.d/php.ini
    diff --git a/php7.d/php.ini b/php7.d/php.ini
    index f122a10..254264d 100644
    --- a/php7.d/php.ini
    +++ b/php7.d/php.ini
    @@ -1864,6 +1864,7 @@ ldap.max_links = -1
     ; be overridden on a per-stream basis via the "cafile" SSL stream context
     ; option.
     ;openssl.cafile=
    +openssl.cafile=/etc/ssl/certs/ca-bundle.crt
    
     ; If openssl.cafile is not specified or if the CA file is not found, the
     ; directory pointed to by openssl.capath is searched for a suitable