Skip to content

Instantly share code, notes, and snippets.

@kerneltime
Last active February 18, 2021 18:49
Show Gist options
  • Save kerneltime/f3d85d535db40f74918c0fec3a42d84a to your computer and use it in GitHub Desktop.
Save kerneltime/f3d85d535db40f74918c0fec3a42d84a to your computer and use it in GitHub Desktop.
start minio for testing with TLS
curl -Ol https://golang.org/src/crypto/tls/generate_cert.go
go run generate_cert.go -ca --host "192.168.86.47"
cp cert.pem key.pem ~/.minio/certs
mv ~/.minio/certs/cert.pem ~/.minio/certs/public.crt
mv ~/.minio/certs/key.pem ~/.minio/certs/private.key
> cat start-https.sh 
export MINIO_ACCESS_KEY="minio"
export MINIO_SECRET_KEY="minio123"
export MINIO_PROMETHEUS_AUTH_TYPE="public"
export MINIO_ENDPOINTS="https://192.168.86.47:9101/home/ritesh/disks01 https://192.168.86.47:9102/home/ritesh/disks02 https://192.168.86.47:9103/home/ritesh/disks03 https://192.168.86.47:9104/home/ritesh/disks04"
for i in {01..04}; do
	./minio server --address ":91${i}" /home/ritesh/disks${i}&
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment