Skip to content

Commit 17335ee

Browse files
committed
chore: remove unecessary code
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 69eccaa commit 17335ee

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

lib/Handler/SignEngine/Pkcs12Handler.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,6 @@ public function getCertificateChain($resource): array {
111111

112112
if (!isset($fromFallback['signingTime']) || !$fromFallback['signingTime'] instanceof \DateTime) {
113113
$certificates[$signerCounter]['signingTime'] = $tsa->getSigninTime($decoded);
114-
if (!$certificates[$signerCounter]['signingTime'] instanceof \DateTime) {
115-
// Probably the best way to do this would be:
116-
// ASN1::asn1map($decoded[0], Maps\TheMapName::MAP);
117-
// But, what's the MAP to use?
118-
//
119-
// With maps also could be possible read all certificate data and
120-
// maybe discart openssl at this pint
121-
try {
122-
$certificates[$signerCounter]['signingTime'] = $decoded[0]['content'][1]['content'][0]['content'][4]['content'][0]['content'][3]['content'][1]['content'][1]['content'][0]['content'];
123-
} catch (\Throwable) {
124-
}
125-
}
126114
}
127115

128116
$pkcs7PemSignature = $this->der2pem($signature);

0 commit comments

Comments
 (0)