Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save cassioeskelsen/a657a8073b34c707feb0698e9c0ad023 to your computer and use it in GitHub Desktop.
merge self-signed ca root certificate with certifi ca root certificates
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment