diff options
author | bur3 <[email protected]> | 2022-02-10 16:52:04 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:52:04 +0300 |
commit | 99d815c929689c4f9f772dbe1a671240e9bdfea1 (patch) | |
tree | ab7fbbf3253d4c0e2793218f09378908beb025fb /certs/update-certs.py | |
parent | 21d4894ec358934fd085d6ed0a177bf19aee27cc (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'certs/update-certs.py')
-rwxr-xr-x | certs/update-certs.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/certs/update-certs.py b/certs/update-certs.py index f6bc2c945fa..13a2dabc941 100755 --- a/certs/update-certs.py +++ b/certs/update-certs.py @@ -1,21 +1,21 @@ -#!/usr/bin/env python2 -# -*- coding: utf-8 -*- - -import urllib2 - +#!/usr/bin/env python2 +# -*- coding: utf-8 -*- + +import urllib2 + COMMON_ROOT_CAS_URL = "https://mkcert.org/generate" YANDEX_INTERNAL_CAS_URL = "https://crls.yandex.net/allCAs.pem" - + def get_text(url): return urllib2.urlopen(url).read() - + common_root_cas = get_text(COMMON_ROOT_CAS_URL) yandex_internal_cas = get_text(YANDEX_INTERNAL_CAS_URL) with open("cacert.pem", "wt") as target: target.write(common_root_cas) target.write(yandex_internal_cas) - + with open("yandex_internal.pem", "wt") as target: target.write(yandex_internal_cas) |