summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-09-29 21:08:31 +0100
committerCarl Hetherington <cth@carlh.net>2013-09-29 21:08:31 +0100
commitcccab9e0c03bf03e51a8924c05b6e5ed74d94e99 (patch)
tree7b9dd44ba94737703e5bbb6249f10ee56fa8d8be /test
parent56295f9d82c74b967b234ac89a5600d5cff1b641 (diff)
Fix signing of KDMs.
Diffstat (limited to 'test')
-rw-r--r--test/encryption_test.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/encryption_test.cc b/test/encryption_test.cc
index e2bf9698..c079acbe 100644
--- a/test/encryption_test.cc
+++ b/test/encryption_test.cc
@@ -66,7 +66,7 @@ BOOST_AUTO_TEST_CASE (encryption)
shared_ptr<libdcp::Signer> signer (
new libdcp::Signer (
chain,
- "test/data/signer.key"
+ "build/test/signer/leaf.key"
)
);
@@ -111,4 +111,11 @@ BOOST_AUTO_TEST_CASE (encryption)
kdm.as_xml ("build/test/bar.kdm.xml");
system ("xmllint --path schema --nonet --noout --schema schema/SMPTE-430-1-2006-Amd-1-2009-KDM.xsd build/test/bar.kdm.xml");
+ system ("xmlsec1 verify "
+ "--pubkey-cert-pem build/test/signer/leaf.signed.pem "
+ "--trusted-pem build/test/signer/intermediate.signed.pem "
+ "--trusted-pem build/test/signer/ca.self-signed.pem "
+ "--id-attr:Id http://www.smpte-ra.org/schemas/430-3/2006/ETM:AuthenticatedPublic "
+ "--id-attr:Id http://www.smpte-ra.org/schemas/430-3/2006/ETM:AuthenticatedPrivate "
+ "build/test/bar.kdm.xml");
}