Closed AradCarmi closed 4 months ago
Hi, AFAIK, VC certificates cannot be updated with self signed certificates. Can you tell me what exactly are you trying to do? If you want to verify the SSL cert then why are you setting session.verify=false
Hey @bhagatp10 thank you for the fast response! My VC server is updated with self-signed certificates and it is working fine. I'm trying to retrieve some data using the Client and I want the Client not to verify my certificate when creating the session. As I mentioned before, I tried to send a session object to the Client with the right configuration but from viewing the Client code it ignored this configuration.
Hi, Can you show me the snippet of the code you are using?
Sure.
What python version you are using? What are the urllib3 and openssl version?
python version 3.10.14 urllib3 version 2.2.1
Kindly refer to following troubleshooting section.
Describe the bug
The
create_vsphere_client
function encountered an issue when attempting to establish a session with a self-signed server, despite having the session object configured with verify=False. This failure was triggered by an SSLError, specifically an SSLZeroReturnError (error code 6), indicating that the TLS/SSL connection was closed unexpectedly (EOF) at line 997Reproduction steps
session.verify=false
.create_vsphere_client
with server, username&password, and session.Expected behavior
The created session will allow us to connect the VMware Vcenter server even if the server is a self-signed certificate.
Additional context
No response