<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ImportExistingServerCertificate error Unable to find root ca certificate in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/importexistingservercertificate-error-unable-to/m-p/1386830#M4683</link>
    <description>&lt;P&gt;I am trying to use 'importExistingServerCertificate'&amp;nbsp; using powershell and REST API and I get the error 'Unable to find root ca certificate.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$rootUri =&amp;nbsp;&amp;nbsp;'https://&amp;lt;server.domain.com&amp;gt;:6443/arcgis/admin/machines/&amp;lt;machine name&amp;gt;/sslcertificates/importExistingServerCertificate'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$params = @{&lt;BR /&gt;alias = 'mapcert';&lt;BR /&gt;certPassword = '&amp;lt;password&amp;gt;';&lt;BR /&gt;certFile = 'c:\certificates\&amp;lt;certname&amp;gt;.pfx';&lt;BR /&gt;f = 'json'&lt;BR /&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Invoke-RestMethod -Uri $rootUri -Method Post -Body $params&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;I can manually install the certificate from the arcgis/admin/machines/&amp;lt;&amp;gt; page no issues, but when trying to automate it is when it throws the error.&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371"&gt;@JoshuaBixby&lt;/a&gt;&amp;nbsp;Hoping you might be able to help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Noel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2024 16:28:17 GMT</pubDate>
    <dc:creator>ALGIS</dc:creator>
    <dc:date>2024-02-26T16:28:17Z</dc:date>
    <item>
      <title>ImportExistingServerCertificate error Unable to find root ca certificate</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/importexistingservercertificate-error-unable-to/m-p/1386830#M4683</link>
      <description>&lt;P&gt;I am trying to use 'importExistingServerCertificate'&amp;nbsp; using powershell and REST API and I get the error 'Unable to find root ca certificate.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$rootUri =&amp;nbsp;&amp;nbsp;'https://&amp;lt;server.domain.com&amp;gt;:6443/arcgis/admin/machines/&amp;lt;machine name&amp;gt;/sslcertificates/importExistingServerCertificate'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$params = @{&lt;BR /&gt;alias = 'mapcert';&lt;BR /&gt;certPassword = '&amp;lt;password&amp;gt;';&lt;BR /&gt;certFile = 'c:\certificates\&amp;lt;certname&amp;gt;.pfx';&lt;BR /&gt;f = 'json'&lt;BR /&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Invoke-RestMethod -Uri $rootUri -Method Post -Body $params&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;I can manually install the certificate from the arcgis/admin/machines/&amp;lt;&amp;gt; page no issues, but when trying to automate it is when it throws the error.&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371"&gt;@JoshuaBixby&lt;/a&gt;&amp;nbsp;Hoping you might be able to help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Noel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 16:28:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/importexistingservercertificate-error-unable-to/m-p/1386830#M4683</guid>
      <dc:creator>ALGIS</dc:creator>
      <dc:date>2024-02-26T16:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: ImportExistingServerCertificate error Unable to find root ca certificate</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/importexistingservercertificate-error-unable-to/m-p/1386866#M4684</link>
      <description>&lt;P&gt;With the Esri Admin API call, you need to include the file in the POST body.&amp;nbsp; Your current code is including a path to a file and not the contents of the file.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 16:59:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/importexistingservercertificate-error-unable-to/m-p/1386866#M4684</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2024-02-26T16:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: ImportExistingServerCertificate error Unable to find root ca certificate</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/importexistingservercertificate-error-unable-to/m-p/1386975#M4685</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371"&gt;@JoshuaBixby&lt;/a&gt;&amp;nbsp;forgive my ignorance but would just adding a get-content ie &lt;EM&gt;$cert = get-content c:\certificate\certificate.pfx&amp;nbsp;&lt;/EM&gt;then making the parameter for certFile = $cert resolve this?&lt;/P&gt;&lt;P&gt;Maybe I am over simplifying but I was under the impression the rest api call would read the certificate like it does in the admin page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 19:40:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/importexistingservercertificate-error-unable-to/m-p/1386975#M4685</guid>
      <dc:creator>ALGIS</dc:creator>
      <dc:date>2024-02-26T19:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: ImportExistingServerCertificate error Unable to find root ca certificate</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/importexistingservercertificate-error-unable-to/m-p/1386992#M4686</link>
      <description>&lt;P&gt;In the Admin API page, there is a "Choose File" button.&amp;nbsp; That button isn't about giving ArcGIS Server the path to the file on your machine, which it can't do anything with anyways, that button is actually uploading the contents of the file in the browser session so that when you hit Submit the file contents can be sent.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 19:56:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/importexistingservercertificate-error-unable-to/m-p/1386992#M4686</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2024-02-26T19:56:17Z</dc:date>
    </item>
  </channel>
</rss>

