0
0

PHPでSSL関連のエラーでハマった件

Posted at

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

わかっちゃえばこれだけなのに。。。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0