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

How to skip ssl certificate verification? #34

Open
gp2-gp2 opened this issue Dec 2, 2021 · 1 comment
Open

How to skip ssl certificate verification? #34

gp2-gp2 opened this issue Dec 2, 2021 · 1 comment

Comments

@gp2-gp2
Copy link

gp2-gp2 commented Dec 2, 2021

Is there a way to send some flag to ignore ssl certificate check?

I have one environment which is failing to connect with below message:

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)

@gp2-gp2
Copy link
Author

gp2-gp2 commented Dec 2, 2021

I added this in my local copy and it works:

# ignore certificate fix
import ssl

self._connection = websocket.create_connection(
            self.ws_url,
            subprotocols=[GQL_WS_SUBPROTOCOL],
            # ignore certificate fix
            sslopt={"cert_reqs": ssl.CERT_NONE},
        )

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

1 participant