Bug 1677366 - znc having cipher issues with Let's Encrypt certs
Summary: znc having cipher issues with Let's Encrypt certs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: znc
Version: epel7
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Nick Bebout
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1677930 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-14 16:04 UTC by Scott Bishop
Modified: 2019-02-18 14:38 UTC (History)
4 users (show)

Fixed In Version: znc-1.7.2-2.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-16 02:26:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Scott Bishop 2019-02-14 16:04:55 UTC
Description of problem:

Starting with 1.7.2-1.el7, ZNC will not negotiate SSL/TLS sessions in either IRC or web mode. This has been tested with Let's Encrypt certs; I do not have other certs to test with. ZNC was working with the certs prior to the update.

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

1.7.2-1.el7

How reproducible:

Simply start or restart ZNC. znc -D shows the actual error; starting it normally via systemctl does not.

Actual results:

Sample output from "znc -D"

[2019-02-14 15:40:10.178267] Connecting user/network [drkbish/ArchiveIRC]
[2019-02-14 15:40:10.178457] TDNS: initiating resolving of [irc.editingarchive.com] and bindhost []
[2019-02-14 15:40:10.181035] TDNS: IRC::drkbish::ArchiveIRC, connecting to [159.203.149.241] using bindhost []
[2019-02-14 15:40:10.187280] src/Csocket.cpp:1607 Could not assign cipher [PROFILE=SYSTEM]
[2019-02-14 15:40:10.187962] IRC::drkbish::ArchiveIRC == SockError(115 Operation now in progress)

The one IRC server I do not connect to via SSL does connect normally. Incoming connections to ZNC (either irc or https) do not work. On HexChat, the error is:

--- Connection failed. Error: SSL handshake timed out

Expected results:

The bouncer should connect to IRC servers and allow incoming connections normally.

Additional info:

certbot was updated as well, but none of my other services using Let's Encrypt certificates (Apache, Postfix, and Dovecot) are experiencing issues, even after a restart.

Comment 1 Orion Poplawski 2019-02-14 16:41:15 UTC
I've got the same issue with a self-signed cert:

[2019-02-14 09:35:27.594127] src/Csocket.cpp:1607 Could not assign cipher [PROFILE=SYSTEM]

Comment 2 Jason Tibbitts 2019-02-14 17:02:59 UTC
Interesting; this does not appear to be an issue on F29, or at least my F29 server appears to be functioning fine without issues (or I wouldn't have pushed the update).  I do not have an EL7 server to test.

Comment 3 Nick Bebout 2019-02-14 17:35:40 UTC
It appears to be an issue with the system crypto policies patch.  Can you please test https://koji.fedoraproject.org/koji/taskinfo?taskID=32811323 and see if it fixes it?  You can download the builds at the bottom of that page.

Comment 4 Orion Poplawski 2019-02-14 17:39:49 UTC
Works for me.  Thanks!

Comment 5 Scott Bishop 2019-02-14 17:52:08 UTC
Confirmed - the given builds correct the issue and connections appear to be working properly.

Comment 6 Fedora Update System 2019-02-14 19:01:29 UTC
znc-1.7.2-2.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-3a504782e9

Comment 7 Nick Bebout 2019-02-14 22:50:19 UTC
Please give https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-3a504782e9 karma in bodhi so that I can get it pushed to stable ASAP.

Comment 8 Fedora Update System 2019-02-15 03:07:56 UTC
znc-1.7.2-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-3a504782e9

Comment 9 Christian Pfeiffer 2019-02-15 11:13:09 UTC
(In reply to Nick Bebout from comment #3)
> It appears to be an issue with the system crypto policies patch.  Can you
> please test https://koji.fedoraproject.org/koji/taskinfo?taskID=32811323 and
> see if it fixes it?  You can download the builds at the bottom of that page.

RHEL 7 was forked from Fedora 19, while the system-wide crypto policies were introduced in Fedora 21. Thus, RHEL 7 simply does not have this feature yet, meaning PROFILE=SYSTEM is meaningless to the system OpenSSL library. RHEL 8 on the other hand does ship it, see https://access.redhat.com/articles/3666211 .

I can also confirm znc-1.7.2-2.el7 fixes the issue for me.

Comment 10 Fedora Update System 2019-02-16 02:26:35 UTC
znc-1.7.2-2.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Nick Bebout 2019-02-18 14:38:56 UTC
*** Bug 1677930 has been marked as a duplicate of this bug. ***


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