defining path to ssl cert and ssl key and dhparam files does not work #932

Closed
opened 2026-10-05 04:53:50 +02:00 by adam · 1 comment
Owner

I have a Letsencrypt wildcard certificate and private key.

This works fine:

I generated znc.pem , used it with znc, I am able to connect to it successfully over ssl

$ openssl dhparam -out dhparam.pem 2048
$ cat /var/lib/docker/volumes/letsencrypt/_data/live/domain.com/{privkey,fullchain}.pem dh2048.pem > znc.pem

If I instead define the following in znc.conf and don't use znc.pem , I get a cert error when connecting over ssl ( I mounted dhparam to /dhparam.pem in the znc container )

SSLCertFile = /var/lib/docker/volumes/letsencrypt/_data/live/domain.com/fullchain.pem
SSLKeyFile = /var/lib/docker/volumes/letsencrypt/_data/live/domain.com/privkey.pem
SSLDHParamFile = /dhparam.pem
I have a Letsencrypt wildcard certificate and private key. This works fine: I generated znc.pem , used it with znc, I am able to connect to it successfully over ssl ``` $ openssl dhparam -out dhparam.pem 2048 $ cat /var/lib/docker/volumes/letsencrypt/_data/live/domain.com/{privkey,fullchain}.pem dh2048.pem > znc.pem ``` If I instead define the following in znc.conf and don't use znc.pem , I get a cert error when connecting over ssl ( I mounted dhparam to /dhparam.pem in the znc container ) ``` SSLCertFile = /var/lib/docker/volumes/letsencrypt/_data/live/domain.com/fullchain.pem SSLKeyFile = /var/lib/docker/volumes/letsencrypt/_data/live/domain.com/privkey.pem SSLDHParamFile = /dhparam.pem ``` <!-- github-sync-id:530864820 -->
adam closed this issue 2026-10-05 04:53:50 +02:00
Author
Owner

What cert error is that?
Show znc -D
What version?

пн, 2 дек. 2019 г. в 03:24, danhimalplanet notifications@github.com:

I have a Letsencrypt wildcard certificate and private key.

This works fine:

I generated znc.pem , used it with znc, I am able to connect to it
successfully over ssl

$ openssl dhparam -out dhparam.pem 2048
$ cat /var/lib/docker/volumes/letsencrypt/_data/live/domain.com/{privkey,fullchain}.pem http://domain.com/%7Bprivkey,fullchain%7D.pem dh2048.pem > znc.pem

If I instead define the following in znc.conf and don't use znc.pem , I
get a cert error when connecting over ssl ( I mounted dhparam to
/dhparam.pem in the znc container )

SSLCertFile = /var/lib/docker/volumes/letsencrypt/_data/live/domain.com/fullchain.pem
SSLKeyFile = /var/lib/docker/volumes/letsencrypt/_data/live/domain.com/privkey.pem
SSLDHParamFile = /dhparam.pem

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/znc/znc/issues/1694?email_source=notifications&email_token=AACPLZDRHKELFKGCUMYRS7LQWR5XJA5CNFSM4JTPTI5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H5ELK2A,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACPLZFFFXJCGQ7DG25PC53QWR5XJANCNFSM4JTPTI5A
.

What cert error is that? Show znc -D What version? пн, 2 дек. 2019 г. в 03:24, danhimalplanet <notifications@github.com>: > I have a Letsencrypt wildcard certificate and private key. > > This works fine: > > I generated znc.pem , used it with znc, I am able to connect to it > successfully over ssl > > $ openssl dhparam -out dhparam.pem 2048 > $ cat /var/lib/docker/volumes/letsencrypt/_data/live/domain.com/{privkey,fullchain}.pem <http://domain.com/%7Bprivkey,fullchain%7D.pem> dh2048.pem > znc.pem > > If I instead define the following in znc.conf and don't use znc.pem , I > get a cert error when connecting over ssl ( I mounted dhparam to > /dhparam.pem in the znc container ) > > SSLCertFile = /var/lib/docker/volumes/letsencrypt/_data/live/domain.com/fullchain.pem > SSLKeyFile = /var/lib/docker/volumes/letsencrypt/_data/live/domain.com/privkey.pem > SSLDHParamFile = /dhparam.pem > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/znc/znc/issues/1694?email_source=notifications&email_token=AACPLZDRHKELFKGCUMYRS7LQWR5XJA5CNFSM4JTPTI5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H5ELK2A>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AACPLZFFFXJCGQ7DG25PC53QWR5XJANCNFSM4JTPTI5A> > . > <!-- github-comment-id:560332229 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#932