seknox / trasa

Zero Trust Service Access
https://www.trasa.io
Mozilla Public License 2.0
383 stars 68 forks source link

[PERF]remote error: tls: unknown certificate #278

Closed nanoponge closed 3 years ago

nanoponge commented 3 years ago

Describe the issue/idea: When I Open TRASA_HOST in my browser, "remote error: tls: unknown certificate" appeared on the terminal and the page couldn't be opened. How can I solve it? Thank you.

Scope of the issue/idea: dashboard server

bhrg3se commented 3 years ago

@nanoponge Are you hosting TRASA publicly (with autocert enabled) or in a private network?

nanoponge commented 3 years ago

@nanoponge Are you hosting TRASA publicly (with autocert enabled) or in a private network?

A private network. I set trasa.listenAddr = 127.0.0.1 , and trasa.autoCert=false

bhrg3se commented 3 years ago

TRASA will generate self signed certificate by default at /etc/trasa/certs/trasa-server.crt and /etc/trasa/certs/trasa-server.key. You can keep using this by ignoring the warning in browser. Or you can replace the certificate and key with your own certificate.

bhrg3se commented 3 years ago

What do you mean by "the page couldn't be opened" ? Is there a warning? Can you send me the screenshot?

nanoponge commented 3 years ago

What do you mean by "the page couldn't be opened" ? Is there a warning? Can you send me the screenshot?

1 2 I cant't open the TRASA dashboard.

bhrg3se commented 3 years ago

Have you tried it in private window?

nanoponge commented 3 years ago

Sorry,I can't understand what is ‘private window’ you mean. I run it all in localhost.

bhrg3se commented 3 years ago

I meant in incognito window

nanoponge commented 3 years ago

I install libssl-dev and re-install trasa, the login page can be opened.