]> TLD Linux GIT Repositories - tld-builder.git/commitdiff
- switch to HTTPS, disable SSL certificate validation
authorMarcin Krol <hawk@tld-linux.org>
Thu, 28 Jul 2016 17:17:28 +0000 (19:17 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Thu, 28 Jul 2016 17:17:28 +0000 (19:17 +0200)
client/make-request.sh

index a14bd7c5ffadd4308f3f7a125f7f5e4f3d094988..e3fa52de698e842e3ce4d8d630a1a31dbe7215ea 100755 (executable)
@@ -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"
        ;;
 *)