Adjust fetching ksk certificate
diff --git a/src/profile-data.cpp b/src/profile-data.cpp
index 9a8087b..ef067f9 100644
--- a/src/profile-data.cpp
+++ b/src/profile-data.cpp
@@ -19,13 +19,12 @@
 
 INIT_LOGGER("ProfileData");
 
-ProfileData::ProfileData(const Name& identity,
-			 const Profile& profile)
+ProfileData::ProfileData(const Profile& profile)
   : Data()
-  , m_identity(identity)
+  , m_identity(profile.getIdentityName())
   , m_profile(profile)
 {
-  Name dataName = identity;
+  Name dataName = m_identity;
 
   dataName.append("PROFILE").appendVersion();
   setName(dataName);