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

REST endpoint to get Jetty‘s TLS certificate #4130

Open
florian-h05 opened this issue Mar 5, 2024 · 3 comments
Open

REST endpoint to get Jetty‘s TLS certificate #4130

florian-h05 opened this issue Mar 5, 2024 · 3 comments
Labels
enhancement An enhancement or new feature of the Core

Comments

@florian-h05
Copy link
Contributor

This is a feature request to add a REST endpoint, where Jetty‘s TLS certificate can be retrieved.

This would allow the UI to provide the user a simple and convenient way to download the TLS certificate in use by openHAB, which is most likely is a self-signed certificate, and have the user install it onto their system to use HTTPS for access to openHAB and get rid of the self-signed cert warnings of the browser.

@florian-h05 florian-h05 added the enhancement An enhancement or new feature of the Core label Mar 5, 2024
@openhab-bot
Copy link
Collaborator

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/feedback-on-installing-openhab-with-latest-versions/154238/26

@J-N-K
Copy link
Member

J-N-K commented Jul 13, 2024

cf. #2905

@ghys
Copy link
Member

ghys commented Jul 14, 2024

To be fair it's different to #2905 which allowed to change the certificate.

Retrieving it is actually pretty easy - for instance in Firefox:

image

And after clicking "View Certificate":

image

For Chromium-based browsers:

image

After clicking the "Certificate is not valid" option (which changes if it does become valid), there is an "Export" button:

image

You might even use the commandline:

$ openssl s_client -showcerts -connect <server>:8443

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature of the Core
Projects
None yet
Development

No branches or pull requests

4 participants