Skip to content

Instantly share code, notes, and snippets.

@josenicomaia
Created February 12, 2021 02:09
Show Gist options
  • Select an option

  • Save josenicomaia/440635bb07def551ef3d4d5cadcf8606 to your computer and use it in GitHub Desktop.

Select an option

Save josenicomaia/440635bb07def551ef3d4d5cadcf8606 to your computer and use it in GitHub Desktop.
# Redis cert
cd c:/Softwares/certs
openssl genrsa -out key.pem 4096
openssl req -new -x509 -key key.pem -out cert.pem -subj "/CN=localhost" -days 1826
# Redis with SSL
docker run --name some-redis -d -p 6380:6379 -v c:/Softwares/certs:/certs --name some-redis-tls madflojo/redis-tls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment