Project

General

Profile

Scénario #33827

ARV 2.8.1 : Impossible d'importer un certificat

Added by Fabrice Barconnière 10 months ago. Updated 6 months ago.

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

100%

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

Description

L'importation d'un certificat dans ARV n'est plus possible en 2.8.1 :

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/arv/web/page.py", line 86, in render
    ret = self.render_page(request)
  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/web/childpage.py", line 368, in render_page
    cred.mod_keys(public_key, password, private_key)
  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/db/edge.py", line 464, in mod_keys
    self.node.import_credential(private_key, credential, passwd,
  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/db/node.py", line 274, in import_credential
    cert_type, certificate = der_to_pem(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 338, in der_to_pem
    raise Exception(f'unable to convert certificat in PEM format: {process.stdout.read().decode()}, {process.stderr.read().decode()}')
Exception: unable to convert certificat in PEM format: , unable to load certificate
139682512061760:error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag:../crypto/asn1/tasn_dec.c:1149:
139682512061760:error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error:../crypto/asn1/tasn_dec.c:309:Type=X509

Reproductible en suivant le test squash SP-T05-001 - Importer un certificat PKCS12
L'erreur se produit au pas n°13...

Ce même test est passant avec un Sphynx 2.8.0.


Subtasks

Tâche #34141: gérer les fichiers au format DER ou PKCS7FerméEmmanuel GARETTE

Tâche #34142: repasser le test squashFerméLaurent Gourvenec

History

#1 Updated by Joël Cuissinat 7 months ago

  • Tracker changed from Demande to Scénario
  • Description updated (diff)
  • Start date deleted (02/15/2022)
  • Release set to Carnet de produit (Cadoles)
  • Story points set to 1.0

#2 Updated by Joël Cuissinat 7 months ago

  • Description updated (diff)

#3 Updated by Celine Rappeneau 7 months ago

  • Due date set to 06/03/2022
  • Target version set to Prestation Cadoles MEN 2022 19-22
  • Start date set to 05/09/2022

#4 Updated by Emmanuel GARETTE 7 months ago

  • Assigned To set to Alain Guichard

#5 Updated by Emmanuel GARETTE 7 months ago

  • Assigned To changed from Alain Guichard to Emmanuel GARETTE

#6 Updated by Joël Cuissinat 6 months ago

  • Status changed from Nouveau to Terminé (Sprint)
  • Release changed from Carnet de produit (Cadoles) to EOLE 2.8.1

Also available in: Atom PDF