mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 13:37:55 +00:00
[#3812] Hammer: Remove openssl command altogether
This commit is contained in:
@@ -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',
|
||||
|
Reference in New Issue
Block a user