Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abe integration #4

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions A.cert
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't push the certificate or csr files

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Bv0C2Ac7CANuZG4IA29yZwgEbWQyawgBQQgDS0VZCAi810k4DSJjowgNL25kbi9v
cmcvbWQyazYIAAABiCzKt98UCRgBAhkEADbugBX9ASYwggEiMA0GCSqGSIb3DQEB
AQUAA4IBDwAwggEKAoIBAQCpxfNUPfFUh7ydt4NeoqPX7DwibNLtc4BUqPH9emt5
dv0GraJlXiVFZLjB+Nq+Qubqp8qrnTNHktOOF9rYdGRJ4s34VEYUbAaZst+wja2/
G1S3nAOtVXzR7y8wXbq1okTIB9V8Zcb8djrQQyWglYbDMwAtMUlgXAEBf/CvKqaJ
9lXonCpxwMi/Exk8m1F9IjXm0ZRDfABtoQKraxS1FCLZHbd+1qWxh6mwb0OSwhs9
xHk5ikt2Xlgz283mQN1dAJ+CtA/zKcKW+yqHulrvnkq8WJBTc0ZMIujRjYMEhwjR
OEEv1KjUX+hLFzA5b3L0U9ZyDF7/pQokoDdUk8R02cwlAgMBAAEWYBsBARwxBy8I
A25kbggDb3JnCARtZDJrCANLRVkICNwzhc0VbKvECARzZWxmNggAAAGILMq20v0A
/Sb9AP4PMjAyMzA1MThUMDI1NzQz/QD/DzIwMjQwNTE3VDAyNTc0Mhf9AQAvaclL
mZvpL3VbBa0RQ/WFmKcaMyfBmNYFVyjtWPJ1puwAsjQdkkQNtfeS+0lmKjmkGEo7
o8LP+nyhG8V0U00FdeAk8kzTHv9k1DMJoKfRNbdhV9VknComrM3oe2E2RMFI+3rB
9Jmhr329onN1D6RYtkO4M/DA0VBGrSehkcDtMy8b4V6/Skue3lQYg+jqHL4l2zL6
C4lCRNa6+QKJT9RQZYLLeIwGInLn8v7M5XHpbG1JaZqc/D7SSkOaqgKyaAjUIQ6H
01xYYyT0c0sYrGXR8kWL1XoO831LjW49coqxvwnboAnKOOCalqPOdWvIImK2FfwN
mG0cajc+t+Z8B2CF
16 changes: 16 additions & 0 deletions A.ndncsr
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Bv0C2gc6CANuZG4IA29yZwgEbWQyawgBQQgDS0VZCAi810k4DSJjowgMY2VydC1y
ZXF1ZXN0NggAAAGILMq32hQJGAECGQQANu6AFf0BJjCCASIwDQYJKoZIhvcNAQEB
BQADggEPADCCAQoCggEBAKnF81Q98VSHvJ23g16io9fsPCJs0u1zgFSo8f16a3l2
/QatomVeJUVkuMH42r5C5uqnyqudM0eS044X2th0ZEnizfhURhRsBpmy37CNrb8b
VLecA61VfNHvLzBdurWiRMgH1Xxlxvx2OtBDJaCVhsMzAC0xSWBcAQF/8K8qpon2
VeicKnHAyL8TGTybUX0iNebRlEN8AG2hAqtrFLUUItkdt37WpbGHqbBvQ5LCGz3E
eTmKS3ZeWDPbzeZA3V0An4K0D/Mpwpb7Koe6Wu+eSrxYkFNzRkwi6NGNgwSHCNE4
QS/UqNRf6EsXMDlvcvRT1nIMXv+lCiSgN1STxHTZzCUCAwEAARZjGwEBHDQHMggD
bmRuCANvcmcIBG1kMmsIAUEIA0tFWQgIvNdJOA0iY6MIBHNlbGY2CAAAAYgsyre3
/QD9Jv0A/g8yMDIzMDUxOFQwMjU3NDL9AP8PMjAyMzA1MjhUMDI1NzQyF/0BABqg
hthX0xp6o1t0n3bKiDb0t7R35rLvU4aTl8+G7Ri2/rokdMeF8SoVIwbkDiiGDVfi
xWdiV6KEwVt/94/R+GfhqdiwrCGNUTIy3ULUJy9BegaMvHhmzQTSprflNPjBF9Xg
8nBo+hYLudSEnW2L0ME53EDGDm8JZLzK57XzgpdOPBP+YFlgjg/wBrpYVldu/6/b
ZfJweEZ0TNVFEzX6QLraTcZZTNVInt49Clz5/SyyuFpNfyGXb3gjT06c6xS9gZFk
zekpICkccSi9cL4Xje2snPy/Qtz1BUEqA3Z32mJO0C4hkB7oi9cNQqns/J2ANGHJ
EkKPg7MVFSaLo6QF1Xs=
16 changes: 16 additions & 0 deletions certs/A.cert
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Bv0C2Ac7CANuZG4IA29yZwgEbWQyawgBQQgDS0VZCAi810k4DSJjowgNL25kbi9v
cmcvbWQyazYIAAABiCzKt98UCRgBAhkEADbugBX9ASYwggEiMA0GCSqGSIb3DQEB
AQUAA4IBDwAwggEKAoIBAQCpxfNUPfFUh7ydt4NeoqPX7DwibNLtc4BUqPH9emt5
dv0GraJlXiVFZLjB+Nq+Qubqp8qrnTNHktOOF9rYdGRJ4s34VEYUbAaZst+wja2/
G1S3nAOtVXzR7y8wXbq1okTIB9V8Zcb8djrQQyWglYbDMwAtMUlgXAEBf/CvKqaJ
9lXonCpxwMi/Exk8m1F9IjXm0ZRDfABtoQKraxS1FCLZHbd+1qWxh6mwb0OSwhs9
xHk5ikt2Xlgz283mQN1dAJ+CtA/zKcKW+yqHulrvnkq8WJBTc0ZMIujRjYMEhwjR
OEEv1KjUX+hLFzA5b3L0U9ZyDF7/pQokoDdUk8R02cwlAgMBAAEWYBsBARwxBy8I
A25kbggDb3JnCARtZDJrCANLRVkICNwzhc0VbKvECARzZWxmNggAAAGILMq20v0A
/Sb9AP4PMjAyMzA1MThUMDI1NzQz/QD/DzIwMjQwNTE3VDAyNTc0Mhf9AQAvaclL
mZvpL3VbBa0RQ/WFmKcaMyfBmNYFVyjtWPJ1puwAsjQdkkQNtfeS+0lmKjmkGEo7
o8LP+nyhG8V0U00FdeAk8kzTHv9k1DMJoKfRNbdhV9VknComrM3oe2E2RMFI+3rB
9Jmhr329onN1D6RYtkO4M/DA0VBGrSehkcDtMy8b4V6/Skue3lQYg+jqHL4l2zL6
C4lCRNa6+QKJT9RQZYLLeIwGInLn8v7M5XHpbG1JaZqc/D7SSkOaqgKyaAjUIQ6H
01xYYyT0c0sYrGXR8kWL1XoO831LjW49coqxvwnboAnKOOCalqPOdWvIImK2FfwN
mG0cajc+t+Z8B2CF
32 changes: 16 additions & 16 deletions certs/aa.cert
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Bv0C4QdECANuZG4IA29yZwgEbWQyawgGbWd1YXJkCAJhYQgDS0VZCAgeavS600X6
gAgNL25kbi9vcmcvbWQyazYIAAABh5c8RM4UCRgBAhkEADbugBX9ASYwggEiMA0G
CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDEQGnmiIfbRVwwHwpNWOkfGysC4h+i
H+aAFaqnldOMdxzhFzTKHJRUeIGkFCrPc5cIVx0+67NKr/G2t22fEAe9E5nA5xZM
Fn4S2aYyRbArbYGzZVdK1XZJcFyZgAL/kx42GNY1WSe2oNwFqzhygOTing7BuL5R
5xXAzMsqg+lwI5uTvz6XKpYBy5moKFzkNmnqFty6aqC21TnS0xxY23dNi30Xn7xP
FbfklbqYxx3blQ6ngxOJ1BBIcQdOhgBJ+Fg6fl4g2mPreDEdmX4K+YevMqIcYq/x
DflW6jKQmtpm5Q7AdwidnxqVqhEhplA+6/kOxrFZc9hrt0ESVmzLKretAgMBAAEW
YBsBARwxBy8IA25kbggDb3JnCARtZDJrCANLRVkICL2U4sSWDNX0CARzZWxmNggA
AAGHlzxEJv0A/Sb9AP4PMjAyMzA0MTlUMDE1ODQz/QD/DzIwMjQwNDE4VDAxNTg0
Mhf9AQAB5TYmsVCyXj0v233cg24ESi1QrTrUAX74zQfXYN7kkPPsXnlPm3pWY0GU
fGk3Nr/ziFg8W3P83ZgfnQ32trJukZIv6zVKOeyNI/BAVFl7esa5hTyXW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ysLMLI/3CSrXHhs383i/Z6b1LP9bEG5SDobgWxY3VIywq8OtS9ruhq+S
o6rHmTIWgW7UYR+hrCGuZ691HC8nowAx3uqoP2YeSucoRPhThAHMs7+tqfcIbxf2
3RtkbekqPSHr11wu7y4b5fO6Fp4z
16 changes: 16 additions & 0 deletions certs/aa.ndncsr
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Bv0C7AdDCANuZG4IA29yZwgEbWQyawgGbWd1YXJkCAJhYQgDS0VZCAg9852FYE8A
3QgMY2VydC1yZXF1ZXN0NggAAAGINZhwbxQJGAECGQQANu6AFf0BJjCCASIwDQYJ
KoZIhvcNAQEBBQADggEPADCCAQoCggEBANv4DYpid0s25Ne2L58aJs0C13RH5Yk+
TUHO3tX0/C+6Jd+pMGuQhFYbxTUnB+AWUOKrSy7YC47q5oPjQi/ajQqJp/gY0D7v
rxr9B71NbZJjttQuW++1YA/gWUXCb6BnNWZEwyNCAFrSl7n9bGmhpbVW42RuxXyW
N8VcVACHosbk5gr4zTsG4mEWt8BZTEQLYT3+FS6DezmBXZVqIbfW7ej60SXwssvl
tJyzTjBAkaQ2oHnHeufwgnjvcMZq2iFumXx3LE4VeLUaw6OEn0A0NSGxmn7V43Em
BQYcJwdil2RhypnIgz3jCmKTc92j160ZF8Jcvxu4FodZbUKOlhukqusCAwEAARZs
GwEBHD0HOwgDbmRuCANvcmcIBG1kMmsIBm1ndWFyZAgCYWEIA0tFWQgIPfOdhWBP
AN0IBHNlbGY2CAAAAYg1mHBJ/QD9Jv0A/g8yMDIzMDUxOVQxOTU5MjL9AP8PMjAy
MzA1MjlUMTk1OTIyF/0BAEL7MkrTdB00cGTKKNruuNIqihIW4vEmJWtdk9IDI6vU
tx7SH7XjxKO/YRDVh3l4gbfI+Ftlg+j1L8sI14QqcOJlOvbD0JGvuYEDsDFI7X6q
7qArx8gZIsRWtIPr0FMNkMP3JlOMsa0r9Bjs/T+9gkAuphrt+6h+J0h91M4Nf1AR
jPz8wEhPVg/xXpFe1WtEX8Twku/LqOQ+XVbMa70M4jsEurTlZiAB/s84EzimkEmh
VdkUGJ5IJD1L6XyPIlSLO6j6L3mi2xi7KOX6l1zUW/VGVUeRQbooyiQs9pBraEU2
i3BTLAFzqsM6ylGpx4j/yW+VPOmzS0A4jmBtZLVihBU=
30 changes: 15 additions & 15 deletions certs/controller.cert
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Bv0C6QdMCANuZG4IA29yZwgEbWQyawgGbWd1YXJkCApjb250cm9sbGVyCANLRVkI
COW00nUGOl2dCA0vbmRuL29yZy9tZDJrNggAAAGHlzxE3hQJGAECGQQANu6AFf0B
JjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOV2hSLyNqHdiw4r4Is+
Qaq1pXxYiHdzbdndMmJBmJfBo9a5QiVhHB/91Ory4rI3HKqqxQXcPXTB8/1MqKTO
pWC/sZyFk8fhYaUL1d+Ia4oMDXe3nAQuMiUGn/Sdx1rRXDQeHJooHcHXGlE2BJs2
xcj5EiB7suYvW/Dgz73L9n9LsBIO5oKhcCL/BPXtJfVMHoaE/x8eoovnbIVw8BlR
xt+1Y0JSU44Z3BQokFTr/31xRkc3kSIgKrDQWGVo6a+gTUcz1B9BtADagUFBsmqv
mXMlHP0nMCBGnOSJWpPU6S+qFG2xXylKp4wF0LARjwQ+whhLE4xS6bBnCXUWivas
I8UCAwEAARZgGwEBHDEHLwgDbmRuCANvcmcIBG1kMmsIA0tFWQgIvZTixJYM1fQI
BHNlbGY2CAAAAYeXPEQm/QD9Jv0A/g8yMDIzMDQxOVQwMTU4NDP9AP8PMjAyNDA0
MThUMDE1ODQyF/0BAAxVaFAs91p7sjj87WemLZS7ZdMq3vAL2naU/pjGFuU6gO9k
eOhVzPSPT7YCqLzpxdI7nz7kVnALIIPbSpgcFxs/QaNJa1dl4PLQCK6i384wbmQr
Hge8N7PLoAFyNL5gCk4ckslbube5oDzqoELdlWGRyi9gEsjGmxL/0zERItQ0TkE6
haW+Q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zw1PhkR04vept34NagMOpUMNXkklA/dOQ=
16 changes: 16 additions & 0 deletions certs/controller.ndncsr
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Bv0C/AdLCANuZG4IA29yZwgEbWQyawgGbWd1YXJkCApjb250cm9sbGVyCANLRVkI
CEEX4jDiRCdXCAxjZXJ0LXJlcXVlc3Q2CAAAAYg1mHBrFAkYAQIZBAA27oAV/QEm
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyx94JPTXCIIYIU3AHXiN
ogmMuNYTF9MqJGGfpIXcjd3jW5aGAHeQ+Y/XmlN2yGMBDi2UgvzwGlEAPl/fMErT
XY6EKQ9qT2V++XDXOBoanOVmP52cHAlkyaz4W/nL6oZvSmgHpnc9fSlAGPG/06Im
wUUuu0n7qfbGMVZdqvGxygfYY+ILUNqOt/dFK1xc6C9Coir8AtS1TTF+sYb+bNkl
J8ktTjVHziYETyZvIIv+T70uN3CmtY00kgl3mDcXaR994uUuD9fr4C9/cfRTDoPY
TEQWMM+m1nCjoaAG1CB+raElEGPeyfgM/t1qnQxitwV1ZWm36uiuhvWw54akKJs0
AwIDAQABFnQbAQEcRQdDCANuZG4IA29yZwgEbWQyawgGbWd1YXJkCApjb250cm9s
bGVyCANLRVkICEEX4jDiRCdXCARzZWxmNggAAAGINZhv1v0A/Sb9AP4PMjAyMzA1
MTlUMTk1OTIy/QD/DzIwMjMwNTI5VDE5NTkyMhf9AQAz2V70qT2IMdv/nU473+dy
mF0eFPq1f2aj9529nuN8b6kMUGNgKGICAS1H1jw0IVsCmrYXuNqcBr3P9j6sqO9S
Dkg1BrTxMDTIi4xIuLsg8QImxK8w7LFk4Lr1Twv99PKiqKTjmruWCTiBwxgULyOP
XlBWig1zUwtJMtDE7ItsluyMts61Q2d+M5ZerNvmnKrDz1axTV4s19v2n8UCFRM0
01jRWO4ZuVvgIHcZ8DDtmcvvvujDcWVm/tyt2KfjqJJc4Nq6Hiu6tSR1V1hPQJga
D3Zw09E8NuedY6pX5EiPiFUduAN3MI2E5api92BZ4wt1zPYHwlMBrVoOsBeKZ6gA
3 changes: 3 additions & 0 deletions certs/create_certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ server_certs() {
ndnsec sign-req /ndn/org/md2k/mguard/aa > aa.ndncsr

ndnsec cert-gen -s /ndn/org/md2k -i /ndn/org/md2k aa.ndncsr > aa.cert
# ndnsec cert-install aa.cert
ndnsec cert-gen -s /ndn/org/md2k -i /ndn/org/md2k controller.ndncsr > controller.cert
# ndnsec cert-install controller.cert

ndnsec cert-dump -i /ndn/org/md2k > producer.cert
ndnsec cert-dump -i /ndn/org/md2k > md2k-trust-anchor.ndncert
Expand All @@ -21,6 +23,7 @@ consumer_cert() {
ndnsec key-gen -t r /ndn/org/md2k/local
ndnsec sign-req /ndn/org/md2k/local > local.ndncsr
ndnsec cert-gen -s /ndn/org/md2k -i /ndn/org/md2k local.ndncsr > local.cert
# ndnsec cert-install local.cert
}

if [ "$1" == "-a" ]; then
Expand Down
35 changes: 35 additions & 0 deletions certs/create_default_certs.sh
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's have only one certificate creation script. Also, not sure if the default is the right choice of word.

Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash

server_certs() {
echo "Installing server certs (producer, controller, and attribute authority)"
ndnsec key-gen /ndn/org/md2k
ndnsec key-gen /ndn/org/md2k/mguard/controller
ndnsec key-gen /ndn/org/md2k/mguard/aa

ndnsec sign-req /ndn/org/md2k/mguard/controller > controller.ndncsr
ndnsec sign-req /ndn/org/md2k/mguard/aa > aa.ndncsr

ndnsec cert-gen -s /ndn/org/md2k -i /ndn/org/md2k aa.ndncsr > aa.cert
ndnsec cert-gen -s /ndn/org/md2k -i /ndn/org/md2k controller.ndncsr > controller.cert

ndnsec cert-dump -i /ndn/org/md2k > producer.cert
ndnsec cert-dump -i /ndn/org/md2k > md2k-trust-anchor.ndncert
}

consumer_cert() {
echo "Creating and installing consumer certificate"
ndnsec key-gen /ndn/org/md2k/local
ndnsec sign-req /ndn/org/md2k/local > local.ndncsr
ndnsec cert-gen -s /ndn/org/md2k -i /ndn/org/md2k local.ndncsr > local.cert
}

if [ "$1" == "-a" ]; then
server_certs
sleep 1
consumer_cert
exit
fi

server_certs


16 changes: 16 additions & 0 deletions certs/local.cert
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Bv0C3Ac/CANuZG4IA29yZwgEbWQyawgFbG9jYWwIA0tFWQgIRHDYNijUOiYIDS9u
ZG4vb3JnL21kMms2CAAAAYg1mHS5FAkYAQIZBAA27oAV/QEmMIIBIjANBgkqhkiG
9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzB/vyuCJr/jAPBRpTlBJIf0TwrI9VP0zpPbz
Vjv6R+eQmjh/7IbpGs9nBmqqTiqlPmo868i+E6nUWdzXv79BU8m0FafZlZ1o7GUS
e+FSHgoI2du+LgyZSuK5oqmHFT7OUe8LNHXEJnn0UG0CagW5ss9WPPlGFIfa4iT9
L7IWH70b+AuoqgN5x6s25QG6kMaAineree9EWhxEja/MYsGpY0JDULRd9on5GHoO
KlNzJ46kCDSh2bSb7chofUaYOXkqH6eXaQJPk3kJDfRmB0QyhgjS5LUofL5cis9G
yJPJG4qhzP88Ix6JM2jzms4zHUE+rS7Mjm2Yl253Lg9/YB3a4QIDAQABFmAbAQEc
MQcvCANuZG4IA29yZwgEbWQyawgDS0VZCAisvP7degif9wgEc2VsZjYIAAABiDWY
b5r9AP0m/QD+DzIwMjMwNTE5VDE5NTkyNP0A/w8yMDI0MDUxOFQxOTU5MjMX/QEA
cCj86bx1w12DAmSJJoIdMhzLhSlpiaLkQtnM+N/vFIzGumHfHXXW9OdUO0+EYcUL
V1TCdYXziFt7P+F4Nh44gJ4t0AheYlkOVJ5dXXxfuMK6HOUJisbYR8h7Q5/S2pEJ
yrpYNLI+VtTd/tgg9+3SXus83xw3QBdwL0e3kPuqXvdnKegLSMyUI4FyctfOdDfP
jeL4cNOGkBU0FEf20yW3GrLy/5OmPRARJ2JXss01Okn8HOgLHRtGFpoeL/3+xCTq
TX43rDzcU08vj2l5AF/XnO8iF0naFgzC9k9Dr3HxZGCQdo9tkTZ3ssXa3rCqlCfH
cnfK11xv1lhyFeqvYNlT2A==
16 changes: 16 additions & 0 deletions certs/local.ndncsr
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Bv0C4gc+CANuZG4IA29yZwgEbWQyawgFbG9jYWwIA0tFWQgIRHDYNijUOiYIDGNl
cnQtcmVxdWVzdDYIAAABiDWYdLUUCRgBAhkEADbugBX9ASYwggEiMA0GCSqGSIb3
DQEBAQUAA4IBDwAwggEKAoIBAQDMH+/K4Imv+MA8FGlOUEkh/RPCsj1U/TOk9vNW
O/pH55CaOH/shukaz2cGaqpOKqU+ajzryL4TqdRZ3Ne/v0FTybQVp9mVnWjsZRJ7
4VIeCgjZ274uDJlK4rmiqYcVPs5R7ws0dcQmefRQbQJqBbmyz1Y8+UYUh9riJP0v
shYfvRv4C6iqA3nHqzblAbqQxoCKd6t570RaHESNr8xiwaljQkNQtF32ifkYeg4q
U3MnjqQINKHZtJvtyGh9Rpg5eSofp5dpAk+TeQkN9GYHRDKGCNLktSh8vlyKz0bI
k8kbiqHM/zwjHokzaPOazjMdQT6tLsyObZiXbncuD39gHdrhAgMBAAEWZxsBARw4
BzYIA25kbggDb3JnCARtZDJrCAVsb2NhbAgDS0VZCAhEcNg2KNQ6JggEc2VsZjYI
AAABiDWYdJL9AP0m/QD+DzIwMjMwNTE5VDE5NTkyM/0A/w8yMDIzMDUyOVQxOTU5
MjMX/QEAhhkhXvu/QzTPetmpn9//GAKVfrF57XHIk00r3jII1yDOZAgvsSc3aqe2
Q8Hmvb1dOs6X/3erkkHqoW0wwIDBCEP8mq7JxEJanNCj58M24ZHqaa3oKCBtnN+Z
D3PSK9tjyQ7d2TUx81L6uzb2wDTLDC7gtW9OaUyLZos08ZLTn3UD3VddRdbNfC8X
S2HPuDgv7MY7GN7HRUtvaGiAhp3ZGD/IgppLy+3cAfgcavHjageuLH4b+qwQvttE
u9sjGHzrp0lLc4cYqAmqdo30yBnp4jKQrl479WssfQTlxuoWEl5UTWcrdG/EUFp/
4k2dmJQkfbtMJWHpTODqb5vsu4azWw==
15 changes: 15 additions & 0 deletions certs/md2k-trust-anchor.ndncert
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Bv0CvAcvCANuZG4IA29yZwgEbWQyawgDS0VZCAisvP7degif9wgEc2VsZjYIAAAB
iDWYb5oUCRgBAhkEADbugBX9ASYwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
AoIBAQDnh+6FaMN8963aW5fas6yuc1A32sZI7y4DDwJlKmANfpf/zvYkvNcg4yyq
zL4oquBtg3zH3wzLDLW0HcSZaUfid8qjyK/tIy6v+6iSDwhrHiKLz5PMmkSq5f8S
tGrxMJoEJslckaljncKwTiBhoiXZLhix6BybkQzmAxXAelCitHmWkUkfT3g46MEq
V2Ggq0oqJLK7yf9k/cRXyeisOi4dvvbMRLsjpGSxCNxn3Kcvv2lqJY7uVggKksCx
p1rabAmXM88Vl+oRW4mBVW1H7sJsd7VBys+LDgLe0170hiQD7lTlYkUDkPk7QNHB
xKcTB6HENhyvPolozbRehuTbvi3jAgMBAAEWUBsBARwhBx8IA25kbggDb3JnCARt
ZDJrCANLRVkICKy8/t16CJ/3/QD9Jv0A/g8yMDIzMDUxOVQxOTU5MjL9AP8PMjA0
MzA1MTRUMTk1OTIyF/0BAE/XNBSWkd6wwzUZK08EZBTn8UaJ49lpiVmxCXDjFXXN
MRuS6hTVIBnJYMs9MPdi9SeJ4xEF4uZVGsgldgR7TRSa3kehR3HN3em8Cb9TtRFO
yVSYv1FFWcjD2NdunBRHsPB4Yp9BmfXGiXOPxKrjwutK6tb1mJKdgaZnuJs+9DeZ
9/ucqnvYYmNpxp3qPFhpb3oAecfpA3KuNOlXNx9qPbpesQdyQcFid9aNcEJ1Mooh
PUMToqOLalT3KO86lHst7evd4Dknfx6TcOjpI/wYNEOQ3U5dhMMhQv/Gew/Wid86
nf6fMhr/089TYTkoUWHpHZlWoAH+TX+LQaZ6T8JmHWs=
30 changes: 15 additions & 15 deletions certs/producer.cert
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Bv0CvAcvCANuZG4IA29yZwgEbWQyawgDS0VZCAi9lOLElgzV9AgEc2VsZjYIAAAB
h5c8RCYUCRgBAhkEADbugBX9ASYwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
AoIBAQCuCmhP2SJIOy2fLuCJ9X4+Qv5t9oYocDpvZi/7pszHRRXclLGFHhckGd2v
P0pIvl50+gy8db8JRMbQwWT7nI5+NwHzkaLfx3EifVYlv1yiRudtdf1PIIAD8gj+
X3zGZC5nt+dr22qukbJL9ECOgrhi3+nw3qSewGIKIv+Qg5PRIKJ1hRvRLzJbxoee
GLQ0We3tVCes1Mztytxc3UhptrvQjuEhTbmvkxcliXOM3FIA13T88MLdr2ARpuHs
8ixrnreI5Arc/GkcMQ/b5Mf7Jd1RL87dOo6wXLBD1OWlwhn09vSNrcwNag5+TI4R
2GGGNy7T9PRTX0y6KF+J41lCwnKrAgMBAAEWUBsBARwhBx8IA25kbggDb3JnCARt
ZDJrCANLRVkICL2U4sSWDNX0/QD9Jv0A/g8yMDIzMDQxOVQwMTU4NDH9AP8PMjA0
MzA0MTRUMDE1ODQxF/0BAFJmhd3SccmDC2m/WTUHmIVplkX6Mj7724PJApZWSGuL
nbK6VlsxYLcdQ41BMCCia2AzBaEmh/rSftP27bUb+rFMeCO/yC7GHL8RZS0qpNF3
+30g2LhwY8N1/lVfx8tRA4cvJOi9sXjTDDpIAZBH/ClJwF+i1E9L7xAQOBea8Ypq
T3Cpi561Eb97JIV9NiRsJwy4m/R2amtHwmFck23vvcFzftyLHE7qTBCkvePv3aX6
Iqt1SP2mWuU6StYWXZzgv+1xBDEW/vqCFNglf4YWRfHrq/qZ6imPOhUFxmfa4aWH
VzYjCmLZ/LYX1zT2+RUPHldLxDrSkLa/TcR3AXfCMUM=
Bv0CvAcvCANuZG4IA29yZwgEbWQyawgDS0VZCAisvP7degif9wgEc2VsZjYIAAAB
iDWYb5oUCRgBAhkEADbugBX9ASYwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
AoIBAQDnh+6FaMN8963aW5fas6yuc1A32sZI7y4DDwJlKmANfpf/zvYkvNcg4yyq
zL4oquBtg3zH3wzLDLW0HcSZaUfid8qjyK/tIy6v+6iSDwhrHiKLz5PMmkSq5f8S
tGrxMJoEJslckaljncKwTiBhoiXZLhix6BybkQzmAxXAelCitHmWkUkfT3g46MEq
V2Ggq0oqJLK7yf9k/cRXyeisOi4dvvbMRLsjpGSxCNxn3Kcvv2lqJY7uVggKksCx
p1rabAmXM88Vl+oRW4mBVW1H7sJsd7VBys+LDgLe0170hiQD7lTlYkUDkPk7QNHB
xKcTB6HENhyvPolozbRehuTbvi3jAgMBAAEWUBsBARwhBx8IA25kbggDb3JnCARt
ZDJrCANLRVkICKy8/t16CJ/3/QD9Jv0A/g8yMDIzMDUxOVQxOTU5MjL9AP8PMjA0
MzA1MTRUMTk1OTIyF/0BAE/XNBSWkd6wwzUZK08EZBTn8UaJ49lpiVmxCXDjFXXN
MRuS6hTVIBnJYMs9MPdi9SeJ4xEF4uZVGsgldgR7TRSa3kehR3HN3em8Cb9TtRFO
yVSYv1FFWcjD2NdunBRHsPB4Yp9BmfXGiXOPxKrjwutK6tb1mJKdgaZnuJs+9DeZ
9/ucqnvYYmNpxp3qPFhpb3oAecfpA3KuNOlXNx9qPbpesQdyQcFid9aNcEJ1Mooh
PUMToqOLalT3KO86lHst7evd4Dknfx6TcOjpI/wYNEOQ3U5dhMMhQv/Gew/Wid86
nf6fMhr/089TYTkoUWHpHZlWoAH+TX+LQaZ6T8JmHWs=
9 changes: 8 additions & 1 deletion certs/trust-schema.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@

rule
{
id "simple rule"
id "digest rule"
for data
filter
{
type name
name /ndn/org/md2k
relation is-prefix-of
}

checker
{
type customized
sig-type sha256
}

checker
{
type customized
Expand Down
Loading