Skip to content
New issue

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

SSL verification failed #2

Closed
booksarestillbetter opened this issue Feb 11, 2020 · 3 comments
Closed

SSL verification failed #2

booksarestillbetter opened this issue Feb 11, 2020 · 3 comments

Comments

@booksarestillbetter
Copy link

booksarestillbetter commented Feb 11, 2020

i attempted to set this up, but my server requires a secure connection, it appears that your code doesn't ignore ssl (in this case using the private returns a plex.direct ssl cert)

import requests 
session = requests.Session()
session.verify = False
pms = PlexServer(url, token, session=session)
@se1exin
Copy link
Owner

se1exin commented Feb 11, 2020

Thanks for the bug report, is your server using a self signed SSL cert (e.g. not issued from a known authority)?

I'd prefer not to hard code the bypass of certificate verification, would a container variable be suffice in this scenario? E.g. docker run ... -e BYPASS_SSL_VERIFICATION=1 ...?

@booksarestillbetter
Copy link
Author

its using the standard plex.direct cert supplied by plex.tv. as for the bypassing verification i would prefer you didn't hard code it :) and ENV variable is fine.

@se1exin
Copy link
Owner

se1exin commented Feb 14, 2020

@booksarestillbetter the option BYPASS_SSL_VERIFY has been added. Add the following environment variable when running the container to activate it:

-e BYPASS_SSL_VERIFY=1

@se1exin se1exin closed this as completed Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants