Store keys in standard format; query with fingerprint not public key
This commit is contained in:
parent
b563f13d09
commit
a9364061c1
3 changed files with 19 additions and 3 deletions
|
@ -57,6 +57,14 @@ class StoreSSHKeyRequest extends ClientApiRequest
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the public key but formatted in a consistent manner.
|
||||
*/
|
||||
public function getPublicKey(): string
|
||||
{
|
||||
return $this->key->toString('PKCS8');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the SHA256 fingerprint of the key provided.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue