update: make --create-key work with a HSM

This commit is contained in:
Marcus Hoffmann 2020-08-14 17:27:08 +02:00
parent 004d13a48a
commit a8e9653b96
3 changed files with 24 additions and 14 deletions

View file

@ -2323,7 +2323,7 @@ def main():
if 'keystorepass' not in config:
config['keystorepass'] = password
common.write_to_config(config, 'keystorepass', config['keystorepass'])
if 'keypass' not in config:
if 'keypass' not in config and not config['keystore'] == "NONE":
config['keypass'] = password
common.write_to_config(config, 'keypass', config['keypass'])
common.genkeystore(config)