I am trying to use 'importExistingServerCertificate' using powershell and REST API and I get the error 'Unable to find root ca certificate.
$rootUri = 'https://<server.domain.com>:6443/arcgis/admin/machines/<machine name>/sslcertificates/importExistingServerCertificate'
$params = @{
alias = 'mapcert';
certPassword = '<password>';
certFile = 'c:\certificates\<certname>.pfx';
f = 'json'
}
Invoke-RestMethod -Uri $rootUri -Method Post -Body $params
I can manually install the certificate from the arcgis/admin/machines/<> page no issues, but when trying to automate it is when it throws the error. @JoshuaBixby Hoping you might be able to help 😁
Thanks,
Noel