-
Notifications
You must be signed in to change notification settings - Fork 3
/
example.p2pws
41 lines (31 loc) · 1.03 KB
/
example.p2pws
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Format: P2P Website
PublicKey:: <base64 encoded public key>
Algorithm: RSA
RSA-Length: 4096
Signature:: <base64 encoded signature of everything before this line>
Version: 1
Index: {
"/": {
"Content-Type": "text/html; encoding=utf-8",
"filehash": "<hash of the content of this file>"
},
"/index.html": {
"Content-Type": "text/html; encoding=utf-8",
"filehash": "<hash of the content of this file>"
}
}
Refresh: <number of seconds between each refresh to search for a new version>
Signature:: <base64 encoded signature of everything before this line>
============
new lines are ignored
PublicKey header cannot be redefined (other definitions are ignored)
Signature header separate different sections
Only signed headers are considered, and only if the signature is good
Line continuation is "\n " or "\n\t"
Private Key format .p2pwk
=========================
Format: P2P Website Private Key
PrivateKey:: <base64 encoded public key>
PublicKey:: <base64 encoded public key>
Algorithm: RSA
RSA-Length: 4096