tech:pb_openssl_error_loading_extension_section_v3_ca
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:pb_openssl_error_loading_extension_section_v3_ca [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:pb_openssl_error_loading_extension_section_v3_ca [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag>Pb Brouillon TLS}} | ||
| + | |||
| + | # Pb OpenSSL LibreSSL Error Loading extension section v3_ca | ||
| + | |||
| + | Voir aussi : | ||
| + | * https:// | ||
| + | |||
| + | ~~~bash | ||
| + | $ openssl genrsa -des3 -out macle.key 2048 | ||
| + | #Voir aussi " | ||
| + | Generating RSA private key, 2048 bit long modulus | ||
| + | ................................................+++ | ||
| + | ...................................................+++ | ||
| + | e is 65537 (0x10001) | ||
| + | Enter pass phrase for macle.key: | ||
| + | Verifying - Enter pass phrase for macle.key: | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | $ openssl req -new -x509 -days 3650 -key macle.key -sha256 -extensions v3_ca -out macle.crt | ||
| + | Error Loading extension section v3_ca | ||
| + | ~~~ | ||
| + | |||
| + | Le problème venait de LibreSSL (pourquoi !?) | ||
| + | |||
| + | Solution 1 (rapide) : | ||
| + | |||
| + | Spécifier le chemin pour prendre l' | ||
| + | ~~~bash | ||
| + | / | ||
| + | ~~~ | ||
| + | |||
| + | Solution 2 (la bonne) : | ||
| + | ~~~bash | ||
| + | mv / | ||
| + | ln -s /etc/ssl / | ||
| + | ~~~ | ||
| + | |||
| + | En effet, la conf n'est pas la même | ||
| + | ~~~ | ||
| + | # grep -ri v3_ca /etc/ssl | ||
| + | / | ||
| + | / | ||
| + | ~~~ | ||
| + | |||
| + | `openssl.cnf` | ||
| + | ~~~ini | ||
| + | [ v3_ca ] | ||
| + | |||
| + | subjectKeyIdentifier=hash | ||
| + | authorityKeyIdentifier=keyid: | ||
| + | basicConstraints = CA:true | ||
| + | |||
| + | |||
| + | [ req ] | ||
| + | |||
| + | x509_extensions = v3_ca # The extentions to add to the self signed cert | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Autres | ||
| + | |||
| + | ~~~ | ||
| + | $ openssl x509 -ext basicConstraints, | ||
| + | X509v3 Basic Constraints: | ||
| + | CA:TRUE | ||
| + | X509v3 Key Usage: critical | ||
| + | Certificate Sign, CRL Sign | ||
| + | ~~~ | ||
| + | |||
