diff --git a/PaloAltoTestConsole/KeyfactorClient.cs b/PaloAltoTestConsole/KeyfactorClient.cs index 003d5e4..47db9d5 100644 --- a/PaloAltoTestConsole/KeyfactorClient.cs +++ b/PaloAltoTestConsole/KeyfactorClient.cs @@ -29,7 +29,7 @@ public async Task EnrollCertificate(string commonName var request = new RestRequest("/KeyfactorAPI/Enrollment/PFX", Method.Post); request.AddHeader("X-Keyfactor-Requested-With", "APIClient"); request.AddHeader("x-certificateformat", "PFX"); - request.AddHeader("Authorization", "Basic Y29tbWFuZFxLRkFkbWluOldoNUcyVGM2VkJZalNNcEM="); + request.AddHeader("Authorization", "Basic Authtoken"); request.AddHeader("Content-Type", "application/json"); var enrollRequest = new KeyfactorEnrollmentRequest { diff --git a/PaloAltoTestConsole/RunTest.bat b/PaloAltoTestConsole/RunTest.bat index 8288c33..f425aaf 100644 --- a/PaloAltoTestConsole/RunTest.bat +++ b/PaloAltoTestConsole/RunTest.bat @@ -1,12 +1,12 @@ @echo off -cd C:\Users\bhill\source\repos\paloalto-firewall-orchestrator\PaloAltoTestConsole\bin\Debug\netcoreapp3.1 -set FWMachine=keyfactorpa.eastus2.cloudapp.azure.com -set FWApiUser=bhill -set FWApiPassword=Keyfactor2019! -set PAMachine=20.172.165.91 -set PAApiUser=bhill -set PAApiPassword=Keyfactor2019! +cd C:\Users\asdf\source\repos\paloalto-firewall-orchestrator\PaloAltoTestConsole\bin\Debug\netcoreapp3.1 +set FWMachine=asfd +set FWApiUser=asfd +set FWApiPassword=asfdsdfa +set PAMachine=afsd +set PAApiUser=bhisadfll +set PAApiPassword=adfssadf echo *********************************** @@ -31,7 +31,7 @@ set overwrite=false set inventorytrusted=false set templatestackname="" -goto :PANTemplates +REM goto :PANTemplates echo ************************************************************************************************************************ echo TC1 %mgt%. Should do the %mgt% and add anything in the chain