Skip to content

Instantly share code, notes, and snippets.

@charleswhchan
charleswhchan / python_tls_version.py
Created March 4, 2021 22:50
Check TLS version used by Python
import json
import urllib.request
with urllib.request.urlopen('http://www.howsmyssl.com/a/check') as response:
response = response.read()
data = json.loads(response.decode())
tls_version = data["tls_version"]
print(tls_version)
@charleswhchan
charleswhchan / main.go
Created June 27, 2020 22:23
Program to reproduce localstack issue #2562
package main
import (
"bytes"
"crypto/md5"
"encoding/base64"
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"