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>
This commit is contained in:
Fan, ZhijuX 2019-04-10 16:40:33 +08:00 committed by Feng, Bob C
parent 05217d210e
commit 87bfb9bcb7
1 changed files with 1 additions and 1 deletions

View File

@ -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.')