DMTF / Redfish-Protocol-Validator

The Redfish Protocol Validator tests the HTTP protocol behavior of a Redfish service to validate that it conforms to the Redfish specification.
Other
14 stars 12 forks source link

Exception caught while trying to retrieve and decode certificate for https://172.17.8.47:8889 #15

Closed abrother94 closed 3 years ago

abrother94 commented 3 years ago

If we use following command to test

python3 rf_protocol_validator.py -r https://172.17.8.47:8889 -u admin -p YourPaSsWoRd --no-cert-check --avoid-http-redirect

will cause

Exception caught while trying to retrieve and decode certificate for https://172.17.8.47:8889; exception: [Errno -2] Name or service not known

and def test_certs_conform_to_x509v3 in assertions/security_details.py ... conn.connect((rhost.netloc, port)) ...

value of rhost.netloc is 172.17.4.47:8889 , but it should be 172.17.8.47 or the connection will fail

billdodd commented 3 years ago

@abrother94 Thanks for reporting this issue. I created PR #16 which I believe fixes the problem. But I do not have access to a live Redfish service to test. Could you test the fix in PR #16 to confirm if it solves your issue?

abrother94 commented 3 years ago

@abrother94 Thanks for reporting this issue. I created PR #16 which I believe fixes the problem. But I do not have access to a live Redfish service to test. Could you test the fix in PR #16 to confirm if it solves your issue?

It works here!! thanks :)

billdodd commented 3 years ago

@abrother94 That's great! Thanks for checking it out.