Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.5 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Agent failed at Download: SSL connect error

Hello,

my Agent 2.1.1.1 can't download the packages from my server (2.5.0).

The server log is not reporting any errors, but the client shows:

AGENT =>  Communication Server ask for Package Download
    DOWNLOAD => Package history file successfully cleaned for duplicate IDs
    DOWNLOAD => Metadata file <info> for package <1408603411> is located at <https://brain.xxx .de/download/1408603411/info>
    COM SERVER => Initializing cURL library for getFile
    COM SERVER => Using cURL without server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Enabling cURL SSL server validation support using CA Bundle <cacert.pem>
    COM SERVER => Sending fileGet request to URL <https://brain.xxx.de/download/1408603411/info>
    WARNING *** COM SERVER => Failed to send HTTP Get request <SSL connect error>
    COM SERVER => Cleaning cURL library
ERROR *** DOWNLOAD => Failed to download Metadata file <https://brain.xxx.de/download/1408603411/info> to <C:\ProgramData\OCS Inventory NG\Agent\download\1408603411\info> 

I checked the ssl cert:

brain# openssl x509 -text -noout -in brain.crt
Certificate:
    Data:
        Version: 1 (0x0)
        Serial Number:
            91:d4:a1:a8:17:f3:f1:df
    Signature Algorithm: sha1WithRSAEncryption
        Issuer: C = DE, ST = Bavaria, L = xxx, O = xxx, OU = brain.xxx.de, CN = brain.xxx.de, emailAddress = *Emails are not allowed*
        Validity
            Not Before: Apr 19 12:33:17 2011 GMT
            Not After : Apr 16 12:33:17 2021 GMT
        Subject: C = DE, ST = Bavaria, L = xxx, O = xxx, OU = brain.xxx.de, CN = brain.xxx.de, emailAddress = *Emails are not allowed*

So the CN from the certificate matched with the server string.

Any hints to figurte out the problem?

Regards

Daniel

asked in OCS Inventory NG server for Unix by (420 points)

4 Answers

0 votes
How is curl called at the client? Which parameters?

Can I call curl like the agent is doing this?

Regards

Daniel
answered by (420 points)
0 votes
Tried a "curl -v --capath c:\temp --cacert "C:\ProgramData\OCS Inventory NG\Agent\cacert.pem" https://ocs-server.mycompany.be", works like a charm. So I think there is no problem wit the certificate itself.
answered by (420 points)
0 votes
Added some debug from libcurl to the agent source, but I can't compile the agent on win10 with Visual Studio 2017...

soooo anoying
answered ago by (420 points)
0 votes
Has anybody built the agent on windows 10 with Visual Studio 2017 Community?
answered ago by (420 points)
 
Powered by Question2Answer
...