Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using proxy: Host marked as down because of "self-signed certificate" error even though "Ignore TLS/SSL error for HTTPS websites" is checked #5017

Open
1 task done
t-k365 opened this issue Aug 14, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@t-k365
Copy link

t-k365 commented Aug 14, 2024

πŸ“‘ I have found these related issues/pull requests

In #1380 a proposed solution by @louislam is to tick the checkbox "Ignore TLS/SSL error for HTTPS websites" which doesn't seem to work for me.

πŸ›‘οΈ Security Policy

Description

My only host with a self signed certificate is marked down with the reason "self-signed certificate" even though "Ignore TLS/SSL error for HTTPS websites" is checked for that website.

This is a new install and the first time I'm using Uptime Kuma

image
image

πŸ‘Ÿ Reproduction steps

Monitor website which uses a self signed certificate using a HTTP(s) monitor
Check "Ignore TLS/SSL error for HTTPS websites"
Observe host shows down even though it's up
Observe the message "self-signed certificate"

πŸ‘€ Expected behavior

Host shows up and ignores the certificate error

πŸ˜“ Actual Behavior

Host shows down because of "self signed certificate"

🐻 Uptime-Kuma Version

1.23.13

πŸ’» Operating System and Arch

Debian 12

🌐 Browser

Edge 127.0.2651.98

πŸ–₯️ Deployment Environment

  • Runtime: Docker 27.1.2
  • Database: sqlite/embedded
  • Filesystem used to store the database on: ext4
  • number of monitors: 24

πŸ“ Relevant log output

2024-08-14T14:51:32+02:00 [MONITOR] WARN: Monitor #16 'REDACTED-MONITOR-NAME': Failing: self-signed certificate | Interval: 60 seconds | Type: http | Down Count: 0 | Resend Interval: 0
@t-k365 t-k365 added the bug Something isn't working label Aug 14, 2024
@t-k365
Copy link
Author

t-k365 commented Aug 14, 2024

Weirdly enough if I test the same site on the uptime-kuma demo, it does infact ignore the self signed certificate and shows the host as up.

It might have to do with my actual installation being behind a http proxy.

@t-k365 t-k365 changed the title Host marked as down because of "self-signed certificate" error even though "Ignore TLS/SSL error for HTTPS websites" is checked When using proxy: Host marked as down because of "self-signed certificate" error even though "Ignore TLS/SSL error for HTTPS websites" is checked Aug 14, 2024
@t-k365
Copy link
Author

t-k365 commented Aug 14, 2024

Further testing seems to confirm this is an issue that's only happening when using a proxy.
Both the web demo and another instance of uptime-kuma, that doesn't use proxy, have no issues monitoring the site in question.

So the issue seems to be: When using a proxy, ignoring tls/ssl errors doesn't work properly. Host gets marked down with the error "self-signed", even though it's up.

I've also tried the last 2 versions, as I've seen there have been some proxy-related changes.

1.23.12 is very bad, all sites that use proxies get marked down using that version
1.23.11 is the same as 1.23.13. A site using proxy and having a self-signed cert gets marked down even if it's up and "ignore tls/ssl error" is checked.

@Bodo-von-Greif
Copy link

I had the same problem but the reason was a 401 unouthorized which i included in the accepted status codes.
I checked Ignore "TLS/SSL error for HTTPS websites" and use no-proxy.
Now i have no problems.
I get the Cert Exp. correct.

@cliouo
Copy link

cliouo commented Dec 25, 2024

Version: 1.23.16
The same issue arises when using an http proxy to monitor self-signed certificate https websites:
The expected situation is that when "Ignore TLS/SSL errors for HTTPS sites" is checked, it can ignore the normal monitoring of self-signed certificates for HTTPS sites
The reality is the indication of the "self-signed certificate" issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants