Skip to content

Commit

Permalink
Merge pull request #295 from robmachado/master
Browse files Browse the repository at this point in the history
Ajustes caso o icp esteja faltando na chave publica
  • Loading branch information
robmachado committed Jun 1, 2023
2 parents b2e7285 + d186c5a commit 1d9d5f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Certificate/PublicKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ protected function read()
: $detail['issuer']['organizationalUnitName'] . ' - ' . $detail['issuer']['commonName'];
}
$this->serialNumber = $detail['serialNumber'];
$this->icp = $detail['subject']['organizationName'];
$this->icp = $detail['subject']['organizationName'] ?? '';
$authority = $detail['extensions']['authorityInfoAccess'] ?? '';
if (!empty($authority)) {
$txt = explode("\n", $authority);
Expand Down

0 comments on commit 1d9d5f2

Please sign in to comment.