Merci pour ta réponse. J'avais vu ce topic mais je n'arrive pas à exporter en PKCS12.
Si je fais :
openssl pkcs12 -export -in certificat.cer -inkey secretkey.asc -out export.p12
j'ai une erreur :
1 2 3
| Loading 'screen' into random state - done
unable to load private key
3800:error:0906D066:PEM routines:PEM_read_bio:bad end line:.\crypto\pem\pem_lib.c:797: |
Je pense que mes fichiers ne sont pas au format PEM (comment le vérifier ?).
Donc j'essaie de convertir le certificat au format PEM :
openssl pkcs12 -in certificat.cer -out certificat.pem nodes
j'ai l'erreur :
1 2 3 4
| 3436:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:.\crypto\asn1\tasn_dec.c:1320:
3436:error:0D06C03A:asn1 encoding routines:ASN1_D2I_EX_PRIMITIVE:nested asn1 error:.\crypto\asn1\tasn_dec.c:832:
3436:error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error:.\crypto\asn1\tasn_dec.c:752:Field
version, Type=PKCS12 |
Je suis sous Win XP, j'ai installé le package "redistribuable Microsoft Visual C++ 2008" et OpenSSL Light 1.0.
Partager