Ylianst / MeshCentral

A complete web-based remote monitoring and management web site. Once setup you can install agents and perform remote desktop session to devices on the local network or over the Internet.
https://meshcentral.com
Apache License 2.0
4.07k stars 546 forks source link

when start meshcentral with --cert the agent cannot connect with server #4601

Open AbdalazizAbdallah opened 1 year ago

AbdalazizAbdallah commented 1 year ago

hi guys when starting meshcentral server with --cert arg the agent cannot connect with him as well as the certificate when installed it not affect the browser and is still not secure also, customize the page by config.json not show in the page

steps I wrote in my terminal

npm install meshcentral node node_modules/meshcentral --cert localserver.gp.com

result

MeshCentral HTTP redirection server running on port 81. WARNING: Invalid Let's Encrypt names, unable to resolve: localserver.gp.com MeshCentral v1.0.85, LAN mode. Failed to load web certificate at: "https://localserver.gp.com:443/", host: "localserver.gp.com" MeshCentral HTTPS server running on port 444.

my config.json

{ "$schema": "http://info.meshcentral.com/downloads/meshcentral-config-schema.json", "comment1": "This is a simple configuration file, all values and sections that start with underscore () are ignored. Edit a section and remove the in front of the name. Refer to the user's guide for details.", "comment2": "See node_modules/meshcentral/sample-config-advanced.json for a more advanced example.", "settings": { "cert": "localserver.gp.com", "WANonly": true, "LANonly": true, "_sessionKey": "MyReallySecretPassword1", "port": 443, "_aliasPort": 443, "_redirPort": 80, "_redirAliasPort": 80 }, "domains": { "": { "title": "MyServer", "title2": "Servername", "minify": true, "_newAccounts": true, "_userNameIsEmail": true, "certUrl": "https://localserver.gp.com:443/" } }, "letsencrypt": { "comment": "Requires NodeJS 8.x or better, Go to https://letsdebug.net/ first before trying Let's Encrypt.", "email": "abdalazizabdalluh3@gmail.com", "names": "localserver.gp.com", "production": true } }

AbdalazizAbdallah commented 1 year ago

image

when use link agent

AbdalazizAbdallah commented 1 year ago

image

customize page not affect and localserver.gp.com when typed it not show dashboard but write localhost

AbdalazizAbdallah commented 1 year ago

Screenshot_20221005-095842_MeshCentral Agent.jpg

also try again in same step and try to use Moblie agent but still same error