Working! Local Key Exchange Server
To fix the "ImportError" from the last post: in /opt/mozilla-key-exchange-server/keyexchange/run.py, I commented out: ini_file = os.path.join('/etc', 'keyexchange', 'production.ini') and added:
_CURDIR = os.path.dirname(os.path.abspath(__file__))
ini_file = os.path.join(_CURDIR, '../etc', 'production.ini')
In /opt/mozilla-key-exchange-server/etc/keyexchange.wsgi, before from keyexchange.run import application, I added:
import site
site.addsitedir('/opt/mozilla-key-exchange-server/lib/python2.7/site-packages')
Finally, I realized that "memcached" isn't optional so I installed it, started it and my key-exchange server finally gave me a "Pair a device" key.
Here's the updated PKGBUILD which contains the patches above so all of this is automatic.
