]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools:Coding problems cause can not encode FMP Auth Header
authorFan, ZhijuX <zhijux.fan@intel.com>
Wed, 10 Apr 2019 08:40:33 +0000 (16:40 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Tue, 16 Apr 2019 05:14:14 +0000 (13:14 +0800)
GenerateCapsule: error: can not encode FMP Auth Header
The system cannot find the file specified.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/Capsule/GenerateCapsule.py

index ab1c811b222434c6c21671194e9c7dbe82825a75..4de363529889faba560a3d503f357eb6dfab8a68 100644 (file)
@@ -126,7 +126,7 @@ def SignPayloadOpenSsl (Payload, ToolPath, SignerPrivateCertFile, OtherPublicCer
     try:\r
         Process = subprocess.Popen (Command, stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE, shell = True)\r
         Result = Process.communicate(input = Payload)\r
-        Signature = Result[0].decode(encoding='utf-8', errors='ignore')\r
+        Signature = Result[0]\r
     except:\r
         raise ValueError ('GenerateCapsule: error: can not run openssl.')\r
 \r