I've set up an AGE Server (Server, Webadaptor x2, Portal, Data Store) on a single self-certified VM and can't add Shapefiles to a map in Portal - it just throws above error. I GUESS this is because in Portal under Servers I added https://localhost:2443/arcgis/datastore and https://localhost:6443/arcgis instead of MACHINENAME.local/yaddayadda and now the SSL certificate does not match.
However, there is no way to remove that entry. Furthermore, when I try to add the Data Store server with the machine name address, portal tells me "ArcGIS Server is already a federated server". How do I fix this, or isn't this the proper way anyway?