RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1786382 - Support for TLSv1.3 in dovecot
Summary: Support for TLSv1.3 in dovecot
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dovecot
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Michal Hlavinka
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-24 22:41 UTC by Dimitris
Modified: 2020-11-03 21:06 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-20 14:36:52 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dimitris 2019-12-24 22:41:37 UTC
Description of problem:

If we try to use dovecot with TLS v1.3, it fails to accept connections.


Version-Release number of selected component (if applicable):

dovecot-2.2.36-5.el8_0.1.x86_64


How reproducible:

always


Steps to Reproduce:
1. modify /etc/dovecot/conf.d/10-ssl.conf with: ssl_protocols = TLSv1.2 TLSv1.3
2. systemctl restart dovecot
3. openssl s_client -connect localhost:993


Actual results:

dovecot[14857]: imap-login: Fatal: Unknown ssl_protocols setting: Unrecognized protocol 'TLSv1.3'


Expected results:

connection ok

Additional info:

CONNECTED(00000003)
write:errno=104
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 336 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)
---

Comment 1 Dimitris 2019-12-24 22:46:05 UTC
I believe I did not make this clear, if I replace the "TLSv1.3" setting with "TLSv1.2" then the connection is successful and shows the following:

Post-Handshake New Session Ticket arrived:
SSL-Session:
    Protocol  : TLSv1.3
    Cipher    : TLS_AES_256_GCM_SHA384

For some reason, focing TLS v1.2 results in v1.3.

Bug or "feature"?

Comment 3 Martin Poole 2020-06-05 14:44:43 UTC
dovecot on RHEL8 has been updated to v2.3.8

Part of the update include changes to protocol setting

    "ssl_protocols setting was replaced by ssl_min_protocol. Now you only specify the minimum ssl protocol version Dovecot accepts, defaulting to TLSv1."

Modulo the limits enforced by crypto-policies simply setting "ssl_min_protocol = TLSv1.2" should give the desired result.

Comment 5 Michal Hlavinka 2020-10-20 14:36:52 UTC
Closing, based on comment #3, as it provides the requested functionality and it's the route upstream went.


Note You need to log in before you can comment on or make changes to this bug.