<@ULVA73B9P>, i'm using prefect2, and i'm having t...
# ask-marvin
m
@Marvin, i'm using prefect2, and i'm having the following error: ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1006) An exception occurred.
m
The error you're encountering,
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain
, often occurs when using a self-signed SSL certificate. Here are a few potential solutions: 1. Trust the Certificate: You can add the self-signed certificate to your system's trusted certificate bundle. This involves configuring the
SSL_CERT_FILE
environment variable to point to the certificate file. 2. Disable SSL Verification: If trusting the certificate is not feasible, you can set the environment variable
PREFECT_API_TLS_INSECURE_SKIP_VERIFY
to
True
to bypass SSL verification. However, note that this is insecure and should only be used as a last resort or in a development environment. 3. Proxy Configuration: If you are using a proxy, ensure that it is configured correctly. There have been issues reported where
NO_PROXY
settings were not respected, leading to SSL errors (GitHub Issue). For more detailed guidance, you can refer to the Prefect documentation on handling self-signed certificates here. If these steps don't resolve your issue, consider checking for any open issues or discussions on the Prefect GitHub repository.