aboutsummaryrefslogtreecommitdiffstats
path: root/certs/update-certs.py
diff options
context:
space:
mode:
authorbur3 <bur3@yandex-team.ru>2022-02-10 16:52:04 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:52:04 +0300
commit99d815c929689c4f9f772dbe1a671240e9bdfea1 (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb /certs/update-certs.py
parent21d4894ec358934fd085d6ed0a177bf19aee27cc (diff)
downloadydb-99d815c929689c4f9f772dbe1a671240e9bdfea1.tar.gz
Restoring authorship annotation for <bur3@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'certs/update-certs.py')
-rwxr-xr-xcerts/update-certs.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/certs/update-certs.py b/certs/update-certs.py
index f6bc2c945f..13a2dabc94 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)