in This Tutorial you will Learn " How To Setup Redis Server with SSL/TLS On Rocky Linux 8"
Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker.
SSL, or Secure Sockets Layer, is an encryption-based Internet security protocol.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.60 |Hostname - server.yourdomain.com
_________________________________________________________________________________________
cat /etc/system-release ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf module -y install redis:6
cd /etc/pki/tls/certs ; openssl req -x509 -nodes -newkey rsa:2048 -keyout redis.pem -out redis.pem -days 3650
chmod 600 redis.pem ; chown redis. redis.pem
gedit /etc/redis.conf &>/dev/null
# requirepass Strongpassword
port 0
tls-port 6379
tls-ca-cert-dir /etc/pki/tls/certs
tls-auth-clients no
tls-cert-file /etc/pki/tls/certs/redis.pem
tls-key-file /etc/pki/tls/certs/redis.pem
systemctl enable --now redis ; systemctl restart redis ; systemctl status redis
firewall-cmd --add-service=redis --permanent ; firewall-cmd --reload
redis-cli -h 127.0.0.1 --tls \
--cert /etc/pki/tls/certs/redis.pem \
--key /etc/pki/tls/certs/redis.pem \
--cacert /etc/pki/tls/certs/redis.pem
________________________________________________________________________________________
Thursday, February 17, 2022
Setup Redis Server with SSL/TLS | Enable SSL for Redis
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment