From 87bfb9bcb74415caf5aaff1e5b9bcdd85fdcbc92 Mon Sep 17 00:00:00 2001 From: "Fan, ZhijuX" Date: Wed, 10 Apr 2019 16:40:33 +0800 Subject: [PATCH] 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 Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan Reviewed-by: Bob Feng --- BaseTools/Source/Python/Capsule/GenerateCapsule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.')