View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000440 | bareos-core | General | public | 2015-03-19 16:56 | 2015-06-01 16:24 |
Reporter | cviecco | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Summary | 0000440: Allow TLS 1.2 connections when using openssl | ||||
Description | Adding TLS 1.2 support will allow us to be more future-proof and have better ciphersuites such as as the use of ECDHE-ECDSA-AES256-GCM-SHA384. | ||||
Additional Information | The attached patch allows tls 1.2. 1.1 and 1.0 (when bareos is compiled against openssl) while the broken sslv2 and sslv3. | ||||
Tags | No tags attached. | ||||
bareos-tls1.2-openssl.diff (620 bytes)
diff --git a/src/lib/tls_openssl.c b/src/lib/tls_openssl.c index 39ab6c9..010e7c7 100644 --- a/src/lib/tls_openssl.c +++ b/src/lib/tls_openssl.c @@ -393,12 +393,13 @@ TLS_CONTEXT *new_tls_context(const char *ca_certfile, /* * Allocate our OpenSSL TLSv1 Context */ - ctx->openssl = SSL_CTX_new(TLSv1_method()); + ctx->openssl = SSL_CTX_new(SSLv23_method()); if (!ctx->openssl) { openssl_post_errors(M_FATAL, _("Error initializing SSL context")); goto err; } + SSL_CTX_set_options(ctx->openssl, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3); /* * Set up pem encryption callback |
|
Ok looks straight forward will add it to the list of pending patches ready to integrate soon. I guess you used this approach as it has the advantage if TLS1.3 gets added it probably also works while when you use TLSv12_method() you are not fully backward compatible (no idea how long OpenSSL has this method) |
|
Fix committed to bareos master branch with changesetid 5154. | |
Fix committed to bareos bareos-14.2 branch with changesetid 5320. | |
bareos: master a150cd1f 2015-03-19 21:19 Committer: pstorz Ported: N/A Details Diff |
Allow TLS 1.2 connections when using openssl Adding TLS 1.2 support will allow us to be more future-proof and have better ciphersuites such as as the use of ECDHE-ECDSA-AES256-GCM-SHA384. This patch allows tls 1.2. 1.1 and 1.0 while the broken sslv2 and sslv3 are disabled. Fixes 0000440: Allow TLS 1.2 connections when using openssl |
Affected Issues 0000440 |
|
mod - AUTHORS | Diff File | ||
mod - src/lib/tls_openssl.c | Diff File | ||
bareos: bareos-14.2 fc760fcc 2015-03-19 21:19 Committer: mvwieringen Ported: N/A Details Diff |
Allow TLS 1.2 connections when using openssl Adding TLS 1.2 support will allow us to be more future-proof and have better ciphersuites such as as the use of ECDHE-ECDSA-AES256-GCM-SHA384. This patch allows tls 1.2. 1.1 and 1.0 while the broken sslv2 and sslv3 are disabled. Fixes 0000440: Allow TLS 1.2 connections when using openssl |
Affected Issues 0000440 |
|
mod - AUTHORS | Diff File | ||
mod - src/lib/tls_openssl.c | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-03-19 16:56 | cviecco | New Issue | |
2015-03-19 16:56 | cviecco | File Added: bareos-tls1.2-openssl.diff | |
2015-03-21 17:42 | mvwieringen | Note Added: 0001330 | |
2015-03-21 17:42 | mvwieringen | Assigned To | => mvwieringen |
2015-03-21 17:42 | mvwieringen | Status | new => feedback |
2015-03-27 18:16 | pstorz | Changeset attached | => bareos master a150cd1f |
2015-03-27 18:16 | pstorz | Note Added: 0001656 | |
2015-03-27 18:16 | pstorz | Status | feedback => resolved |
2015-03-27 18:16 | pstorz | Resolution | open => fixed |
2015-03-31 15:24 |
|
Assigned To | mvwieringen => |
2015-05-27 12:50 | joergs | Relationship added | child of 0000447 |
2015-05-29 18:06 | mvwieringen | Changeset attached | => bareos bareos-14.2 fc760fcc |
2015-05-29 18:06 | mvwieringen | Note Added: 0001751 | |
2015-06-01 16:24 | joergs | Status | resolved => closed |