Projet

Général

Profil

Tâche #35223

Mis à jour par Joël Cuissinat il y a environ un an

Je viens de tester après l'installation des paquets arv (2.8.1-11), eole-sphynx (2.8.1-2), eole-sphynx-all (2.8.1-2), eole-sphynx-module (2.8.1-2), python-arv (2.8.1-11) ça ne fonctionne toujours pas. J'obtiens cette fois l'erreur suivante en tentant d'importer le certificat via l'ARV :

(voir PJ)

et sensiblement la même chose en tentant d'importer le certificat via le script init_sphynx :

<pre>
root@sphynx-agriates2:~# init_sphynx
Une base ARV existe déjà. Écraser la base actuelle ? [oui/non]
[non] : oui
* Génération du certificat de la CA
Entrez le login Zéphir : ofebwin
Entrez le mot de passe Zéphir :
1- 0800069R--Concentrateur VPN zone AGRIATES - Id Zéphir : 3 - Version : 2.8.1
2- 0800069R--Concentrateur VPN zone AGRIATES 2.7.2 - Id Zéphir : 5 - Version : 2.7.2
3- ajouter un serveur Sphynx non enregistré
Choisissez le serveur Sphynx à ajouter (1 par défaut) :
Serveur 0800069R--Concentrateur VPN zone AGRIATES - Id Zéphir : 3 - Version : 2.8.1 ajouté
* Certificat /var/lib/arv/CA/certs/sphynx.pem généré
Voulez-vous ajouter un certificat pour le serveur sphynx
(les fichiers clé et certificat doivent être accessibles) ? [oui/non]
[non] : oui
Ajout du certificat du serveur sphynx...
Chemin complet du fichier pkcs7 : /tmp/nOK_agriates-amiens-14.ac-amiens.fr.p7b
Chemin complet de la clé privée : /tmp/priv-agriates-amiens-14.ac-amiens.fr.pem
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/arv/lib/util.py", line 420, in split_pkcs7
chain = cert_chain.get_chain_by_subject(cert_chain.get_leaf_certificate())
File "/usr/lib/python3/dist-packages/arv/lib/util.py", line 376, in get_chain_by_subject
if self.certs[self.signed_by[subject]]:
KeyError: 'AC EN Scolarite et Formation'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/share/eole/sbin/init_sphynx", line 262, in <module>
populate_database()
File "/usr/share/eole/sbin/init_sphynx", line 214, in populate_database
ca_cred, cred = split_pkcs7(credential)
File "/usr/lib/python3/dist-packages/arv/lib/util.py", line 53, in newFunc
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/arv/lib/util.py", line 432, in split_pkcs7
raise Exception('Cannot read pkcs7: {0}'.format(e))
Exception: Cannot read pkcs7: 'AC EN Scolarite et Formation'
</pre>

Retour