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.12.3 available

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

unable to connect to server using ssl

i am getting below error while agent  trying to reach server using SSL.

COM SERVER => Initializing cURL library for sendRequest

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 HTTP Post request to URL <https:///192.168.23.241/ocsinventory>

WARNING *** COM SERVER => Failed to send HTTP Post request <SSL peer certificate or SSH remote key was not OK>

COM SERVER => Cleaning cURL library

ERROR *** AGENT => Failed to send Prolog <SSL peer certificate or SSH remote key was not OK>

Agent Settings

[OCS Inventory Agent]

ComProvider=ComHTTP.dll

Debug=1

Local=

NoSoftware=0

HKCU=0

NoTAG=0

IpDisc=

WMI_FLAG_MODE=COMPLETE

DEFAULT_USER_DOMAIN=

[HTTP]

Server=https:///192.168.23.241/ocsinventory

SSL=1

CaBundle=cacert.pem

AuthRequired=0

User=ocs

Pwd=ocs

ProxyType=0

Proxy=

ProxyPort=0

ProxyAuthRequired=0

ProxyUser=

ProxyPwd=

[OCS Inventory Service]

PROLOG_FREQ=4

INVENTORY_ON_STARTUP=1

OLD_PROLOG_FREQ=4

TTO_WAIT=4260

Apache settings :

<VirtualHost *:443>

        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/html

        ErrorLog ${APACHE_LOG_DIR}/error.log

        CustomLog ${APACHE_LOG_DIR}/access.log combined

        SSLEngine on

        SSLCertificateFile      /etc/ssl/certs/ocsng.pem

        SSLCertificateKeyFile /etc/ssl/private/ocsng.key

 <Directory "/var/www/html">

      AuthType Basic

      AuthName ocs

      AuthUserFile /etc/apache2/.htpasswd

      Require valid-user

  </Directory>

</VirtualHost>

in OCS Inventory NG agent for Windows by (120 points)

Please log in or register to answer this question.

 
Powered by Question2Answer
...