redirect openssl errors to dev null
This commit is contained in:
parent
c82f81938a
commit
4c1bd996fc
|
@ -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;
|
||||
|
|
Reference in New Issue