Following:
- http://gluster.readthedocs.io/en/latest/Administrator%20Guide/SSL/
- https://access.redhat.com/documentation/en-US/Red_Hat_Storage/3.1/html/Administration_Guide/chap-Network_Encryption.html
I use GlusterFS 3.9 here.
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "strconv" | |
| "github.com/miekg/dns" | |
| ) |
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
| package main | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "flag" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "os" |
| package main | |
| import ( | |
| "crypto/dsa" | |
| "crypto/rand" | |
| "crypto/sha1" | |
| "crypto/x509" | |
| "encoding/asn1" | |
| "encoding/pem" | |
| "errors" |
| package ciphers | |
| import ( | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/sha512" | |
| "crypto/x509" | |
| "encoding/pem" | |
| "log" | |
| ) |
| Country,City,Provider,Host,ID | |
| Abkhazia,Sukhum,Aquafon GSM,62.182.8.78:8080,9058 | |
| Abkhazia,Sukhum,"Systema, LTD",cyxym.net:8080,5089 | |
| Abkhaziya,Sukhum,A-Mobile,speedtest.a-mobile.biz:8080,9714 | |
| Afghanistan,Herat,Afghan Wireless,hrtspeedtest.afghan-wireless.com:8080,9622 | |
| Afghanistan,Kabul,Afghan Telecom,sp1.afghantelecom.af:8080,11019 | |
| Afghanistan,Kabul,etisalat Afghanistan,speedtest.etisalat.af:8080,21807 | |
| Afghanistan,Kabul,Afghan Wireless,speedtest.afghan-wireless.com:8080,5189 | |
| Afghanistan,Kabul,Afghan Wireless Communication Company,kdzspeedtest.afghan-wireless.com:8080,13501 | |
| Afghanistan,Kabul,Insta Telecom,speedtest.instatelecom.com:8080,12798 |
| package main | |
| import ( | |
| "crypto/tls" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "time" |