« Openssl : :error:0308010C: » : différence entre les versions
De www.yakakliker.org
Aucun résumé des modifications  | 
				Aucun résumé des modifications  | 
				||
| (3 versions intermédiaires par le même utilisateur non affichées) | |||
| 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>  | ||
<code>openssl pkcs12 -in certificat.pfx -nocerts -out certificat.key -nodes</code>  | <code>openssl pkcs12 -in certificat.pfx -nocerts -out certificat.key -nodes</code>  | ||
<code>openssl pkcs12 -in certificat.pfx -out certificat.pem -nodes</code>  | |||
== 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>  | ||
<code>openssl pkcs12 -in certificat.pfx -nocerts -out certificat.key -nodes -legacy</code>  | <code>openssl pkcs12 -in certificat.pfx -nocerts -out certificat.key -nodes -legacy</code>  | ||
<code>openssl pkcs12 -in certificat.pfx -out certificat.pem -nodes -legacy</code>  | |||
== Liens ==  | == Liens ==  | ||
https://stackoverflow.com/questions/74474575/openssl-error-outputting-keys-and-certificates-94640000error0308010c  | * https://github.com/openssl/openssl/discussions/23089  | ||
* https://stackoverflow.com/questions/74474575/openssl-error-outputting-keys-and-certificates-94640000error0308010c  | |||
* https://www.bldwebagency.fr/comment-convertir-un-fichier-pfx-en-crt-et-key-openssl/  | |||
[[Catégorie:Openssl]]  | [[Catégorie:Openssl]]  | ||
[[Catégorie:Certificats]]  | [[Catégorie:Certificats]]  | ||
		<html>  | |||
<a href="https://www.compteurdevisite.com" title="compteur web gratuit sans pub"><img src="https://counter6.optistats.ovh/private/compteurdevisite.php?c=b4epghealnwlf7wuq7gn3ygll9aywrfx" border="0" title="compteur web gratuit sans pub" alt="compteur web gratuit sans pub"></a>  | <a href="https://www.compteurdevisite.com" title="compteur web gratuit sans pub"><img src="https://counter6.optistats.ovh/private/compteurdevisite.php?c=b4epghealnwlf7wuq7gn3ygll9aywrfx" border="0" title="compteur web gratuit sans pub" alt="compteur web gratuit sans pub"></a>  | ||
		</html>  | 		</html>  | ||
Dernière version du 26 mars 2025 à 11:13
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
openssl pkcs12 -in certificat.pfx -out certificat.pem -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
openssl pkcs12 -in certificat.pfx -out certificat.pem -nodes -legacy
Liens