From: Marcin Krol Date: Thu, 28 Jul 2016 17:17:28 +0000 (+0200) Subject: - switch to HTTPS, disable SSL certificate validation X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=c960542e97b68c03a825532c77de56ee7070efd4;p=tld-builder.git - switch to HTTPS, disable SSL certificate validation --- diff --git a/client/make-request.sh b/client/make-request.sh index a14bd7c..e3fa52d 100755 --- a/client/make-request.sh +++ b/client/make-request.sh @@ -45,7 +45,7 @@ url="$url" mailer="/usr/lib/sendmail -t" gpg_opts="" dist=ti -url="http://kraz.tld-linux.org:1231/" +url="https://kraz.tld-linux.org:1241/" # defaults: f_upgrade=yes @@ -102,7 +102,14 @@ send_request() { *) msg "Sending using HTTP mode to $url" cat - | python -c ' -import sys, socket, urllib2 +import sys, socket, urllib2, ssl + +try: + _create_unverified_https_context = ssl._create_unverified_context +except AttributeError: + pass +else: + ssl._create_default_https_context = _create_unverified_https_context try: data = sys.stdin.read() @@ -536,13 +543,13 @@ case "$dist" in ti) builder_email="builderti@kraz.tld-linux.org" default_builders="ti-*" - url="http://kraz.tld-linux.org:1231/" + url="https://kraz.tld-linux.org:1241/" control_url="http://kraz.tld-linux.org/~builderti" ;; ti-dev) builder_email="buildertidev@kraz.tld-linux.org" default_builders="ti-dev-*" - url="http://kraz.tld-linux.org:1232/" + url="https://kraz.tld-linux.org:1242/" control_url="http://kraz.tld-linux.org/~buildertidev" ;; *)