From c960542e97b68c03a825532c77de56ee7070efd4 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Thu, 28 Jul 2016 19:17:28 +0200 Subject: [PATCH] - switch to HTTPS, disable SSL certificate validation --- client/make-request.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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" ;; *) -- 2.46.0