mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-22 19:21:50 +00:00
basics of adding / removing hetzner servers
This commit is contained in:
@@ -289,6 +289,17 @@ class PrivateKey extends BaseModel
|
||||
}
|
||||
}
|
||||
|
||||
public static function generateMd5Fingerprint($privateKey)
|
||||
{
|
||||
try {
|
||||
$key = PublicKeyLoader::load($privateKey);
|
||||
|
||||
return $key->getPublicKey()->getFingerprint('md5');
|
||||
} catch (\Throwable $e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static function fingerprintExists($fingerprint, $excludeId = null)
|
||||
{
|
||||
$query = self::query()
|
||||
|
||||
Reference in New Issue
Block a user