CentOS7からUbuntu24.04にサーバーを入れ替えたところ、以下のエラーで悩んだ!
Warning: getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:0A000086:SSL routines::certificate verify failed in ・・・/tcpdf_images.php on line 166
php.iniの[openssl]セクションに
openssl.cafile=/etc/ssl/certs/SectigoRSADomainValidationSecureServerCA.crt
を追加してもダメ
/usr/lib/ssl/openssl.cnf
にlegacy_sect追加してもダメ
散々ググって、やっとこれ見つけて解決
# cp /etc/ssl/certs/SectigoRSADomainValidationSecureServerCA.crt /usr/share/ca-certificates/extra/
# dpkg-reconfigure ca-certificates
わかっちゃえばこれだけなのに。。。