Skip to content

Instantly share code, notes, and snippets.

@cawka
Created September 21, 2018 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cawka/70f519387d0bc8074f22d60e64863554 to your computer and use it in GitHub Desktop.
Save cawka/70f519387d0bc8074f22d60e64863554 to your computer and use it in GitHub Desktop.
rule
{
id “Smart Home Camera Command Interest Rule”
for interest
filter
{
type name
name /home/LivingRoom/Camera-01/Control
relation is-strict-prefix-of
}
checker
{
type customized
sig-type rsa-sha256
key-locator
{
type name
regex ^<home><Controller><><KEY><>$
}
}
}
rule
{
id “Smart Home Camera Certificate Data Rule”
for data
filter
{
type name
regex ^<home><Controller><><KEY><><><>$
}
checker
{
type customized
sig-type rsa-sha256
key-locator
{
type name
regex ^<home><KEY><>$
hyper-relation
{
k-regex ^(<>)<KEY><>$
k-expand \\1
h-relation equal
p-regex ^(<>)<>*$
p-expand \\1
}
}
}
}
trust-anchor
{
type file
file-name home-anchor-key.cert
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment