Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a09095c authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "releasetools: Fix the payload public key replacement."

parents c78147c6 13b6962e
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -502,10 +502,14 @@ def ReplaceOtaKeys(input_tf_zip, output_tf_zip, misc_info):
            " as payload verification key.\n\n")

    print "Using %s for payload verification." % (mapped_keys[0],)
    common.ZipWrite(
    cmd = common.Run(
        ["openssl", "x509", "-pubkey", "-noout", "-in", mapped_keys[0]],
        stdout=subprocess.PIPE)
    pubkey, _ = cmd.communicate()
    common.ZipWriteStr(
        output_tf_zip,
        mapped_keys[0],
        arcname="SYSTEM/etc/update_engine/update-payload-key.pub.pem")
        "SYSTEM/etc/update_engine/update-payload-key.pub.pem",
        pubkey)

  return new_recovery_keys