We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db83c52 commit fcca74fCopy full SHA for fcca74f
1 file changed
src/Sign/JSignService.php
@@ -182,6 +182,9 @@ private function pkcs12Read(JSignParam $params): array
182
$tempEncriptedOriginal = tempnam(sys_get_temp_dir(), 'original');
183
$tempEncriptedRepacked = tempnam(sys_get_temp_dir(), 'repacked');
184
$tempDecrypted = tempnam(sys_get_temp_dir(), 'decripted');
185
+ if ($tempDecrypted === false || $tempPassword === false || $tempEncriptedOriginal === false || $tempEncriptedRepacked === false) {
186
+ return [];
187
+ }
188
file_put_contents($tempPassword, $password);
189
file_put_contents($tempEncriptedOriginal, $certificate);
190
shell_exec(<<<REPACK_COMMAND
0 commit comments