]>
Commit | Line | Data |
---|---|---|
78522c10 MT |
1 | From 3cc70656961f0384b1db030e0697a00af0b30e65 Mon Sep 17 00:00:00 2001 |
2 | From: Ryan O'Hara <rohara@redhat.com> | |
3 | Date: Mon, 19 Nov 2012 09:51:50 -0600 | |
4 | Subject: [PATCH 06/10] Load SSL certificate correctly. | |
5 | ||
6 | This patch fixes a problem where keepalived will attempt to load an | |
7 | SSL keyfile as a certificate, resulting in failure to initialize SSL | |
8 | context. | |
9 | ||
10 | Signed-off-by: Ryan O'Hara <rohara@redhat.com> | |
11 | --- | |
12 | keepalived/check/check_ssl.c | 4 ++-- | |
13 | 1 files changed, 2 insertions(+), 2 deletions(-) | |
14 | ||
15 | diff --git a/keepalived/check/check_ssl.c b/keepalived/check/check_ssl.c | |
16 | index 618d9a4..574ba30 100644 | |
17 | --- a/keepalived/check/check_ssl.c | |
18 | +++ b/keepalived/check/check_ssl.c | |
19 | @@ -86,10 +86,10 @@ build_ssl_ctx(void) | |
20 | } | |
21 | ||
22 | /* Load our keys and certificates */ | |
23 | - if (check_data->ssl->keyfile) | |
24 | + if (check_data->ssl->certfile) | |
25 | if (! | |
26 | (SSL_CTX_use_certificate_chain_file | |
27 | - (ssl->ctx, check_data->ssl->keyfile))) { | |
28 | + (ssl->ctx, check_data->ssl->certfile))) { | |
29 | log_message(LOG_INFO, | |
30 | "SSL error : Cant load certificate file..."); | |
31 | return 0; | |
32 | -- | |
33 | 1.7.1 | |
34 |