- fix intermediate certif

This commit is contained in:
Frogg 2026-05-13 13:27:52 +02:00
parent ac2b31211e
commit 4a960fc62b
1 changed files with 1 additions and 1 deletions

View File

@ -719,7 +719,7 @@ do_deb_sys_cert_install(){
if [ -f "$cert_crt" ]; then
# On extrait le DEUXIÈME certificat du fichier (l'intermédiaire)
# On utilise awk pour isoler le second bloc -----BEGIN...END-----
awk 'split($0,a,"-----END CERTIFICATE-----"){print a[1] "-----END CERTIFICATE-----"}' "$cert_crt" | tail -n +2 | awk '/-----BEGIN CERTIFICATE-----/,/-----END CERTIFICATE-----/' > "$inter_target"
awk '/-----BEGIN CERTIFICATE-----/{i++} i==2' "$cert_crt" > "$inter_target"
if [ -s "$inter_target" ]; then
msg_success "Certificat intermédiaire extrait avec succès."