diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-04-19 17:53:50 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-04-27 21:21:30 +0800 |
commit | fcdb928a82c4ed3d776d05c277d5fb30f00f2120 (patch) | |
tree | 7a97e56be262dafb2b42a7251783583260ba08c4 /BaseTools/Source/Python | |
parent | a3607b263baabb360dcc67aeb26f9e80018ee3cd (diff) | |
download | edk2-fcdb928a82c4ed3d776d05c277d5fb30f00f2120.tar.gz edk2-fcdb928a82c4ed3d776d05c277d5fb30f00f2120.tar.bz2 edk2-fcdb928a82c4ed3d776d05c277d5fb30f00f2120.zip |
BaseTools: Rsa2048Sha256GenerateKeys to support OPENSSL_PATH has space
Update Rsa2048Sha256GenerateKeys Tool to support the case that
OPENSSL_PATH has space characters.
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python')
-rw-r--r-- | BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256GenerateKeys.py | 2 |
1 files changed, 2 insertions, 0 deletions
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
|