Skip to content

Commit 9e1f1e1

Browse files
committedSep 23, 2020
Fix missing serial number in export made from search result
1 parent 46f8ed9 commit 9e1f1e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎core/server/OpenXPKI/Client/UI/Certificate.pm

+4-1
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,11 @@ sub init_export {
385385
push @line, i18nGettext('I18N_OPENXPKI_UI_CERT_STATUS_'.$item->{status});
386386

387387
} elsif ($field =~ /(notafter|notbefore)/) {
388-
389388
push @line, DateTime->from_epoch( epoch => $item->{ $field } )->iso8601();
390389

390+
} elsif ($field eq 'cert_key_hex') {
391+
push @line, Math::BigInt->new( $item->{cert_key} )->as_hex;
392+
391393
} else {
392394
push @line, $item->{ $field };
393395
}
@@ -1401,6 +1403,7 @@ sub __render_result_list {
14011403

14021404
$item->{status} = 'EXPIRED' if ($item->{status} eq 'ISSUED' && $item->{notafter} < time());
14031405

1406+
# if you add patterns you also need to add those in init_export!
14041407
my @line;
14051408
foreach my $col (@{$colums}) {
14061409
if ($col->{field} eq 'status') {

0 commit comments

Comments
 (0)