]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
Hammer: Remove openssl command altogether
authorAndrei Pavel <andrei@isc.org>
Wed, 7 May 2025 08:53:14 +0000 (11:53 +0300)
committerAndrei Pavel <andrei@isc.org>
Wed, 7 May 2025 09:02:25 +0000 (12:02 +0300)
hammer.py

index 43a24eb8082cdef259a6bd04ff607129f5a8bbcb..27d8796278596a35db9b7a7f7976888e23d70f97 100755 (executable)
--- a/hammer.py
+++ b/hammer.py
@@ -1,6 +1,6 @@
 #!/usr/bin/env python3
 
-# Copyright (C) 2018-2023 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
 # License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -1278,13 +1278,6 @@ def _configure_mysql(system, revision, features):
     if 'tls' in features:
         if not os.path.isdir(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 [
             './src/lib/asiolink/testutils/ca/kea-ca.crt',
             './src/lib/asiolink/testutils/ca/kea-client.crt',