EmailChallenge: add requester's certificate name into the email content
Change-Id: I3231640daf0daa9edbac1fea694fbbbdcdb353fa
diff --git a/src/challenge-module/challenge-email.cpp b/src/challenge-module/challenge-email.cpp
index dbd3b2c..8c49726 100644
--- a/src/challenge-module/challenge-email.cpp
+++ b/src/challenge-module/challenge-email.cpp
@@ -175,7 +175,8 @@
const CertificateRequest& request) const
{
std::string command = m_sendEmailScript;
- command += " \"" + emailAddress + "\" \"" + secret + "\" \"" + request.m_caName.toUri() + "\"";
+ command += " \"" + emailAddress + "\" \"" + secret + "\" \""
+ + request.m_caName.toUri() + "\" \"" + request.m_cert.getName().toUri() + "\"";
int result = system(command.c_str());
if (result == -1) {
_LOG_TRACE("EmailSending Script " + m_sendEmailScript + " fails.");