Skip to content

Commit

Permalink
Add a PKINIT test using RSA
Browse files Browse the repository at this point in the history
In t_pkinit.py, add a simple PKINIT test using RSA encryption instead
of a Diffie-Hellman exchange.
  • Loading branch information
greghudson committed Jul 19, 2016
1 parent 5eb0d44 commit b55c2ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tests/t_pkinit.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@
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.
Expand Down

0 comments on commit b55c2ec

Please sign in to comment.