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.

Failed to download Metadata

I have been trying for a while to configure the application deployment. However I have this error message on the client:

ERROR *** DOWNLOAD => Failed to download Metadata file <https://192.168.100.18/download/1565095963/info> to <C: \ ProgramData \ OCS Inventory NG \ Agent \ download \ 1565095963 \ info>

After verification, my package is in /var/lib/ocsinventory-reports/download/ and i can see it on https site.

My cert was created with FQDN and not with IP with this script : 

#!/bin/bash

#netoyage

rm /root/ca.*

rm /root/servwiki.*

rm /etc/ssl/private/ca.key

rm /etc/ssl/private/servwiki.crt

rm /etc/ssl/certs/ca.crt

rm /etc/ssl/certs/servwiki.crt

#Required

domain="una14.local"

commonname="OCS"

#Change to your company details

country=FR

state=Normandie

locality=Caen

organization=UNAduCalvados

organizationalunit=FR

email=*Emails are not allowed*

if [ -z "$domain" ]

then

    echo "Argument not present."

    echo "Useage $0 [common name]"

    exit 99

fi

echo "Creation de la cle serveur"

#Generate a key

openssl genrsa 2048 > /root/servwiki.key

echo "---------------------------"

echo "-----Below is your Key-----"

echo "---------------------------"

cat /root/servwiki.key

#Create the request

echo "Creation de la demande de certificat"

openssl req -new -key /root/servwiki.key  -subj "/C=$country/ST=$state/L=$locality/O=$organization/OU=$organizationalunit/CN=$commonname/emailAddress=$email" > /root/servwiki.csr

echo "---------------------------"

echo "-----Affichage du CSR -----"

echo "---------------------------"

cat /root/servwiki.csr

echo "Creation de la cle CA"

openssl genrsa -des3 2048 > /root/ca.key

echo "---------------------------"

echo "-----Affichage de cle -----"

echo "---------------------------"

cat /root/ca.key

echo "auto signature CA"

openssl req -new -x509 -days 3650 -key /root/ca.key -subj "/C=FR/ST=Normandie/L=$locality/O=$organization/OU=UNA14/CN=UNA14/emailAddress=$email" > /root/ca.crt

echo "Signature de la cle serveur par CA"

openssl x509 -req -in /root/servwiki.csr -out /root/servwiki.crt -CA /root/ca.crt -CAkey /root/ca.key -CAcreateserial -CAserial /root/ca.srl

echo "---------------------------"

echo "-----Affichage du crt -----"

echo "---------------------------"

cat /root/servwiki.crt

echo "Copie des fichier dans /etc/ssl/certs/ /etc/ssl/private"

mv /root/ca.key /etc/ssl/private

echo "25%"

mv /root/ca.crt /etc/ssl/certs

echo "50%"

mv /root/servwiki.key /etc/ssl/private

echo "75%"

mv /root/servwiki.crt /etc/ssl/certs

echo "100%"

echo "---------------------------------"

echo "----------Fin du Script----------"

echo "---------------------------------"


Ideas to unblock me?

in OCS Inventory NG agent for Windows by (360 points)
edited by

2 Answers

0 votes
Please ? i realy neeed help because i son't understand why it don't work
by (360 points)
0 votes
Bonjour,

Sans information sur ton install/config, c'est pas évident, je dirais peut-être ta config apache et/ou ssl a vérifier.

Le plus simple est de voir un tuto ici : https://miloszengel.com/ocs-inventory-ng-2-5-install-guide-on-debian-stretch-with-ssl-and-deployment/

Cordialement.

Cordialement.
by (5.7k points)
 
Powered by Question2Answer
...