You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I interpret the logs correctly, the agent tries to use C:\ProgramData\OCS Inventory NG\Agent\X:\CA\domain-local-certificate.crt as the certificate and fails. If I instead copy the certificate to the C:\ProgramData\OCS Inventory NG\Agent folder and change the configuration to CaBundle=domain-local-certificate.crt (just the filename instead of full path), it works flawlessly.
I hope this isn't a duplicate, but the only issue regarding this I could find is #227 which was closed by the author.
Inventory log file ( optional )
I've uploaded sections from the logs I believe are relevant (sensitive data replaced with ***). If I should provide anything else, please tell me.
Your drive X doesn't look like a local path, this means it cannot be accessed by "Local System" of the service.
"X" is only mapped in your own user context.
You might try to change the service account and giver proper access to this user on your share. Also you would need to use the UNC path (\\<share>\CA\domain-local-certificate.crt), not the drive letter of course. I'm not sure if the agent can even handle UNC paths.
Thanks for taking the time to respond. Unfortunately I don't have the agent installed currently, but your suggestion looks like it might fix my problem.
I'll leave the issue open and report back once I get to test this.
General information
Operating system: Windows 10 22H2
OCS Inventory information
Windows agent version: 2.10.1.0
Problem's description
I'd like to run the Agent using a self-signed certificate on a different drive (in my case a network drive). Judging by the example at https://wiki.ocsinventory-ng.org/03.Basic-documentation/Setting-up-the-Windows-Agent-2.x-on-client-computers/, one should be able to just use the full path. The path I enter is
X:\CA\domain-local-certificate.crt
, but the agent doesn't run properly using that.If I interpret the logs correctly, the agent tries to use
C:\ProgramData\OCS Inventory NG\Agent\X:\CA\domain-local-certificate.crt
as the certificate and fails. If I instead copy the certificate to theC:\ProgramData\OCS Inventory NG\Agent
folder and change the configuration toCaBundle=domain-local-certificate.crt
(just the filename instead of full path), it works flawlessly.I hope this isn't a duplicate, but the only issue regarding this I could find is #227 which was closed by the author.
Inventory log file ( optional )
I've uploaded sections from the logs I believe are relevant (sensitive data replaced with
***
). If I should provide anything else, please tell me.Configuration that doesn't work:
The text was updated successfully, but these errors were encountered: