Projet

Général

Profil

Scénario #33827

Mis à jour par Joël Cuissinat il y a presque 2 ans

L'importation d'un certificat dans ARV n'est plus possible en 2.8.1 :
<pre>
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
</pre>

Reproductible en suivant le test squash "SP-T05-001 - Importer un certificat PKCS12":https://dev-eole.ac-dijon.fr/squash/executions/12971
L'erreur se produit au pas n°13...

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

Retour