summaryrefslogtreecommitdiffstats
path: root/certs/update-certs.py
diff options
context:
space:
mode:
authorthegeorg <[email protected]>2022-02-10 16:45:12 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:12 +0300
commit49116032d905455a7b1c994e4a696afc885c1e71 (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /certs/update-certs.py
parent4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'certs/update-certs.py')
-rwxr-xr-xcerts/update-certs.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/certs/update-certs.py b/certs/update-certs.py
index 6df6809a95f..13a2dabc941 100755
--- a/certs/update-certs.py
+++ b/certs/update-certs.py
@@ -3,19 +3,19 @@
import urllib2
-COMMON_ROOT_CAS_URL = "https://mkcert.org/generate"
-YANDEX_INTERNAL_CAS_URL = "https://crls.yandex.net/allCAs.pem"
+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()
+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)
+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("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)
-with open("yandex_internal.pem", "wt") as target:
- target.write(yandex_internal_cas)
-