mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
Hammer: Remove openssl command altogether
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
# Copyright (C) 2018-2024 Internet Systems Consortium, Inc. ("ISC")
|
# Copyright (C) 2018-2025 Internet Systems Consortium, Inc. ("ISC")
|
||||||
#
|
#
|
||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
@@ -1311,13 +1311,6 @@ def _configure_mysql(system, revision, features):
|
|||||||
if 'tls' in features:
|
if 'tls' in features:
|
||||||
if not os.path.isdir(cert_dir):
|
if not os.path.isdir(cert_dir):
|
||||||
execute('sudo mkdir -p {}'.format(cert_dir))
|
execute('sudo mkdir -p {}'.format(cert_dir))
|
||||||
# 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 src/lib/asiolink/testutils/ca/kea-server.key ' \
|
|
||||||
'-out src/lib/asiolink/testutils/ca/kea-server.key', raise_error=False)
|
|
||||||
if exit_code != 0:
|
|
||||||
log.warning(f'openssl command failed with exit code {exit_code}, but continuing...')
|
|
||||||
for file in [
|
for file in [
|
||||||
'./src/lib/asiolink/testutils/ca/kea-ca.crt',
|
'./src/lib/asiolink/testutils/ca/kea-ca.crt',
|
||||||
'./src/lib/asiolink/testutils/ca/kea-client.crt',
|
'./src/lib/asiolink/testutils/ca/kea-client.crt',
|
||||||
|
Reference in New Issue
Block a user