I'm setting up a farm to share services across differente farms but for some reason search isn't working.
I have done everything I thk i should, exchange certs, create trust relationship, publish service, service permissions, connect remote service app, s2s auth etc. I added the remote site url on the crawler, it runs without erros, then I created a result source with remotesharepoint but when I test I get an Unauthorized (401), or when I search on my Enterprise search.
In the consumer farm I'm getting this error on the ULS:
SPApplicationAuthenticationModule: Error authenticating request, Error details: Header: 3000006;reason="Token contains invalid signature.";category="invalid_client", Body: {"error_description":"Invalid JWT token. Could not resolve issuer token."}
I have changed my PS command according this guy(http://steve.thelineberrys.com/following-sites-across-farms-with-sharepoint-2013-mysites/) that had the same problem but with the UPS, without any luck.
What am I doing wrong? Does anyone had the same problem? Thks alot