Project

General

Profile

Scénario #35122

init_sphynx Sphynx 2.8.1

Added by Olivier FEBWIN 10 months ago. Updated 7 months ago.

Status:
Terminé (Sprint)
Priority:
Normal
Assigned To:
Category:
-
Start date:
10/01/2022
Due date:
01/01/2024
% Done:

100%

Story points:
1.0
Remaining (hours):
0.00 hour
Velocity based estimate:
Release:
Release relationship:
Auto

Description

Bonjour,

Je souhaite ajouter un certificat PNCN sur un Sphynx 2.8.1 fraîchement installé mais j'obtiens une erreur "Problème de lecture du fichier : 'utf-8' codec can't decode byte 0x82 in position 1: invalid start byte" :

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- 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/agriates-amiens-14.ac-amiens.fr.p7b
Chemin complet de la clé privée : /tmp/priv-agriates-amiens-14.ac-amiens.fr.pem
Problème de lecture du fichier : 'utf-8' codec can't decode byte 0x82 in position 1: invalid start byte
Traceback (most recent call last):
  File "/usr/share/eole/sbin/init_sphynx", line 205, in populate_database
    credential = fh.read()
  File "/usr/lib/python3.8/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 1: invalid start byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/eole/sbin/init_sphynx", line 261, in <module>
    populate_database()
  File "/usr/share/eole/sbin/init_sphynx", line 208, in populate_database
    raise Exception()
Exception
root@sphynx-agriates2:~#

Merci pour votre aide

À vérifier avec l'utilisateur si nécessaire, ce problème était sensé être corrigé dans #33208.


Subtasks

Tâche #35195: ÉtudeFerméBenjamin Bohard

Tâche #35203: Rendre plus robuste le traitement des pkcs#7FerméBenjamin Bohard

Tâche #35204: Ajouter un test squashFerméBenjamin Bohard

Tâche #35208: TesterFerméLudwig Seys

Tâche #35223: Impossible d'importer un certificat émis par la PNCN sur Sphynx 2.8.1FerméBenjamin Bohard


Related issues

Related to Sphynx - Scénario #33208: Sphynx 2.8.1 - Ajout des certificats Terminé (Sprint) 09/30/2021 11/12/2021
Related to Distribution EOLE - Tâche #34141: gérer les fichiers au format DER ou PKCS7 Fermé 05/10/2022

History

#1 Updated by Gilles Grandgérard 10 months ago

  • Tracker changed from Demande to Scénario
  • Start date deleted (12/05/2022)

#2 Updated by Joël Cuissinat 10 months ago

  • Description updated (diff)

#3 Updated by Joël Cuissinat 10 months ago

  • Description updated (diff)

#4 Updated by Joël Cuissinat 10 months ago

  • Release set to Carnet de produit (Cadoles)
  • Story points set to 1.0

#5 Updated by Joël Cuissinat 10 months ago

#6 Updated by Laurent Gourvenec 9 months ago

  • Due date set to 01/01/2024
  • Assigned To set to Laurent Gourvenec
  • Target version set to Carnet Cadoles
  • Start date set to 10/01/2022

#7 Updated by Laurent Gourvenec 9 months ago

  • Related to Tâche #34141: gérer les fichiers au format DER ou PKCS7 added

#8 Updated by Gilles Grandgérard 8 months ago

  • Related to Tâche #35223: Impossible d'importer un certificat émis par la PNCN sur Sphynx 2.8.1 added

#9 Updated by Joël Cuissinat 7 months ago

  • Status changed from Nouveau to Terminé (Sprint)
  • Target version changed from Carnet Cadoles to Livraison Cadoles 31/03/2023
  • Release changed from Carnet de produit (Cadoles) to EOLE 2.8.0

Also available in: Atom PDF