From cc7086aa672f52d2fa2d71368e9d9f311ec366bd Mon Sep 17 00:00:00 2001 From: Andrei Pavel Date: Tue, 22 Apr 2025 15:36:41 +0300 Subject: [PATCH] [#3812] Hammer: Remove openssl command altogether --- hammer.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/hammer.py b/hammer.py index f128954eac..0faceb8f4a 100755 --- a/hammer.py +++ b/hammer.py @@ -1416,15 +1416,6 @@ def _configure_mysql(system, revision, features): execute('sudo mkdir -p {}'.format(cert_dir)) # Parent dir of hammer.py. p = os.path.dirname(os.path.realpath(os.path.abspath(sys.argv[0]))) - # Some systems, usually old ones, might require a cerain PKCS format - # of the key. Try to regenerate it here, but don't stop if it fails. - # If the key is wrong, it will fail later anyway. - exit_code = execute('openssl rsa -in kea-server.key -out kea-server.key.out', - cwd=f'{p}/src/lib/asiolink/testutils/ca', raise_error=False) - if exit_code == 0: - execute('mv kea-server.key.out kea-server.key', cwd=f'{p}/src/lib/asiolink/testutils/ca', raise_error=False) - else: - log.warning('openssl command failed with exit code %d, but continuing...', exit_code) for file in [ f'{p}/src/lib/asiolink/testutils/ca/kea-ca.crt', f'{p}/src/lib/asiolink/testutils/ca/kea-client.crt',