diff --git a/PaloAlto/Client/PaloAltoClient.cs b/PaloAlto/Client/PaloAltoClient.cs index b828d9a..6fed4f2 100644 --- a/PaloAlto/Client/PaloAltoClient.cs +++ b/PaloAlto/Client/PaloAltoClient.cs @@ -183,7 +183,7 @@ private string GetTemplateName(string storePath) return templateName; } - public async Task GetProfileByCertificate(string certificate,string storePath) + public async Task GetProfileByCertificate(string storePath, string certificate) { try { diff --git a/PaloAlto/Jobs/Management.cs b/PaloAlto/Jobs/Management.cs index d6145e0..e5bbdcf 100644 --- a/PaloAlto/Jobs/Management.cs +++ b/PaloAlto/Jobs/Management.cs @@ -248,7 +248,7 @@ private JobResult PerformAddition(ManagementJobConfiguration config) if (duplicate) { DateTime currentTime = DateTime.Now; - alias += alias + "-" + currentTime.ToString("yyyyMMddHHmmss"); + alias = RightTrimAfter(alias, 19) + "_" + currentTime.ToString("yyMMddHHmmss"); //fix name length } //2. Check palo alto for existing thumprints of anything in the chain //todo change path to come from store path