diff --git a/CitrixAdcOrchestratorJobExtension/CitrixAdcStore.cs b/CitrixAdcOrchestratorJobExtension/CitrixAdcStore.cs index 976f100..f17f161 100644 --- a/CitrixAdcOrchestratorJobExtension/CitrixAdcStore.cs +++ b/CitrixAdcOrchestratorJobExtension/CitrixAdcStore.cs @@ -515,7 +515,7 @@ string Pemify(string ss) privateKeyFile = new systemfile { filecontent = Convert.ToBase64String(privateKey), - filename = keyFileName, + filename = keyFileName.Substring(keyFileName.LastIndexOf("/") + 1), filelocation = StorePath }; @@ -527,7 +527,7 @@ string Pemify(string ss) pemFile.filecontent = contents; } - pemFile.filename = certFileName; + pemFile.filename = certFileName.Substring(certFileName.LastIndexOf("/") + 1); pemFile.filelocation = StorePath; return (pemFile, privateKeyFile);