You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR #311 fixes this issue, however, passing key/cert to the pyeapi via parameters is deprecated (a respective deprecation message is printed) and will be removed in the future versions.
The newer way of handling this (which is working fine):
create an SSL context outside of pyeapi (then key/cert are passed there)
then pass SSL context to pyeapi.
That way the SSL context management is entirely in user's hands.
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: