Skip to content

Commit

Permalink
Trust / Authorities - get keyid string (#5323)
Browse files Browse the repository at this point in the history
regression in 5b9d7ba
  • Loading branch information
kulikov-a authored Oct 30, 2021
1 parent b585c33 commit 898c1d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/inc/system.inc
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ function system_trust_configure($verbose = false)
$certext = !empty($certinfo['extensions']) ? $certinfo['extensions'] : [];
$authoritykey = "";
if (!empty($certext['authorityKeyIdentifier'])) {
$authoritykey = trim(str_replace('keyid:', '', $certext['authorityKeyIdentifier']));
$authoritykey = trim(str_replace('keyid:', '', preg_split("/\r\n|\n|\r/", $certext['authorityKeyIdentifier'])[0]));
}
$subjectkey = $certext['subjectKeyIdentifier'];
$is_self_signed = empty($authoritykey) || $subjectkey == $authoritykey;
Expand Down

0 comments on commit 898c1d5

Please sign in to comment.