I need to install an SSL certificate on my machine as part of my initial setup for web testing with Katalon. I’m trying to automate this process, and the only way so far that works without getting a Windows security popup which requires you to manually click Yes/No to is by using an actual Powershell window (launched as as Administrator). I’m trying to avoid the popup as controlling Windows with Katalon might be a big bag of worms that I am not familiar with.
I have been using command prompt calls with Runtime.getRuntime().exec(), and I have been using powershell -command with that, but installing a cert without a popup seems to require actual powershell with admin privileges.
Is there a way to use Powershell as admin commands from Katalon? This is what I am trying to avoid:
This is what I am running but requires me to click Yes/No on that popup:
powershell -command "Import-Certificate -FilePath C:/Users/Admin/Downloads/Logiscend.cer -CertStoreLocation Cert:/CurrentUser/Root"
println('Command being run to import the cert will be:' + cmd)
Runtime.getRuntime().exec(cmd)