Selaa lähdekoodia

Ignore TLS issues

AWS decided to push vhost buckets without solving a glaring issue: when a bucket name contains dots, it gets served with an invalid certificate...
master
JustAnotherArchivist 3 vuotta sitten
vanhempi
commit
e3b77bf322
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. +2
    -1
      s3-bucket-list

+ 2
- 1
s3-bucket-list Näytä tiedosto

@@ -3,6 +3,7 @@ import html
import http.client
import os
import shlex
import ssl
import sys
import urllib.parse

@@ -48,7 +49,7 @@ if '/' not in baseUrl.split('://', 1)[1] or not baseUrl.endswith('/'):
hostname = baseUrl.split('://', 1)[1].split('/', 1)[0]


conn = http.client.HTTPSConnection(hostname)
conn = http.client.HTTPSConnection(hostname, context = ssl._create_unverified_context())
params = {}
if startMarker is not None:
params['marker'] = startMarker


Ladataan…
Peruuta
Tallenna