diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-09-11 14:06:19 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-09-11 14:06:19 +0100 |
| commit | f4e3b9c0b4027018c39b9085e080325c19ac9164 (patch) | |
| tree | ec6319337e328d0a26fd7daddb004d411bf76e20 /src/certificate_chain.h | |
| parent | f0da23525fd60c4c9f054e5d603adb1b7ec05d19 (diff) | |
Allow Signer and certificate chains to be made with specified organisation, common name etc.
Diffstat (limited to 'src/certificate_chain.h')
| -rw-r--r-- | src/certificate_chain.h | 11 |
1 files changed, 9 insertions, 2 deletions
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" + ); + } |
