@@ -196,9 +196,9 @@ private function newCert(): array {
196196 private function genkey (): void {
197197 $ binary = $ this ->getBinary ();
198198 $ configPath = $ this ->getConfigPath ();
199- $ cmd = $ binary . ' genkey ' .
200- '-initca=true ' . $ configPath . DIRECTORY_SEPARATOR . 'csr_server.json | ' .
201- $ binary . 'json -bare ' . $ configPath . DIRECTORY_SEPARATOR . 'ca; ' ;
199+ $ cmd = $ binary . ' genkey '
200+ . '-initca=true ' . $ configPath . DIRECTORY_SEPARATOR . 'csr_server.json | '
201+ . $ binary . 'json -bare ' . $ configPath . DIRECTORY_SEPARATOR . 'ca; ' ;
202202 shell_exec ($ cmd );
203203 }
204204
@@ -258,10 +258,10 @@ private function wakeUp(): void {
258258 throw new LibresignException ('CFSSL not configured. ' );
259259 }
260260 $ this ->cfsslServerHandler ->updateExpirity ($ this ->expirity ());
261- $ cmd = 'nohup ' . $ binary . ' serve -address=127.0.0.1 ' .
262- '-ca-key ' . $ configPath . DIRECTORY_SEPARATOR . 'ca-key.pem ' .
263- '-ca ' . $ configPath . DIRECTORY_SEPARATOR . 'ca.pem ' .
264- '-config ' . $ configPath . DIRECTORY_SEPARATOR . 'config_server.json > /dev/null 2>&1 & echo $! ' ;
261+ $ cmd = 'nohup ' . $ binary . ' serve -address=127.0.0.1 '
262+ . '-ca-key ' . $ configPath . DIRECTORY_SEPARATOR . 'ca-key.pem '
263+ . '-ca ' . $ configPath . DIRECTORY_SEPARATOR . 'ca.pem '
264+ . '-config ' . $ configPath . DIRECTORY_SEPARATOR . 'config_server.json > /dev/null 2>&1 & echo $! ' ;
265265 shell_exec ($ cmd );
266266 $ loops = 0 ;
267267 while (!$ this ->portOpen () && $ loops <= 4 ) {
@@ -286,10 +286,10 @@ private function portOpen(): bool {
286286
287287 private function getServerPid (): int {
288288 $ cmd = 'ps -eo pid,command| ' ;
289- $ cmd .= 'grep "cfssl.*serve.*-address"| ' .
290- 'grep -v grep| ' .
291- 'grep -v defunct| ' .
292- 'sed -e "s/^[[:space:]]*//"|cut -d" " -f1 ' ;
289+ $ cmd .= 'grep "cfssl.*serve.*-address"| '
290+ . 'grep -v grep| '
291+ . 'grep -v defunct| '
292+ . 'sed -e "s/^[[:space:]]*//"|cut -d" " -f1 ' ;
293293 $ output = shell_exec ($ cmd );
294294 if (!is_string ($ output )) {
295295 return 0 ;
0 commit comments