| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function trustCA($pem) |
||
| 15 | { |
||
| 16 | $this->consoleWriter->info('Auto Trust CA Certificate, needs sudo privilege. Please provide your sudo password.'); |
||
| 17 | |||
| 18 | $command = "sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain {$pem}"; |
||
| 19 | |||
| 20 | $this->cli->passthru($command); |
||
| 21 | } |
||
| 60 |