CA config and Client config: update format and semantics of probe
Refs: https://github.com/named-data/ndncert/wiki/NDNCERT-CA-Configuration
Change-Id: Ia0a8def6aea8565533a0f5364c44768d3849f18f
diff --git a/ca.conf.sample b/ca.conf.sample
index d81a8e9..0324699 100644
--- a/ca.conf.sample
+++ b/ca.conf.sample
@@ -1,34 +1,12 @@
{
- "ca-list":
+ "ca-prefix": "/example",
+ "issuing-freshness": "720",
+ "validity-period": "360",
+ "ca-info": "An example NDNCERT CA",
+ "probe": "[JSON attribute]:[JSON attribute]:[...] Example: email:UID"
+ "supported-challenges":
[
- {
- "ca-prefix": "/ndn",
- "issuing-freshness": "720",
- "validity-period": "360",
- "ca-info": "NDN Testbed CA",
-
- "probe": "email",
-
- "targeted-list": "Use your email address (edu preferred) as input",
- "related-ca-list":
- [
- { "ca-prefix": "/ndn/edu/arizona" },
- { "ca-prefix": "/ndn/edu/memphis" }
- ],
-
- "supported-challenges":
- [
- { "type": "PIN" }
- ]
- },
- {
- "ca-prefix": "/example",
- "issuing-freshness": "720",
- "validity-period": "360",
- "supported-challenges":
- [
- { "type": "PIN" }
- ]
- }
+ { "type": "PIN" },
+ { "type": "Email" }
]
-}
\ No newline at end of file
+}