aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-29 20:57:30 -0700
committerzotlabs <mike@macgirvin.com>2017-08-29 20:57:30 -0700
commitd47df8663f16aa2180bf0658c4d7782845fb9362 (patch)
tree67b9c75fcb390ae71e7c1b6befe1fec99d18bfb3
parent77267e049a4a6039100e5b2b724ff78ced4a1b74 (diff)
downloadvolse-hubzilla-d47df8663f16aa2180bf0658c4d7782845fb9362.tar.gz
volse-hubzilla-d47df8663f16aa2180bf0658c4d7782845fb9362.tar.bz2
volse-hubzilla-d47df8663f16aa2180bf0658c4d7782845fb9362.zip
add a nonce
-rw-r--r--Zotlabs/Lib/LDSignatures.php1
1 files changed, 1 insertions, 0 deletions
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')
];