1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Added agent signature locking support.

This commit is contained in:
Ylian Saint-Hilaire 2022-05-29 12:35:27 -07:00
parent a799b9855a
commit c04666895c
3 changed files with 5 additions and 0 deletions

View file

@ -2870,6 +2870,9 @@ function CreateMeshCentralServer(config, args) {
var xdomain = (domain.dns == null) ? domain.id : '';
if (xdomain != '') xdomain += '/';
signUrl += '/' + xdomain;
// If requested, lock the agent to this server
if (obj.config.settings.agentsignlock) { signUrl += '?ServerID=' + obj.certificateOperations.getPublicKeyHash(obj.certificates.agent.cert).toUpperCase(); }
}
// Load agent information file. This includes the data & time of the agent.