IIS Discovery/Provisioning fails: AuthorizationManager check failed
Symptom
When running discovery on any Microsoft Windows machine type you may facing an error like
Failed to push XXX to XXX The error message is: unable to install certificate in CAPI: failed to install certificate into CAPI, stdout: '': failed to run script function "install-cert": PS script return code: 1, error: . : AuthorizationManager check failed. At line:1 char:44
This happens because target Windows machine does not trust power shell script signed or Palo Alto code signing certificate is not under Trusted Publishers
Environment
Conjur Cloud TLSPC
CCM, SaaS
NGTS
Windows IIS and Windows Servers
Cause
Windows restricted policies requiring every single Powershell must be signed
CCM, SaaS/NGTS code signing certificate not available in Trusted Publishers CAPI store.
Resolution
- In CCM, SaaS docs copy and save in PEM code signing certificate, please refer to https://docs.cyberark.com/mis-saas/vaas/machines/provision-certificates-microsoft-iis/
- Upload PEM file into the target IIS or Windows machine
- Open CAPI Store and locate Trusted Publishers -> Certificates
- Import PEM file
Be aware procedure is a different if Windows Server is under GPO governance. GPO admins should decide and are responsible on how to distribute code signing certificate.