redirect openssl errors to dev null

This commit is contained in:
<bdauvergne@entrouvert.com> 1207752170 +0200 0001-01-01 00:00:00 +00:00
parent c82f81938a
commit 4c1bd996fc
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class LassoSPKitUtils {
$error = "SSL Generate: Can't find OpenSSL at " . OPENSSL_BIN;
return 0;
}
exec('/usr/bin/openssl genrsa -out ' . $file . ' 2048', $foo, $ret);
exec('/usr/bin/openssl genrsa -out ' . $file . ' 2048 2>/dev/null', $foo, $ret);
if ($ret != 0) {
$error = "SSL Generate: OpenSSL returned non-0 while computing the private key, check your ssl installation.";
return 0;