security: Fixing decoding/encoding certificates. Now the test is fully working
Change-Id: Ieaecba4576d1af3abc68e48baa87e8d4d312b702
diff --git a/src/security/certificate/certificate.cpp b/src/security/certificate/certificate.cpp
index da88444..7a70cdc 100644
--- a/src/security/certificate/certificate.cpp
+++ b/src/security/certificate/certificate.cpp
@@ -250,7 +250,7 @@
void
Certificate::printCertificate(std::ostream &os) const
{
- os << "Certificate name: " << endl;
+ os << "Certificate name:" << endl;
os << " " << getName() << endl;
os << "Validity:" << endl;
{
@@ -265,7 +265,7 @@
os << " " << it->getOidString() << ": " << it->getValue() << endl;
}
- os << "Public key bits: " << endl;
+ os << "Public key bits:" << endl;
CryptoPP::Base64Encoder encoder(new CryptoPP::FileSink(os), true, 64);
key_.encode(encoder);