Closed Bug 1736453 Opened 1 month ago Closed 1 month ago

pysign.py doesn't run under python 3

Categories

(Core :: Security: PSM, defect, P3)

defect

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: bryce, Assigned: bryce)

Details

(Whiteboard: [psm-assigned])

Attachments

(1 file)

pysign.py requires some tweaks to run nicely

  • It needs to be updated to run under python 3.
  • The relative path to pykey needs to be updated.

I've been muddling around here while doing some media work, and figure it may be worth upstreaming my local changes to get this working.

Not sure if this is the best component for this, feel free to change it.

This also fixes the relative path to pykey.py, which appears to have changed
since the script was first written.

Component: Security → Security: PSM
Whiteboard: [psm-assigned]

For posterity (and my own benefit) this script can be run via:

./mach python security/manager/ssl/tests/unit/test_content_signing/pysign.py

which means one can do things like

cat security/manager/ssl/tests/unit/test_content_signing/test.txt | ./mach python security/manager/ssl/tests/unit/test_content_signing/pysign.py

or similar, which avoids the need to create a virtual env or install the deps in the system pip.

Pushed by bvandyk@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3f145a672ed6
Update pysign.py to work under python 3. r=keeler
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.