1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-31 00:48:21 +01:00

Minor, correct spelling of PKCS8 key format

Summary: I faked this out locally because of the OSX stuff and goofed the
key format spelling.

Auditors: btrahan
This commit is contained in:
epriestley 2014-11-17 19:54:17 -08:00
parent 1b438a8bd1
commit ffc8a7edc7
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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 {