diff --git a/src/applications/auth/sshkey/PhabricatorAuthSSHPublicKey.php b/src/applications/auth/sshkey/PhabricatorAuthSSHPublicKey.php index d32a1f84e7..8d14a14c6e 100644 --- a/src/applications/auth/sshkey/PhabricatorAuthSSHPublicKey.php +++ b/src/applications/auth/sshkey/PhabricatorAuthSSHPublicKey.php @@ -107,14 +107,14 @@ final class PhabricatorAuthSSHPublicKey extends Phobject { return $key; } - public function toPCKS8() { + public function toPKCS8() { // TODO: Put a cache in front of this. $tmp = new TempFile(); Filesystem::writeFile($tmp, $this->getEntireKey()); list($pem_key) = execx( - 'ssh-keygen -e -m pcks8 -f %s', + 'ssh-keygen -e -m PKCS8 -f %s', $tmp); unset($tmp); diff --git a/src/applications/conduit/controller/PhabricatorConduitAPIController.php b/src/applications/conduit/controller/PhabricatorConduitAPIController.php index 9738237b82..ec040690a4 100644 --- a/src/applications/conduit/controller/PhabricatorConduitAPIController.php +++ b/src/applications/conduit/controller/PhabricatorConduitAPIController.php @@ -224,7 +224,7 @@ final class PhabricatorConduitAPIController $raw_key = idx($metadata, 'auth.key'); $public_key = PhabricatorAuthSSHPublicKey::newFromRawKey($raw_key); - $ssl_public_key = $public_key->toPCKS8(); + $ssl_public_key = $public_key->toPKCS8(); // First, verify the signature. try {