We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pyeapi is throwing the following error when attempting to connect to a switch via the https_certs transport type:
https_certs
File "/Users/micabrer/.pyenv/versions/3.11.4/lib/python3.11/site-packages/pyeapi/eapilib.py", line 261, in connect self.sock = ssl.SSLContext.wrap_socket(sock, self.key_file, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: SSLContext.wrap_socket() got an unexpected keyword argument 'cert_reqs'
The issue is that ssl.SSLContext.wrap_socket() doesn't accept an argument for cert_reqs. (Reference)
cert_reqs
The call that is failing is this one:
255 if self.ca_file: 256 self.sock = ssl.SSLContext.wrap_socket(sock, self.key_file, 257 self.cert_file, 258 ca_certs=self.ca_file, 259 cert_reqs=ssl.CERT_REQUIRED) 260 else: 261 self.sock = ssl.SSLContext.wrap_socket(sock, self.key_file, 262 self.cert_file, 263 cert_reqs=ssl.CERT_NONE)
It looks like this was originally built to be used with ssl.wrap_socket as the arguments match what that function requires. (Reference)
ssl.wrap_socket
This will likely need to be updated to properly work with the SSLContext.wrap_socket() function, as the ssl.wrap_socket() function is deprecated.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Pyeapi is throwing the following error when attempting to connect to a switch via the
https_certs
transport type:The issue is that ssl.SSLContext.wrap_socket() doesn't accept an argument for
cert_reqs
. (Reference)The call that is failing is this one:
It looks like this was originally built to be used with
ssl.wrap_socket
as the arguments match what that function requires. (Reference)This will likely need to be updated to properly work with the SSLContext.wrap_socket() function, as the ssl.wrap_socket() function is deprecated.
The text was updated successfully, but these errors were encountered: