Closed tafkam closed 9 years ago
I followed the tokenserver debugging steps from https://github.com/mozilla-services/syncserver/issues/52 and it turns out it was an SSL issue.
[Mon Apr 06 23:17:46 2015] [error] INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): authserver.mydomain.tld
[Mon Apr 06 23:17:46 2015] [error] ConnectionError(u"Failed to GET https://authserver.mydomain.tld/.well-known/browserid. Reason: hostname 'authserver.mydomain.tld' doesn't match u'unrelated-vhost.mydomain.tld",)
Changing the order of the vhosts in the Apache config did the trick, so the right certificate would be verified.
I'm glad you got this working. I wonder if we could fix this by e.g. including a more recent version of requests
or other dependencies to get automagically handling of certificate alt names.
Hi, I'm trying to setup a selfhosted fxa+syncserver environment. I've got to the point where everything seems to work but the syncserver BrowserID verification with the fxa-auth-server.
On the frontend I'm using Apache HTTPS (self-signed) reverse proxies on different vhosts to the fxa-auth-server, fxa-content-server and syncserver. On the backend I use mysql with one database each for the syncserver and fxa-auth-server.
In my Firefox browser everything works but the actual connection to the syncserver:
On syncserver the log shows the following:
Plainly accessing https://syncserver.mydomain.tld/token/1.0/sync/1.5 with curl or firefox throws a expected 401 error:
I've tried both the local and remote verifiers (tried public url: https://authserver.mydomain.tld/.well-known/browserid and http://127.0.0.1:9000/.well-known/browserid without SSL) in the [browserid] section. audiences is set to *.mydomain.tld
Any clue on what I'm missing, or how to patch the tokenserver? ;-)
Best Regards