<@ULVA73B9P> How can I resolve this? `ssl.SSLCertV...
# marvin-in-the-wild
m
@Marvin How can I resolve this?
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain
m
Your SSL certificate verification is failing because the certificate is self-signed. To assist you better, let's narrow it down to Prefect's version you are using. Are you using Prefect 2.x or 3.x?
m
@Marvin I am using 2.x
m
It looks like there are a couple of ways to address self-signed SSL certificate issues in Prefect 2.x: 1. Add the certificate to the system bundle: Configure your environment to trust the self-signed certificate by adding it to your system bundle. You then set the
SSL_CERT_FILE
environment variable to point to that bundle. 2. Disable certificate verification: You can set the
PREFECT_API_TLS_INSECURE_SKIP_VERIFY
environment variable to
True
to disable certificate verification altogether. Note, this is insecure and only suggested for testing purposes. Here's a more concise summary from the documentation: "If you're using a self-signed SSL certificate, you need to configure your environment to trust the certificate. Add the certificate to your system bundle and configure the
SSL_CERT_FILE
environment variable to use that bundle. Alternatively, set
PREFECT_API_TLS_INSECURE_SKIP_VERIFY
to
True
to disable certificate verification." Link to reference: Prefect Installation Guide For more detailed instructions, visit Prefect Installation Guide.