]> WPIA git - cassiopeia.git/blobdiff - src/sslUtil.cpp
upd: Better configuration, respecting profiles
[cassiopeia.git] / src / sslUtil.cpp
index 414bf3a3c32faa126dc753bbc6f7b21564ed610f..c7944f298bed9765993183a987589bc9beb1f105 100644 (file)
@@ -172,3 +172,9 @@ std::shared_ptr<BIO> openSerial( const std::string name ) {
     std::shared_ptr<BIO> b( BIO_new_fd( fileno( f ), 0 ), BIO_free );
     return b;
 }
+
+CAConfig::CAConfig( std::string path ) {
+    this->path = path;
+    ca = loadX509FromFile( path + "/ca.crt" );
+    caKey = loadPkeyFromFile( path + "/ca.key" );
+}