Browse Source

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 1 month ago
parent
commit
e3b77bf322
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      s3-bucket-list

+ 2
- 1
s3-bucket-list View File

@@ -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


Loading…
Cancel
Save