[GH-ISSUE #359] Missing certificate bundle in Docker image #277

Closed
opened 2026-05-07 00:22:34 +02:00 by BreizhHardware · 2 comments

Originally created by @tfheen on GitHub (Jul 9, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/359

When publishing a notification to my server running the 1.27.2 Docker image, I get an error in the log: Unable to publish poll request: Post "https://ntfy.sh/f9a14d6123f[…]": x509: certificate signed by unknown authority. I think the CA bundle is missing.

Originally created by @tfheen on GitHub (Jul 9, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/359 When publishing a notification to my server running the 1.27.2 Docker image, I get an error in the log: `Unable to publish poll request: Post "https://ntfy.sh/f9a14d6123f[…]": x509: certificate signed by unknown authority`. I think the CA bundle is missing.
BreizhHardware 2026-05-07 00:22:34 +02:00
Author
Owner

@binwiederhier commented on GitHub (Oct 1, 2022):

My apologies for the delay, but #387 :-D

I tried this and I cannot reproduce it:

ocker run \
  -p 2080:80 \
  -it \
  binwiederhier/ntfy \
    --debug \
    serve \
    --base-url http://127.0.0.1 \
    --upstream-base-url https://ntfy.sh

2022/10/01 20:10:21 INFO Listening on :80[http], ntfy 1.28.0, log level is DEBUG
2022/10/01 20:10:23 DEBUG 172.17.0.1 HTTP POST /mytopic Dispatching request
2022/10/01 20:10:23 DEBUG 172.17.0.1/mytopic/GVkLPnJ7eJoj Received message: event=poll_request, body=11 byte(s), delayed=false, firebase=true, cache=false, up=false, email=
2022/10/01 20:10:23 DEBUG 172.17.0.1/mytopic/GVkLPnJ7eJoj Publishing poll request to https://ntfy.sh/2aa077f08d5bb00f192c983fcefeb56ce7feee97059c1b0f2ed26dd916913aa5
curl -d hi -H "X-Poll-ID: abc" localhost:2080/mytopic
{"id":"GVkLPnJ7eJoj","time":1664655023,"event":"poll_request","topic":"mytopic","message":"New message","poll_id":"abc"}

Maybe the newer Alpine image contains updated certs.

<!-- gh-comment-id:1264469884 --> @binwiederhier commented on GitHub (Oct 1, 2022): My apologies for the delay, but #387 :-D I tried this and I cannot reproduce it: ``` ocker run \ -p 2080:80 \ -it \ binwiederhier/ntfy \ --debug \ serve \ --base-url http://127.0.0.1 \ --upstream-base-url https://ntfy.sh 2022/10/01 20:10:21 INFO Listening on :80[http], ntfy 1.28.0, log level is DEBUG 2022/10/01 20:10:23 DEBUG 172.17.0.1 HTTP POST /mytopic Dispatching request 2022/10/01 20:10:23 DEBUG 172.17.0.1/mytopic/GVkLPnJ7eJoj Received message: event=poll_request, body=11 byte(s), delayed=false, firebase=true, cache=false, up=false, email= 2022/10/01 20:10:23 DEBUG 172.17.0.1/mytopic/GVkLPnJ7eJoj Publishing poll request to https://ntfy.sh/2aa077f08d5bb00f192c983fcefeb56ce7feee97059c1b0f2ed26dd916913aa5 ``` ``` curl -d hi -H "X-Poll-ID: abc" localhost:2080/mytopic {"id":"GVkLPnJ7eJoj","time":1664655023,"event":"poll_request","topic":"mytopic","message":"New message","poll_id":"abc"} ``` Maybe the newer Alpine image contains updated certs.
Author
Owner

@binwiederhier commented on GitHub (Oct 1, 2022):

I'm going to close this for now, but I'm happy to re-open at any time.

<!-- gh-comment-id:1264470230 --> @binwiederhier commented on GitHub (Oct 1, 2022): I'm going to close this for now, but I'm happy to re-open at any time.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#277
No description provided.