-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Failed to execute HTTP GET request retry attempt 2/2 [URL: https://192.168.1.85/redfish/v1/Systems/] due to exception javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
then I tried this commands
openssl s_client -servername [redfish IP] -connect [Redfish IP]:5000 </dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'>/tmp/redfish.crt
keytool -import -alias [Redfish IP] -keystore /path-to-java/lib/security/cacerts -file /tmp/redfish.crt
(node185) Failed to execute HTTP GET request retry attempt 2/2 [URL: https://192.168.1.85/redfish/v1/Systems/] due to exception javax.net.ssl.SSLPeerUnverifiedException: Certificate for <192.168.1.85> doesn't match any of the subject alternative names: []