Skip to content

Instantly share code, notes, and snippets.

@cassioeskelsen
Created June 12, 2021 11:11
Show Gist options
  • Select an option

  • Save cassioeskelsen/8b08b419e44691cddfcb372746df4b5f to your computer and use it in GitHub Desktop.

Select an option

Save cassioeskelsen/8b08b419e44691cddfcb372746df4b5f to your computer and use it in GitHub Desktop.
import os
import certifi
def update_cacert_pem(ca_path):
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), ca_path), "r") as f_in:
data = f_in.read()
with open(certifi.where(), "a") as f_out:
f_out.write(data)
if __name__ == "__main__":
update_cacert_pem("../cert/ca_homolog.crt")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment