Skip to main content

sign-xpi-lib

https://img.shields.io/pypi/v/sign_xpi_lib.svg https://img.shields.io/travis/mozilla-services/sign-xpi-lib.svg Documentation Status Updates

A library to handle the manipulations of signing XPIs at Mozilla.

Overview

Information about how XPI signing works in Firefox can be found at the Mozilla wiki.

A tool that generates PKCS7 signatures in the correct format is autograph, which see for more information.

This library is used by the sign-xpi lambda, but can be used by other clients too.

Usage:

from sign_xpi_lib import XPIFile

x = XPIFile('hypothetical-addon-unsigned.xpi')

# this is the mozilla.sf file computed by hashing mozilla.rsa
signed_manifest = x.signed_manifest
print(signed_manifest)

# This probably talks to Autograph or an HSM or whatever
signature = 'generate-a-signature somehow'

x.make_signed('hypothetical-addon-signed.xpi', 'mozilla.rsa',
              signed_manifest, signature)

See the tests for more details.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2017-07-07)

  • First release on PyPI.

Release files for sign-xpi-lib 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sign-xpi-lib 0.1.0
File Size Uploaded
sign-xpi-lib-0.1.0.tar.gz 24.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sign-xpi-lib 0.1.0
File Interpreter ABI Platform
sign_xpi_lib-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 32.1 kB

Release files / sign-xpi-lib-0.1.0.tar.gz

Download URL sign-xpi-lib-0.1.0.tar.gz
Size 24.3 kB
Tags Source
SHA-256 checksum
How to use checksums
22ec00d91327085762089db0a6aeec941cf54428b7f4f996a068911807416d98
BLAKE2b-256 checksum
How to use checksums
2a9c7958274a43073f2fa4589cce478194ed456c07a625b43a5afc2d4bbc341e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / sign_xpi_lib-0.1.0-py2.py3-none-any.whl

Download URL sign_xpi_lib-0.1.0-py2.py3-none-any.whl
Size 7.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
00e16b22385e60e1b7253e090670254f455fe5012b986c964ff4ed5e4b57b640
BLAKE2b-256 checksum
How to use checksums
0310dc8507bab0debbd199c8739b83e1d26821bef879d61b2acd8f6b8ff5e647
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page