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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: flags to accept self-signed certificates for an Uptime Kuma server #741

Open
adriiamontoto opened this issue May 4, 2024 · 3 comments
Labels
enhancement New feature or request next: design brainstorming The next step is to reflect upon the information and come up with a good design

Comments

@adriiamontoto
Copy link

Issue Description
When attempting to send HTTP(S) requests to Uptime Kuma, users may encounter the error message: "馃槥 Failed to send HTTP(S) request to Uptime Kuma: tls: failed to verify certificate: x509: certificate signed by unknown authority." This issue arises due to the certificate verification process during HTTPS communication.

Proposal
I suggest implementing a new flag or mechanism within Uptime Kuma that allows users to bypass the "certificate signed by unknown authority" error. This would provide flexibility to use self signed certificates for developing/home server environments.

Examples:
In uptime kuma there is an option to ignore TLS/SSL error for HTTPS websites.
image

@favonia
Copy link
Owner

favonia commented May 6, 2024

@adriiamontoto Thanks for the suggestion. I'm not sure how to recognize self-signed certificates without turning off other also useful checking in Go (and without re-implementing the HTTP stack)---I guess I need help. In the meanwhile, there are two possible ways to solve this, and the first one is highly recommended:

  1. Use https://letsencrypt.org/ to generate verifiable certificates for your server.
  2. Put your certificates at one of these locations. (The official Docker image combines and puts all the trusted certificates at /etc/ssl/certs/ca-certificates.crt.)

@adriiamontoto
Copy link
Author

Thank you for your quick response, I would go with option number 2!

@favonia
Copy link
Owner

favonia commented May 9, 2024

@adriiamontoto Let me know if you need help, and I still strongly recommend option 1. :-)

@favonia favonia added enhancement New feature or request next: design brainstorming The next step is to reflect upon the information and come up with a good design labels May 9, 2024
@favonia favonia changed the title Feature Request: Introduce Flag to Bypass "Certificate Signed by Unknown Authority" Error in Uptime Kuma Requests Feature request: flags to accept self-signed certificates for an Uptime Kuma server May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request next: design brainstorming The next step is to reflect upon the information and come up with a good design
Projects
None yet
Development

No branches or pull requests

2 participants