diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-06-21 10:21:15 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-06-21 10:21:15 -0100 |
commit | e85bb3495c042a969eca79924bee64c032307c8b (patch) | |
tree | be8a09a9aebd4160ac46a4c9f8c8e83853d9dec6 /lib/Service/SignatureService.php | |
parent | a1221cacf6dc9dbdffc1929f361e9c2e942c049d (diff) |
fixing signature check
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Service/SignatureService.php')
-rw-r--r-- | lib/Service/SignatureService.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Service/SignatureService.php b/lib/Service/SignatureService.php index 00f6b906..dc7c1452 100644 --- a/lib/Service/SignatureService.php +++ b/lib/Service/SignatureService.php @@ -127,7 +127,7 @@ class SignatureService { public function generateKeys(Person &$actor) { $res = openssl_pkey_new( [ - "digest_alg" => "rsa", + "digest_alg" => "rsa", "private_key_bits" => 2048, "private_key_type" => OPENSSL_KEYTYPE_RSA, ] @@ -232,6 +232,7 @@ class SignatureService { * @throws ItemUnknownException * @throws RequestResultNotJsonException * @throws DateTimeException + * @throws UnauthorizedFediverseException */ public function checkObject(ACore $object): bool { try { @@ -263,6 +264,10 @@ class SignatureService { return true; } catch (LinkedDataSignatureMissingException $e) { + $this->miscService->log( + 'LinkedDataSignatureMissingException while checkObject : ' . $e->getMessage() + . ' --- ' . json_encode($object), 1 + ); } return false; |