Differential D25031 Diff 83 src/applications/auth/management/PhabricatorAuthManagementCachePKCS8Workflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/management/PhabricatorAuthManagementCachePKCS8Workflow.php
Context not available. | |||||
$console = PhutilConsole::getConsole(); | $console = PhutilConsole::getConsole(); | ||||
$public_keyfile = $args->getArg('public'); | $public_keyfile = $args->getArg('public'); | ||||
if (!strlen($public_keyfile)) { | if (!@strlen($public_keyfile)) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
'You must specify the path to a public keyfile with %s.', | 'You must specify the path to a public keyfile with %s.', | ||||
Context not available. | |||||
$public_key = Filesystem::readFile($public_keyfile); | $public_key = Filesystem::readFile($public_keyfile); | ||||
$pkcs8_keyfile = $args->getArg('pkcs8'); | $pkcs8_keyfile = $args->getArg('pkcs8'); | ||||
if (!strlen($pkcs8_keyfile)) { | if (!@strlen($pkcs8_keyfile)) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
'You must specify the path to a pkcs8 keyfile with %s.', | 'You must specify the path to a pkcs8 keyfile with %s.', | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0