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:
parent
1b438a8bd1
commit
ffc8a7edc7
2 changed files with 3 additions and 3 deletions
|
@ -107,14 +107,14 @@ final class PhabricatorAuthSSHPublicKey extends Phobject {
|
||||||
return $key;
|
return $key;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function toPCKS8() {
|
public function toPKCS8() {
|
||||||
|
|
||||||
// TODO: Put a cache in front of this.
|
// TODO: Put a cache in front of this.
|
||||||
|
|
||||||
$tmp = new TempFile();
|
$tmp = new TempFile();
|
||||||
Filesystem::writeFile($tmp, $this->getEntireKey());
|
Filesystem::writeFile($tmp, $this->getEntireKey());
|
||||||
list($pem_key) = execx(
|
list($pem_key) = execx(
|
||||||
'ssh-keygen -e -m pcks8 -f %s',
|
'ssh-keygen -e -m PKCS8 -f %s',
|
||||||
$tmp);
|
$tmp);
|
||||||
unset($tmp);
|
unset($tmp);
|
||||||
|
|
||||||
|
|
|
@ -224,7 +224,7 @@ final class PhabricatorConduitAPIController
|
||||||
|
|
||||||
$raw_key = idx($metadata, 'auth.key');
|
$raw_key = idx($metadata, 'auth.key');
|
||||||
$public_key = PhabricatorAuthSSHPublicKey::newFromRawKey($raw_key);
|
$public_key = PhabricatorAuthSSHPublicKey::newFromRawKey($raw_key);
|
||||||
$ssl_public_key = $public_key->toPCKS8();
|
$ssl_public_key = $public_key->toPKCS8();
|
||||||
|
|
||||||
// First, verify the signature.
|
// First, verify the signature.
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue