Fixed several ndncert-client bugs and use lower case Challenge ID
refs: #4962
Change-Id: Id10dcc15cb718d6a55f4657884b2c6be3f653867
diff --git a/src/ca-config.cpp b/src/ca-config.cpp
index b8b0d59..3165b2d 100644
--- a/src/ca-config.cpp
+++ b/src/ca-config.cpp
@@ -66,7 +66,7 @@
std::list<std::string> result;
auto it = section.begin();
for (; it != section.end(); it++) {
- result.push_back(it->second.get<std::string>("type"));
+ result.push_back(boost::algorithm::to_lower_copy(it->second.get<std::string>("type")));
}
return result;
}