Mozilla的服务器端Web签名操作
websigning的Python项目详细描述
见https://wiki.mozilla.org/Apps/WebApplicationReceipt/SigningService
开发和测试
创建您选择的虚拟机并激活它:
virtualenv websigning source websigning/bin/activate
或者使用virtualenvwrapper:
mkvirtualenv websigning
安装依赖项:
python setup.py develop
运行测试:
python setup.py nosetests
测试时,您可能会看到以下行的输出:
“InsecurePlatformWarning: A true SSLContext object is not available.”
这似乎是新版本的请求模块的一个特性。这可以通过运行以下命令安装来解决:
pip install requests[security]