From fcdb928a82c4ed3d776d05c277d5fb30f00f2120 Mon Sep 17 00:00:00 2001 From: Yonghong Zhu Date: Wed, 19 Apr 2017 17:53:50 +0800 Subject: [PATCH 1/1] BaseTools: Rsa2048Sha256GenerateKeys to support OPENSSL_PATH has space Update Rsa2048Sha256GenerateKeys Tool to support the case that OPENSSL_PATH has space characters. Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu Reviewed-by: Liming Gao --- .../Python/Rsa2048Sha256Sign/Rsa2048Sha256GenerateKeys.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256GenerateKeys.py b/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256GenerateKeys.py index df2d9896ca..95a636966c 100644 --- a/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256GenerateKeys.py +++ b/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256GenerateKeys.py @@ -64,6 +64,8 @@ if __name__ == '__main__': try: OpenSslPath = os.environ['OPENSSL_PATH'] OpenSslCommand = os.path.join(OpenSslPath, OpenSslCommand) + if ' ' in OpenSslCommand: + OpenSslCommand = '"' + OpenSslCommand + '"' except: pass -- 2.39.2