diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-09-18 18:46:58 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-09-18 18:46:58 +0100 |
| commit | 781982ea9a78f88fef130dc08cd028b7e5f47937 (patch) | |
| tree | 5132d1abeecd40814b06d148bfd126b3b48b2604 /src/crypt_chain.cc | |
| parent | 56782052e43a1e010f7f07cbc0dbaed5b6cb50a3 (diff) | |
A few encryption-related fixes and comments.
Diffstat (limited to 'src/crypt_chain.cc')
| -rw-r--r-- | src/crypt_chain.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crypt_chain.cc b/src/crypt_chain.cc index d495c970..2737f12c 100644 --- a/src/crypt_chain.cc +++ b/src/crypt_chain.cc @@ -47,6 +47,8 @@ static void command (char const * c) void libdcp::make_crypt_chain (boost::filesystem::path directory) { + boost::filesystem::path const cwd = boost::filesystem::current_path (); + boost::filesystem::current_path (directory); command ("openssl genrsa -out ca.key 2048"); @@ -161,4 +163,6 @@ libdcp::make_crypt_chain (boost::filesystem::path directory) } command ("openssl x509 -req -sha256 -days 3648 -CA intermediate.signed.pem -CAkey intermediate.key -set_serial 7 -in leaf.csr -extfile leaf.cnf -extensions v3_ca -out leaf.signed.pem"); + + boost::filesystem::current_path (cwd); } |
