SGAgent strict connections

Search another article?

SGAgent strict connections

You are here:
< Back

SGBox custom certificate

Starting from version 3.7. it is possible configure the SGAgent to check the SGBox/Collector certificate before sending information.


  • SGAgent version 3.7
  • SGBox must have a valid certificate. Look this section.

After installed go in the installation directory. Default path is C:\Program Files(x86)\SGBox Agent\
Open the file SGBoxTask.exe.config as Administrator with a text editor like Notepad.

add the following entry after the connection strings: key=”IgnoreCertificate” value=”False”

Save the configuration and restart the SGBoxTask Service service.

Check the file SGBoxTaskLog.txt to verify that everything is ok.
Here an example of error:

220330 14.51.05 0000008 *** Error The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. System at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at SGBoxTask.Utils.Internet.GenerateCommandRequest(String uri, String ApplicationId, String login, String password)

Here an example when it works:

220330 14.54.20 0000004 Starting ServiceSGBoxTask
220330 14.54.20 0000006 Starting Main
220330 14.54.20 0000006 Params 0A002700000D
220330 14.54.20 0000006 SleepTime 10 msec
220330 14.54.20 0000006 RandomStartTimer 2 sec RandomMinStartTimer 1
220330 14.54.20 0000006 Enable TLS 1, 1.1, 1.2
220330 14.54.20 0000006 Starting StartSendPacket
220330 14.54.20 0000006 Starting StartGetCommand