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/signer.h | |
| parent | f0da23525fd60c4c9f054e5d603adb1b7ec05d19 (diff) | |
Allow Signer and certificate chains to be made with specified organisation, common name etc.
Diffstat (limited to 'src/signer.h')
| -rw-r--r-- | src/signer.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/signer.h b/src/signer.h index 6fd17033..1d53d5ba 100644 --- a/src/signer.h +++ b/src/signer.h @@ -42,6 +42,15 @@ class Signer { public: Signer (boost::filesystem::path openssl); + + Signer ( + boost::filesystem::path openssl, + std::string organisation, + std::string organisational_unit, + std::string root_common_name, + std::string intermediate_common_name, + std::string leaf_common_name + ); /** @param c Certificate chain to sign with. * @param k Key to sign with as a PEM-format string. @@ -73,7 +82,8 @@ public: bool valid () const; private: - + void create (boost::filesystem::path directory); + /** Certificate chain to sign with */ CertificateChain _certificates; /** Key to sign with as a PEM-format string */ |
