summaryrefslogtreecommitdiffstats
path: root/base/tps/tools/raclient/enroll.tps.ec
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2012-08-15 14:06:08 -0400
committerAde Lee <alee@redhat.com>2012-08-15 14:06:08 -0400
commit75e1c66acb48e67951fc0ce5680328773fe837ae (patch)
tree0da680311142b5c2c80012eae86817aafeb1dad5 /base/tps/tools/raclient/enroll.tps.ec
parent0198bf929702b756214b5f509ffe677ca58bf650 (diff)
downloadpki-75e1c66acb48e67951fc0ce5680328773fe837ae.tar.gz
pki-75e1c66acb48e67951fc0ce5680328773fe837ae.tar.xz
pki-75e1c66acb48e67951fc0ce5680328773fe837ae.zip
https://fedorahosted.org/pki/ticket/237
ECC support for tpsclient two parameters are added in the config file (see enroll.tps.ec for example): slotnamefile - this points to a file that contains the slot name. The reason why the slot name goes into another file instead of the conf file is because the existing conf file uses spaces for deliminator and I don't want to change the usage (and QE's tests) by changing it to something else. tokpasswod is the tokebn password This ECC feature requires the up-coming ECC supporting TPS to trigger. Testing of the ECC specific areas requires the availability of such ECC TPS. Without it, one can test with the old RSA method to see if it's broken.
Diffstat (limited to 'base/tps/tools/raclient/enroll.tps.ec')
-rwxr-xr-xbase/tps/tools/raclient/enroll.tps.ec43
1 files changed, 43 insertions, 0 deletions
diff --git a/base/tps/tools/raclient/enroll.tps.ec b/base/tps/tools/raclient/enroll.tps.ec
new file mode 100755
index 000000000..b6e25069d
--- /dev/null
+++ b/base/tps/tools/raclient/enroll.tps.ec
@@ -0,0 +1,43 @@
+# --- BEGIN COPYRIGHT BLOCK ---
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation;
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301 USA
+#
+# Copyright (C) 2007 Red Hat, Inc.
+# All rights reserved.
+# --- END COPYRIGHT BLOCK ---
+#
+########################################################
+# Description:
+# This data file tests enrollment operation.
+#
+# Execution:
+# tpsclient < enroll.test
+#
+########################################################
+op=var_set name=ra_host value=host1
+op=var_set name=ra_port value=7891
+op=var_set name=ra_uri value=/nk_service
+# print original token status
+op=token_set cuid=a00192030405060708c9 msn=01020304 app_ver=6FBBC105 key_info=0101 major_ver=0 minor_ver=0
+op=token_set auth_key=404142434445464748494a4b4c4d4e4f
+op=token_set mac_key=404142434445464748494a4b4c4d4e4f
+op=token_set kek_key=404142434445464748494a4b4c4d4e4f
+op=token_status
+# slotnamefile is the file name which contains the name of the token
+op=ra_enroll uid=pinmanager num_threads=1 pwd=netscape new_pin=netscape extensions=tokenType=userKey keygen=true slotnamefile=tokenname tokpasswd=redhat
+# print changed token status
+op=token_status
+op=exit
+