New test agents (for WMIC issue) and code signing #6705
Replies: 6 comments 13 replies
-
I was able to figure this out this weekend. If anyone is wanting to try this it's pretty simple (assuming you already have your own code signing certificate and have MeshCentral configured to automatically sign your agents with this certificate). Obviously you'll want to back up the original agents first (I just backed up the entire 'agents' folder). Once you have the 'test' agents in place you just restart MeshCentral. It will then pull those agents from the \MeshCentral\node_modules\meshcentral\agents folder, sign them, and then place the signed agents in the \MeshCentral\meshcentral-data\signedagents folder. I would suggest setting your MeshCentral server to not automatically update the agents installed on your devices by adding/setting the "noAgentUpdate" setting to 1 . This line is entered under 'settings' and is formatted as "noAgentUpdate": 1, I added this line directly above the 'SelfUpdate' section just so I could find it easier (if you are using a config.json that has all the available commands already present then this line would be around the 'compression' settings). Once you are confident these test agents are working properly then you could set that 'noAgentUpdate" to 0 and then restart MeshCentral. It would then automatically update all the installed agents on all of your devices to these new versions. So keep that in mind and what ramifications that may have in your situation. |
Beta Was this translation helpful? Give feedback.
-
I have a Sectigo 3 year code signing cert (not an EV version, just standard). I bought it from ssl2buy.com almost 3 years ago. Back then it was very inexpensive- just $180 total for all three years ($60 per year). I will need to renew it this summer. But, unfortunately, the cost has DRAMATICALLY increased for code signing certs since then. The same 3 year cert is now almost 4x the cost- around $660 or so depending on reseller! Crazy. |
Beta Was this translation helpful? Give feedback.
-
I do see at least one provider has a code signing certificate for open source use. https://shop.certum.eu/open-source-code-signing.html |
Beta Was this translation helpful? Give feedback.
-
They do say this about the open source cert and the verification process: "website address of the ongoing Open Source project: |
Beta Was this translation helpful? Give feedback.
-
Thankfully I haven't had any issues with my code signing cert, mostly (I think) because I have the agents locked to my server and I'm the only one using the agents. That said, what you described in regards to the extra values is probably what causes Windows Smart Screen to still complain about it even though it is signed. That hasn't been an issue for me though as it will still install. Haven't had any antivirus apps (knock on wood) flag it since I've had it signed. That's really the main reason for signing it- to prevent AV apps from seeing it as malware. |
Beta Was this translation helpful? Give feedback.
-
FYI: Research on Stackoverflow regarding Certum lead to a 2025 price list created by one user for code signing certificates, since he had the same problem to find a cheap certificate: |
Beta Was this translation helpful? Give feedback.
-
I'd like to try the new test agents on one of my MeshCentral servers. I have my own code signing certificate and use the built-in agent code signing functionality of MeshCentral to sign my agents with that certificate. But it's been quite a while since I set that up and have looked at it (summer of 2022). Can anyone give me a refresher on the automatic signing of the agents and how I can implement that with the test agents? I know I was in contact with Ylian back then to get this done but can't recall if I followed one of his blog posts, YouTube videos, or if it was a Github discussion to get it working.
Beta Was this translation helpful? Give feedback.
All reactions