Created
June 12, 2021 11:11
-
-
Save cassioeskelsen/8b08b419e44691cddfcb372746df4b5f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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