fixing Publish exception ' Exception: hostname in certificate didn't match: != OR '

2864
3
Jump to solution
12-09-2017 12:01 PM
FranciscoCosta1
Occasional Contributor

Hi all,

I finished configuring a single machine basic deployment, following the tutorial of ArcGIS Enterprise, and all seems to work (i managed to add a validated federated server as hosting to my machine). Now when i try to add a hosted shapefile: going Portal > MyContent > Add Item from desktop > browsing to a zipped shapefile and filling tags fields > clicking ok it raises a Publish exception ' Exception: hostname in certificate didn't match: != OR '.

Legend:

<fqdn> is fully qualified domain name, in my case it's the windows computer full name.

webadaptor name for portal = 'webadaptor_portal'

webadaptor name for server = 'webadaptor_server'

I created a self signed certificate using the tutorial in ESRI, in arcgis server admin with the following specs: 

CN=<fqdn>

Subject Alternative Name(SAN): DNSName: <fqdn>

In arcgis server admin > security > config there are the following specs:

"portalUrl": "https://<fqndn>/webadaptor_portal",
"privatePortalUrl": "https://<fqndn_allcaps>:7443/arcgis",
"portalSecretKey": "#####################",
"portalMode": "ARCGIS_PORTAL_FEDERATION",
"serverId": "##################",
"serverUrl": "https://<fqndn>/webadaptor_server",
"privateHostingServerUrl": "https://localhost:6443/arcgis"

Is this happening because CN=<fqdn> is different than "privateHostingServerUrl": "https://localhost:6443/arcgis", or why and how to fix this?

Best Regards,

Francisco.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
JonathanQuinn
Esri Notable Contributor

See my reply in https://community.esri.com/thread/206467-how-to-fix-fail-to-update-server-in-hosting-setup-of-machin... .

You shouldn't federate using "localhost".  Use the machine name Server is installed on. The problem is that Portal is validating the certificate and "localhost" does not match the CN of the certificate, which is the machine name Server is installed on.

View solution in original post

3 Replies
JonathanQuinn
Esri Notable Contributor

See my reply in https://community.esri.com/thread/206467-how-to-fix-fail-to-update-server-in-hosting-setup-of-machin... .

You shouldn't federate using "localhost".  Use the machine name Server is installed on. The problem is that Portal is validating the certificate and "localhost" does not match the CN of the certificate, which is the machine name Server is installed on.

FranciscoCosta1
Occasional Contributor

Check the reply in the How to fix valid server adding as hosting in portal ArcGIS enterprise Base deployment configures? i will mark this one as complete, of course thank you for that it did work well cheers!

0 Kudos
DiegoNegron
New Contributor III

I wanted to chime in here. I had the same error message except in my case I had a CA signed certificate. I had to configure ArcServer to use that certificate instead of using the self signed certificate. This is found in this thread. Just wanted to link the two as this fixed my issue.

https://community.esri.com/thread/218192-publishing-exception-hostname-doesnt-match