diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-02-10 16:45:12 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:12 +0300 |
commit | 49116032d905455a7b1c994e4a696afc885c1e71 (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /certs | |
parent | 4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff) | |
download | ydb-49116032d905455a7b1c994e4a696afc885c1e71.tar.gz |
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'certs')
-rwxr-xr-x | certs/update-certs.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/certs/update-certs.py b/certs/update-certs.py index 6df6809a95..13a2dabc94 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) - |