<?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 Re: Portal for ArcGIS Publish Exception - Could not Decrypt Token in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260784#M3527</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another thing that's puzzling me is that I'm not using Portal's built in identity store token based authentication.&amp;nbsp; I'm using&amp;nbsp; Windows Active Directory and PKI to secure access.&amp;nbsp; So why is the error referencing an issue with token decryption?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Dec 2016 20:42:37 GMT</pubDate>
    <dc:creator>EricMahaffey1</dc:creator>
    <dc:date>2016-12-08T20:42:37Z</dc:date>
    <item>
      <title>Portal for ArcGIS Publish Exception - Could not Decrypt Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260781#M3524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone had to troubleshoot an error when publishing to Portal for ArcGIS that reads: Publish exception 'Could not decrypt token.&amp;nbsp; Token may not be valid'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see an entry on both Portal and ArcGIS Server logs when trying to publish a feature service within Portal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 15:20:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260781#M3524</guid>
      <dc:creator>EricMahaffey1</dc:creator>
      <dc:date>2016-12-07T15:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Portal for ArcGIS Publish Exception - Could not Decrypt Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260782#M3525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version are you using? &amp;nbsp;Can you validate the federated Server?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 16:46:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260782#M3525</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2016-12-07T16:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Portal for ArcGIS Publish Exception - Could not Decrypt Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260783#M3526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan.&amp;nbsp; We're running v10.3.1 (both Portal and ArcGIS Server), and have configured a single server with dual web adaptors.&amp;nbsp; The instance of ArcGIS Server validates, and is also the hosting server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 17:15:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260783#M3526</guid>
      <dc:creator>EricMahaffey1</dc:creator>
      <dc:date>2016-12-07T17:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Portal for ArcGIS Publish Exception - Could not Decrypt Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260784#M3527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another thing that's puzzling me is that I'm not using Portal's built in identity store token based authentication.&amp;nbsp; I'm using&amp;nbsp; Windows Active Directory and PKI to secure access.&amp;nbsp; So why is the error referencing an issue with token decryption?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 20:42:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260784#M3527</guid>
      <dc:creator>EricMahaffey1</dc:creator>
      <dc:date>2016-12-08T20:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Portal for ArcGIS Publish Exception - Could not Decrypt Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260785#M3528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Internally, the communication between Server and Portal will still use tokens. &amp;nbsp;Can you try to login to the Server Admin API using a portal token? &amp;nbsp;Go to the Admin API and then instead of using the PSA, follow the instructions below that to use a Portal token instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 21:29:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260785#M3528</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2016-12-08T21:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Portal for ArcGIS Publish Exception - Could not Decrypt Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260786#M3529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion Jonathan.&amp;nbsp; I didn't see any instructions in you message.&amp;nbsp; Is this what you meant?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://server.arcgis.com/en/portal/10.3/administer/windows/accessing-the-administrator-directory-on-a-federated-server.htm" title="http://server.arcgis.com/en/portal/10.3/administer/windows/accessing-the-administrator-directory-on-a-federated-server.htm"&gt;Accessing the Administrator Directory on a federated server—Portal for ArcGIS (10.3 and 10.3.1) | ArcGIS for Server&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Windows Active Directory Authentication with PKI for both ArcGIS Server and Portal.&amp;nbsp; When I hit the ArcGIS Administrator Directory the browser prompts me to select PKI certficate and PIN in order to authenticate.&amp;nbsp; I can't find an option to login using a Portal Token.&amp;nbsp; The admin page won't even let me "Signout".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 13:45:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260786#M3529</guid>
      <dc:creator>EricMahaffey1</dc:creator>
      <dc:date>2016-12-09T13:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Portal for ArcGIS Publish Exception - Could not Decrypt Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260787#M3530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the late reply. &amp;nbsp;Does it matter if you go through 6443, or is that what you're doing already? &amp;nbsp; &amp;nbsp;I think it may be best to reach out to Technical Support so they can take a closer look at the setup and see what could be wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 18:36:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260787#M3530</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2016-12-13T18:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Portal for ArcGIS Publish Exception - Could not Decrypt Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260788#M3531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up figuring out the problem.&amp;nbsp; It's a long story so I'll try to explain all that I found and resolved.&amp;nbsp; It goes back to your original question of whether or not I could validate the federated server.&amp;nbsp; Apparently the instance of ArcGIS Server was not completely federated with Portal in my case.&amp;nbsp; Even though I could validate it through the Portal Home page ( i.e. /home/organization.html and selecting the "Servers" tab).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Pardon the rambled dump of information that is about to follow, but I pulled it from my notes which aren’t written as a well-developed story.)&amp;nbsp; I think it stems back to some issues I was having with getting certificates loaded properly on the server.&amp;nbsp; At that time I was getting an error "Invalid SSL certificate found.&amp;nbsp; PKIX path building failed..... ".&amp;nbsp; We ended up having to enable client certificates using a NETSH command (our resident server admin took care of it so I don't know all the details).&amp;nbsp; After which federating through the Portal Home page still wasn't working, so I dug into it a bit more.&amp;nbsp; In the Portal logs there was a 403 "not accessible" error associated with a link to the ArcGIS Portal Directory (i.e. /sharing/portals/self/servers/register).&amp;nbsp; On a whim I tried navigating to that link within a browser.&amp;nbsp; I noticed that it gives all of the same options to federate a server as the Portal Home page did.&amp;nbsp; I entered the information, checked "is hosted" to true, and clicked "register".&amp;nbsp; When I went back to the Portal Home federation page the server was now federated and listed as the hosting server.&amp;nbsp; Clicking "Validate Server" verified that all appeared to be configured properly.&amp;nbsp; Well when I tried a test in portal (add a zipped shape file and publish as feature layer), another error occurred.&amp;nbsp; This time it was “Failed to publish item…….exception.&amp;nbsp; Hostname in certificate didn’t match”.&amp;nbsp; To get past this I had to export the certificate used to configure https site bindings within IIS (root certificate with the private key), then import the certificate through the ArcGIS Server Administrator Directory (Home&amp;gt;machines&amp;gt;”machine name”&amp;gt;sslcertificates&amp;gt;importexistingservercertificate).&amp;nbsp; After that I was able to finish configuring the server to use the new certificate for SSL.&amp;nbsp; This finally brings us to the error that I originally posted.&amp;nbsp; The site wouldn’t publish a feature layer (Failed to publish item….. .zip …… could not decrypt token.&amp;nbsp; Token may not be valid”.&amp;nbsp; While doing some digging I found out that it’s possible to import all services within a federated server using the ArcGIS Server Administrator Directory (Home&amp;gt;Services&amp;gt;Supported Operations&amp;gt;federate).&amp;nbsp; However, this wasn’t an option on my page.&amp;nbsp; This is what lead me to believe that the server wasn’t completely federated.&amp;nbsp; So I then unregistered the server federation through the ArcGIS Portal Directory (REST endpoint).&amp;nbsp; Then going back to the Portal Home page I was finally able to federate the server properly.&amp;nbsp; Testing proved that a feature layer could now be published.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again apologies to all for the long winded info dump.&amp;nbsp; I just wanted to throw it out there in case anyone else runs into the same problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 20:00:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260788#M3531</guid>
      <dc:creator>EricMahaffey1</dc:creator>
      <dc:date>2016-12-13T20:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Portal for ArcGIS Publish Exception - Could not Decrypt Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260789#M3532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks had the same issue on 10.6 pre-release unfederated and federated fixed it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 02:21:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/portal-for-arcgis-publish-exception-could-not/m-p/260789#M3532</guid>
      <dc:creator>JohnPlunkett</dc:creator>
      <dc:date>2018-01-08T02:21:27Z</dc:date>
    </item>
  </channel>
</rss>

