Quantcast
Channel: Ocsinventory Q&A - Recent questions without answers
Viewing all articles
Browse latest Browse all 4602

Failed to download Metadata

$
0
0

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?


Viewing all articles
Browse latest Browse all 4602

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>