From f4e3b9c0b4027018c39b9085e080325c19ac9164 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 11 Sep 2014 14:06:19 +0100 Subject: Allow Signer and certificate chains to be made with specified organisation, common name etc. --- src/certificate_chain.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/certificate_chain.h') diff --git a/src/certificate_chain.h b/src/certificate_chain.h index 6a6fc483..e074f8fd 100644 --- a/src/certificate_chain.h +++ b/src/certificate_chain.h @@ -33,6 +33,13 @@ namespace dcp { * - leaf.key leaf certificate private key * - leaf.signed.pem leaf certificate */ -boost::filesystem::path make_certificate_chain (boost::filesystem::path openssl); - +boost::filesystem::path make_certificate_chain ( + boost::filesystem::path openssl, + std::string organisation = "example.org", + std::string organisational_unit = "example.org", + std::string root_common_name = ".smpte-430-2.ROOT.NOT_FOR_PRODUCTION", + std::string intermediate_common_name = ".smpte-430-2.INTERMEDIATE.NOT_FOR_PRODUCTION", + std::string leaf_common_name = "CS.smpte-430-2.LEAF.NOT_FOR_PRODUCTION" + ); + } -- cgit v1.2.3