1 #ifndef AKTUALIZR_BOOTSTRAP_H
2 #define AKTUALIZR_BOOTSTRAP_H
4 #include <boost/filesystem.hpp>
9 Bootstrap(
const boost::filesystem::path& provision_path,
const std::string& provision_password);
11 static void readTlsP12(
const std::string& p12_str,
const std::string& provision_password, std::string& pkey,
12 std::string& cert, std::string& ca);
13 static std::string readServerUrl(
const boost::filesystem::path& provision_path);
14 static std::string readServerCa(
const boost::filesystem::path& provision_path);
16 std::string getCa()
const {
return ca_; }
17 std::string getCert()
const {
return cert_; }
18 std::string getPkey()
const {
return pkey_; }
26 #endif // AKTUALIZR_BOOTSTRAP_H