SSL Certificate Error

Use this when running dataset registration scripts and you get:

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]

Fix

  1. Download Roche G3 Root CA.

  2. Rename it to roche_root.crt.

  3. Install helper tools:

    pip install certifi
    pip install dos2unix
  4. Find certifi bundle path:

    import certifi
    certifi.where()
  5. Append Roche root certificate to the certifi bundle:

    cat roche_root.crt >> /path/to/cacert.pem
  6. If required, normalize line endings:

    dos2unix /path/to/cacert.pem

If it still fails, contact #ext-ecdi-v7.