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

How to accept LXD server's self-signed certificate on a VPS with out browser? #77

Open
Febtw opened this issue Aug 21, 2023 · 2 comments

Comments

@Febtw
Copy link

Febtw commented Aug 21, 2023

I Installed lxd-dashboard from source in ubuntu 20.04 on my VPS.
I can creat container with lxd-dashboard. The container works fine, but "Console" and "Exec" page is not availiable. I got the warning

WebSocket Connection Error

There was an error connecting to your LXD server.
The LXD server may be using a self-signed certificate.
Visit https://127.0.0.1:8443/ to accept the certificate if not yet trusted.

image

How to trust the self-signed certificate on my VPS without desktop?

@Febtw
Copy link
Author

Febtw commented Aug 21, 2023

Sorry, I misunderstood the warning. I should add the public ip in lxd-dashboard, and trust the certificate via my local browser. But I still get problem, that I still can't access "Console" and "Exec" on Microsoft Edge, the browser don't accept the certificate. And on Kiwi Browser they are accessable, but there is security warning at the front of url bar.

Can I add an lxd server that uses nginx reverse proxy and enables ssl, to avoid certificate trust issues?
I tried, but failed, does it impossible?
image

Can "core. trust_ Password" be an alternative to LXD Client Certificate to complete trust?

@gasts
Copy link

gasts commented Jan 6, 2024

Hallo @Febtw,
I ran into the same issue as you today.
The solution for me was to change the host configuration from 127.0.0.1 to its real IPv4 address.
image

I hope this helps, and have a nice weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants