ipa-otptoken-import provides an option (-k KEYFILE) to import an encrypted PSKC file but this option does not work with python3 in RHEL8 and above, because the key should be passed in binary format to the cryptography functions instead of string format. Open the keyfile in binary mode ...
fromipatests.pytest_ipa.integrationimporttasks PASSWORD="Secret123" Expand DownExpand Up@@ -251,7 +250,14 @@ def test_krbtpolicy_jitter_otp_maxlife(self, reset_to_default_policy): master.run_command(["ipa","user-mod",USER1, "--user-auth-type","otp"]) ...