From d47df8663f16aa2180bf0658c4d7782845fb9362 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 29 Aug 2017 20:57:30 -0700 Subject: add a nonce --- Zotlabs/Lib/LDSignatures.php | 1 + 1 file changed, 1 insertion(+) (limited to 'Zotlabs/Lib/LDSignatures.php') diff --git a/Zotlabs/Lib/LDSignatures.php b/Zotlabs/Lib/LDSignatures.php index ba7025927..a52946a32 100644 --- a/Zotlabs/Lib/LDSignatures.php +++ b/Zotlabs/Lib/LDSignatures.php @@ -23,6 +23,7 @@ class LDSignatures { static function sign($data,$channel) { $options = [ 'type' => 'RsaSignature2017', + 'nonce' => random_string(64), 'creator' => z_root() . '/channel/' . $channel['channel_address'] . '/public_key_pem', 'created' => datetime_convert('UTC','UTC', 'now', 'Y-m-d\Th:i:s\Z') ]; -- cgit v1.2.3