diff options
author | Yossi Gottlieb <yossigo@gmail.com> | 2021-02-07 12:36:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-07 12:36:56 +0200 |
commit | be83bb13a8eaad68b7580b95c696f2554cf7100e (patch) | |
tree | a0c89c828c30578b9d88b155eb931e1281ad6a10 /src/cli_common.h | |
parent | aea6e71ef82701e07177744e600e1ef20d60b7d0 (diff) | |
download | redis-be83bb13a8eaad68b7580b95c696f2554cf7100e.tar.gz |
Add --insecure option to command line tools. (#8416)
Disable certificate validation, making it possible to connect to servers
without configuring full trust chain.
The use of this option is insecure and makes the connection vulnerable
to man in the middle attacks.
Diffstat (limited to 'src/cli_common.h')
-rw-r--r-- | src/cli_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cli_common.h b/src/cli_common.h index f3a91e9db..16d6ec2a9 100644 --- a/src/cli_common.h +++ b/src/cli_common.h @@ -10,6 +10,8 @@ typedef struct cliSSLconfig { char *cacert; /* Directory where trusted CA certificates are stored, or NULL */ char *cacertdir; + /* Skip server certificate verification. */ + int skip_cert_verify; /* Client certificate to authenticate with, or NULL */ char *cert; /* Private key file to authenticate with, or NULL */ |