mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 15:05:57 +03:00
[GH-ISSUE #1786] Linux agent not connecting after Certificate change #3057
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#3057
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @albindy on GitHub (Mar 5, 2024).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1786
Server Info (please complete the following information):
Installation Method:
Agent Info (please complete the following information):
Describe the bug
When changing the Certificate in nginx Linux Agents no longer connect.
No error in /opt/tacticalmesh/meshagent.log or /var/log/tacticalagent.log
Switching back to old Cert brings back the Agents online. Or reinstallation.
Result: Certificate Change is impossible for me. But I have to.
How can the change be done without reinstalling all Linux Agents.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Agents should accept other active and valid certificates without reinstallation.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
@dinger1986 commented on GitHub (Mar 5, 2024):
Are you using code signing? Or any custom config?
Works fine for me after every change of cert and a lot of others.
@albindy commented on GitHub (Mar 5, 2024):
Problems are meshcentral.conf and rmm.conf
When changing the Certificate there the Agents are no longer working.
Yes we use code signing.
"Code signing all agents"
No custom configs except the tried zertificate change.
@wh1te909 commented on GitHub (Mar 5, 2024):
so windows agents connect fine with new cert?
can you run the linux agent in debug mode and see if any errors related to certs? don't paste the full output here because it contains sensitive info:
@albindy commented on GitHub (Mar 5, 2024):
SyncMesh: Post "https://api.*********/api/v3/syncmesh/": tls: failed to verify certificate: x509: certificate signed by unknown authority
But the cert is valid and an official wildcard working on several other systems.
Additional info, it is a wildcard Cert.
(CN) Sectigo RSA Domain Validation Secure Server CA
(O) Sectigo Limited
Yes Windows connects fine.
@dinger1986 commented on GitHub (Mar 5, 2024):
Did you follow this and update all files? https://docs.tacticalrmm.com/unsupported_scripts/#using-purchased-ssl-certs-instead-of-lets-encrypt-wildcards
You don't need to do the nats regen.
You need to use the fullchain which you maybe haven't
@albindy commented on GitHub (Mar 5, 2024):
Yes, followed the guide. Did the nats regen and worked like a charme.
But! Good hint, I'm trying fullchain actual using cert.
@dinger1986 commented on GitHub (Mar 5, 2024):
So it worked after a nats regen and restarting all services?
@albindy commented on GitHub (Mar 5, 2024):
Nats worked before.
Just to complete the picture. Problem was using cert instead of fullchain.
But Nats works with cert only and frontend too.
For rmm and meshcentral fullchain is mandatory to work.
Maybe a hint in the docu would help. But, yes I know it is unsupported.
Thanks for clearing things up and helping lightning fast!
Thanks for the great support!
All up and running now!
@dinger1986 commented on GitHub (Mar 5, 2024):
Did you not see this?

Nats doesnt actually need a cert anymore, glad its working now
@albindy commented on GitHub (Mar 5, 2024):
OMG Sorry! Totally overlooked this note.
Thanks again!
Closing.
@dinger1986 commented on GitHub (Mar 5, 2024):
lol no worries!