Commit 7bce67d4 authored by Franco Fichtner's avatar Franco Fichtner

certificates: use the correct openssl (libressl) binary

parent f09352d4
...@@ -212,7 +212,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -212,7 +212,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} elseif ($act == "info") { } elseif ($act == "info") {
if (isset($id)) { if (isset($id)) {
// use openssl to dump cert in readable format // use openssl to dump cert in readable format
$process = proc_open('/usr/bin/openssl x509 -text', array(array("pipe", "r"), array("pipe", "w")), $pipes); $process = proc_open('/usr/local/bin/openssl x509 -text', array(array("pipe", "r"), array("pipe", "w")), $pipes);
if (is_resource($process)) { if (is_resource($process)) {
fwrite($pipes[0], base64_decode($a_cert[$id]['crt'])); fwrite($pipes[0], base64_decode($a_cert[$id]['crt']));
fclose($pipes[0]); fclose($pipes[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment