TLS Support
SSL/TLS is supported by Redis starting with version 6 as an optional feature that needs to be enabled at compile time.
Getting Started
Building
To build with TLS support you'll need OpenSSL development libraries (e.g. libssl-dev on Debian/Ubuntu).
Run make BUILD_TLS=yes
.
Tests
To run Redis test suite with TLS, you'll need TLS support for TCL (i.e. tcl-tls
package on Debian/Ubuntu).
Run
./utils/gen-test-certs.sh
to generate a root CA and a server certificate.Run
./runtest --tls
or./runtest-cluster --tls
to run Redis and Redis Cluster tests in TLS mode.
./runtest --tls
can't find package tls 1.6
while executing
"package require tls 1.6"
("for" body line 33)
invoked from within
"for {set j 0} {$j < [llength $argv]} {incr j} {
set opt [lindex $argv $j]
set arg [lindex $argv [expr $j+1]]
if {$opt eq {--tags}} {
..."
(file "tests/test_helper.tcl" line 542)
apt install tcl-tls/bionic openssl libssl-dev
Comentários