File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments