RHEL9 curl: (60) SSL certificate problem: self signed certificateの解決方法

環境
RHEL9.2

実行コマンド
$curl –cert test1.pem https://xxxx

エラー現象

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl: (60) SSL certificate problem: self signed certificate More details here: https://curl.haxx.se/docs/sslcerts.html
curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

原因
https サーバから信頼されていない自己署名証明書が提示されたため、リスクがあることを警告している。

対策
–insecure オプションを付けます。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
curl --cert test1.pem --insecure https://xxxx
curl --cert test1.pem --insecure https://xxxx
curl --cert test1.pem --insecure https://xxxx

 

AlmaLinux 9

Posted by arkgame