Before using Certbot, configure Certbot to trust your root CA certificate using the REQUESTS_CA_BUNDLE environment variable.

  • For example, to set the REQUESTS_CA_BUNDLE environment variable on Windows:

    set REQUESTS_CA_BUNDLE=<root-CA-cert-file>

    Where <root-CA-cert-file> is the path and file name of the root CA certificate file. For example:

    set REQUESTS_CA_BUNDLE= "C:\root_ca.crt"
  • For example, to set the REQUESTS_CA_BUNDLE environment variable on Linux:

    sudo REQUESTS_CA_BUNDLE=<root-CA-cert-file>

    Where <root-CA-cert-file> is the path and file name of the root CA certificate file. For example:

    sudo REQUESTS_CA_BUNDLE=/tmp/root_ca.crt