krb5 commit: Add a PKINIT test using RSA
Greg Hudson
ghudson at mit.edu
Wed Jul 20 11:26:12 EDT 2016
https://github.com/krb5/krb5/commit/b55c2ecf1e938132524f2bc079ec1ba3734b0383
commit b55c2ecf1e938132524f2bc079ec1ba3734b0383
Author: Greg Hudson <ghudson at mit.edu>
Date: Wed May 4 11:25:32 2016 -0400
Add a PKINIT test using RSA
In t_pkinit.py, add a simple PKINIT test using RSA encryption instead
of a Diffie-Hellman exchange.
src/tests/t_pkinit.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/tests/t_pkinit.py b/src/tests/t_pkinit.py
index f0214b6..526473b 100755
--- a/src/tests/t_pkinit.py
+++ b/src/tests/t_pkinit.py
@@ -111,6 +111,12 @@ realm.kinit(realm.user_princ,
realm.klist(realm.user_princ)
realm.run([kvno, realm.host_princ])
+# Try again using RSA instead of DH.
+realm.kinit(realm.user_princ,
+ flags=['-X', 'X509_user_identity=%s' % file_identity,
+ '-X', 'flag_RSA_PROTOCOL=yes'])
+realm.klist(realm.user_princ)
+
# Run the basic test - PKINIT with FILE: identity, with a password on the key,
# supplied by the prompter.
# Expect failure if the responder does nothing, and we have no prompter.
More information about the cvs-krb5
mailing list