Failed to verify certificate: x509: certificate signed by unknown authority

Thanks. I also just wanted to follow-up if anyone wanted to use a singularity container.
The solution that worked for me was the following:

  1. Download cacert.pem from the web (https://curl.se/ca/cacert.pem) using curl or wget.
  2. In the sbatch script, export the path to the cacert.pem file:
    export SSL_CERT_FILE=/path/to/cacert.pem
1 Like