RHEL8 curl: (60) Issuer certificate is invalidの解決方法

環境
RHEL8.6

事象
curl https://localhost
curl: (60) Issuer certificate is invalid.

対策
-kか–insecureオプションで証明書の検証をしない
方法1

curl --insecure https://localhost

方法2

curl -k  https://localhost

 

AlmaLinux

Posted by arkgame