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

Fixed [SEC_CERTS_CONFORM_X509V3] failure: Exception caught while trying to retrieve and decode certificate for https://[IPv6]; exception: [Errno 11001] getaddrinfo failed #41

Closed PuwenHsiao closed 2 years ago

PuwenHsiao commented 2 years ago

The previous code always used the AF_INET address family to create SSL socket when using IPv6.

conn = context.wrap_socket(socket.socket(socket.AF_INET), server_hostname=rhost.hostname)

Add the ip_address function to detect the correct address family that should be used.