« Openssl : :error:0308010C: » : différence entre les versions

De www.yakakliker.org
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 6 : Ligne 6 :
</syntaxhighlight>
</syntaxhighlight>


* Ce message apparaît lors d'une tentative d'extraction de certificats depuis un .pfx vers un .cert ou .key avec ces commandes
* Ce message apparaît lors d'une tentative d'extraction de certificats depuis un '''.pfx''' vers un '''.cert''' ou '''.key''' avec ces commandes


<code>openssl pkcs12 -in certifcat.pfx -clcerts -nokeys -out certificat.crt</code>
<code>openssl pkcs12 -in certifcat.pfx -clcerts -nokeys -out certificat.crt</code>
Ligne 14 : Ligne 14 :
== Solution ==
== Solution ==


* Rajouter l'option -legacy à la fin de la commande
* Rajouter l'option '''''-legacy''''' à la fin de la commande


<code>openssl pkcs12 -in certifcat.pfx -clcerts -nokeys -out certificat.crt -legacy</code>
<code>openssl pkcs12 -in certifcat.pfx -clcerts -nokeys -out certificat.crt -legacy</code>

Version du 26 mars 2025 à 11:50

Message d'erreur

Error outputting keys and certificates
80BBB5DB577F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:../crypto/evp/evp_fetch.c:386:Global default library context, Algorithm (RC2-40-CBC : 0), Properties ()
  • Ce message apparaît lors d'une tentative d'extraction de certificats depuis un .pfx vers un .cert ou .key avec ces commandes

openssl pkcs12 -in certifcat.pfx -clcerts -nokeys -out certificat.crt

openssl pkcs12 -in certificat.pfx -nocerts -out certificat.key -nodes

Solution

  • Rajouter l'option -legacy à la fin de la commande

openssl pkcs12 -in certifcat.pfx -clcerts -nokeys -out certificat.crt -legacy

openssl pkcs12 -in certificat.pfx -nocerts -out certificat.key -nodes -legacy

Liens

https://github.com/openssl/openssl/discussions/23089

https://stackoverflow.com/questions/74474575/openssl-error-outputting-keys-and-certificates-94640000error0308010c

compteur web gratuit sans pub