Skip to content

Commit

Permalink
Update ssl.c
Browse files Browse the repository at this point in the history
  • Loading branch information
eyesudian authored Mar 13, 2023
1 parent 4ca8e73 commit db1b2e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ redisSSLContext *redisCreateSSLContextWithOptions(redisSSLOptions *options, redi
goto error;
}

SSL_CTX_set_cipher_list( ctx->ssl_ctx, "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384");
SSL_CTX_set1_curves_list( ctx->ssl_ctx, "P-521:P-384");
SSL_CTX_set1_sigalgs_list( ctx->ssl_ctx, "ECDSA+SHA256:RSA+SHA256:ECDSA+SHA512:RSA+SHA512:ECDSA+SHA384");
SSL_CTX_set_options(ctx->ssl_ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3);
SSL_CTX_set_verify(ctx->ssl_ctx, options->verify_mode, NULL);

Expand Down

1 comment on commit db1b2e6

@eyesudian
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

specify cert

Please sign in to comment.