From a449f509782000d8f0f4ec953b9ebdeb63a2b27c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Fri, 9 Feb 2018 19:09:53 +0100 Subject: [PATCH] Do not print SSL key and cert in errorlog --- src/main.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 73acc7396..d9557169a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -213,16 +213,13 @@ void ProxySQL_Main_init_SSL_module() { exit(EXIT_SUCCESS); // we exit gracefully to not be restarted } - RSA_print_fp(stdout, pkey->pkey.rsa, 0); - X509_print_fp(stdout, x509); + //RSA_print_fp(stdout, pkey->pkey.rsa, 0); + //X509_print_fp(stdout, x509); - PEM_write_PrivateKey(stdout, pkey, NULL, NULL, 0, NULL, NULL); - PEM_write_X509(stdout, x509); + //PEM_write_PrivateKey(stdout, pkey, NULL, NULL, 0, NULL, NULL); + //PEM_write_X509(stdout, x509); - - int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb); - if ( SSL_CTX_use_certificate(GloVars.global.ssl_ctx, x509) <= 0 ) { ERR_print_errors_fp(stderr); proxy_error("Unable to use SSL certificate. Shutting down...\n");