summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFan, ZhijuX <zhijux.fan@intel.com>2019-04-10 16:40:33 +0800
committerFeng, Bob C <bob.c.feng@intel.com>2019-04-16 13:14:14 +0800
commit87bfb9bcb74415caf5aaff1e5b9bcdd85fdcbc92 (patch)
treeec9762b177edcd2b334f25d9b9600d8c555ac437
parent05217d210e8da37b47d0be58ec363f7af2fa1c18 (diff)
downloadedk2-87bfb9bcb74415caf5aaff1e5b9bcdd85fdcbc92.tar.gz
edk2-87bfb9bcb74415caf5aaff1e5b9bcdd85fdcbc92.tar.bz2
edk2-87bfb9bcb74415caf5aaff1e5b9bcdd85fdcbc92.zip
BaseTools:Coding problems cause can not encode FMP Auth Header
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>
-rw-r--r--BaseTools/Source/Python/Capsule/GenerateCapsule.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Capsule/GenerateCapsule.py b/BaseTools/Source/Python/Capsule/GenerateCapsule.py
index ab1c811b22..4de3635298 100644
--- a/BaseTools/Source/Python/Capsule/GenerateCapsule.py
+++ b/BaseTools/Source/Python/Capsule/GenerateCapsule.py
@@ -126,7 +126,7 @@ def SignPayloadOpenSsl (Payload, ToolPath, SignerPrivateCertFile, OtherPublicCer
try:
Process = subprocess.Popen (Command, stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE, shell = True)
Result = Process.communicate(input = Payload)
- Signature = Result[0].decode(encoding='utf-8', errors='ignore')
+ Signature = Result[0]
except:
raise ValueError ('GenerateCapsule: error: can not run openssl.')