mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 04:15:55 +00:00
basics of adding / removing hetzner servers
This commit is contained in:
1 parent
c1bcc41546
commit
215301fa8f
15 files changed
+744
-119
No files matched your search
@@ -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