mirror of https://github.com/MISP/MISP
chg: [gpgtool] validateGpgKey now also imports the key
parent
ab54f9cbfd
commit
f6b5c7b7e3
|
@ -102,6 +102,7 @@ class GpgTool
|
|||
if (empty($primaryKey)) {
|
||||
throw new Exception("No primary key found");
|
||||
}
|
||||
$this->gpg->importKey($keyData);
|
||||
return $primaryKey->getFingerprint();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue