diff options
Diffstat (limited to 'src/conf_mode/vpn_rsa-keys.py')
-rwxr-xr-x | src/conf_mode/vpn_rsa-keys.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conf_mode/vpn_rsa-keys.py b/src/conf_mode/vpn_rsa-keys.py index a0e2e2690..6cf7eba6e 100755 --- a/src/conf_mode/vpn_rsa-keys.py +++ b/src/conf_mode/vpn_rsa-keys.py @@ -56,8 +56,9 @@ def verify(conf): def get_local_key(local_key): for path in LOCAL_KEY_PATHS: - if os.path.exists(path + local_key): - return path + local_key + full_path = os.path.join(path, local_key) + if os.path.exists(full_path): + return full_path return False def generate(conf): |