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

環境
RHEL8.6

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

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

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
curl --insecure https://localhost
curl --insecure https://localhost
curl --insecure https://localhost

方法2

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
curl -k https://localhost
curl -k https://localhost
curl -k  https://localhost

 

AlmaLinux

Posted by arkgame