Ver a proveniência

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 há 3 anos
ascendente
cometimento
e3b77bf322
1 ficheiros alterados com 2 adições e 1 eliminações
  1. +2
    -1
      s3-bucket-list

+ 2
- 1
s3-bucket-list Ver ficheiro

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


Carregando…
Cancelar
Guardar