summaryrefslogtreecommitdiffstats
path: root/lib/Service/SignatureService.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Service/SignatureService.php')
-rw-r--r--lib/Service/SignatureService.php7
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;