Skip to content

Commit 1cc6df4

Browse files
committed
chore: make the debug more easy
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 52dcb5c commit 1cc6df4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Sign/JSignService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ private function pkcs12Read(JSignParam $params): array
175175
}
176176
$msg = openssl_error_string();
177177
if ($msg === 'error:0308010C:digital envelope routines::unsupported') {
178-
if (!shell_exec('openssl version')) {
178+
$opensslVersion = shell_exec('openssl version');
179+
if (empty($opensslVersion)) {
179180
return [];
180181
}
181182
$tempPassword = tempnam(sys_get_temp_dir(), 'pfx');

0 commit comments

Comments
 (0)