enh(protocol/x509): certificate mode - add default value when some attributes missing (#2773)

This commit is contained in:
qgarnier 2021-05-06 17:14:05 +02:00 committed by GitHub
parent a7cd8142da
commit bd06401e7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -95,8 +95,8 @@ sub manage_selection {
my $cert = $options{custom}->get_certificate_informations();
$self->{global} = {
subject => $cert->{subject},
issuer => $cert->{issuer},
subject => defined($cert->{subject}) ? $cert->{subject} : '-',
issuer => defined($cert->{issuer}) ? $cert->{issuer} : '-',
expiration => $cert->{expiration},
date => $cert->{expiration_date},
alt_subjects => $cert->{alt_subjects}