mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
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:
parent
05217d210e
commit
87bfb9bcb7
@ -126,7 +126,7 @@ def SignPayloadOpenSsl (Payload, ToolPath, SignerPrivateCertFile, OtherPublicCer
|
|||||||
try:
|
try:
|
||||||
Process = subprocess.Popen (Command, stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE, shell = True)
|
Process = subprocess.Popen (Command, stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE, shell = True)
|
||||||
Result = Process.communicate(input = Payload)
|
Result = Process.communicate(input = Payload)
|
||||||
Signature = Result[0].decode(encoding='utf-8', errors='ignore')
|
Signature = Result[0]
|
||||||
except:
|
except:
|
||||||
raise ValueError ('GenerateCapsule: error: can not run openssl.')
|
raise ValueError ('GenerateCapsule: error: can not run openssl.')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user