Utility to add a certificate to access non-official version of gracedb
To use a non-standard deployment of gracedb, one must add the certificate to allow request authentication. This utility adds the required certificate to "/home/emfollow-dev/.local/lib/python3.9/site-packages/certifi/cacert.pem." [In the current way we deploy gwcelery].
Usage:
python3.9 add_ca_certificate.py gwcelery/data/ca_certificate_test01.crt
It allows avoid setting the environmental variable:
export REQUESTS_CA_BUNDLE=./gwcelery/data/ca_certificate_test01.crt
Edited by Roberto DePietri