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>