| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function trustCertificate($crt) |
||
| 31 | { |
||
| 32 | $this->consoleWriter->info('Auto Trust Certificate, needs sudo privilege. Please provide your sudo password.'); |
||
| 33 | |||
| 34 | $command = "sudo security add-trusted-cert -d -r trustAsRoot -k /Library/Keychains/System.keychain {$crt}"; |
||
| 35 | |||
| 36 | $this->cli->passthru($command); |
||
| 37 | } |
||
| 60 |