update ca storage
Change-Id: I4fcce728d24183e8c2961c1beb4704f524391e5c
diff --git a/src/ca-module.cpp b/src/ca-module.cpp
index 658d9c5..f674482 100644
--- a/src/ca-module.cpp
+++ b/src/ca-module.cpp
@@ -47,7 +47,7 @@
{
// load the config and create storage
m_config.load(configPath);
- m_storage = CaStorage::createCaStorage(storageType);
+ m_storage = CaStorage::createCaStorage(storageType, m_config.m_caItem.m_caPrefix, "");
registerPrefix();
}
@@ -409,7 +409,6 @@
auto issuedCert = issueCertificate(requestState);
requestState.m_cert = issuedCert;
requestState.m_status = Status::SUCCESS;
- m_storage->addCertificate(requestState.m_requestId, issuedCert);
m_storage->deleteRequest(requestState.m_requestId);
payload = CHALLENGE::encodeDataPayload(requestState);