--- ./libdnf/repo/Crypto.cpp_orig	2025-11-18 12:09:28.424801510 -0600
+++ ./libdnf/repo/Crypto.cpp	2025-11-18 12:10:36.899413357 -0600
@@ -91,6 +91,14 @@
 
 std::vector<Key> Key::keysFromFd(int fileDescriptor)
 {
+    const char *old_path = getenv("PATH");
+    if (old_path) {
+        std::string new_path(old_path);
+        if (new_path.find("/opt/freeware/bin") == std::string::npos) {
+            new_path += ":/opt/freeware/bin";
+            setenv("PATH", new_path.c_str(), 1);
+        }
+    } 
     std::vector<Key> keyInfos;
 
     char tmpdir[] = "/tmp/tmpdir.XXXXXX";
