Sorry for posting to an old topic, but I also just got my Yubikey. To get all 38 characters, you need to modify ykpers-args.c to allow 16 bytes (32 hex digits) of fixed identity. I couldn't figure out a filename extension that was acceptable for a file upload, so here's the patch inline:
Code:
--- ykpers-1.6.3/ykpers-args.c.~1~ 2011-12-14 08:41:11.000000000 -0800
+++ ykpers-1.6.3/ykpers-args.c 2012-05-26 01:59:59.000000000 -0700
@@ -309,7 +309,7 @@
size_t fixedbinlen = 0;
int rc = hex_modhex_decode(fixedbin, &fixedbinlen,
fixed, fixedlen,
- 0, 16, true);
+ 0, 32, true);
if (rc <= 0) {
fprintf(stderr,
"Invalid fixed string: %s\n",
After doing that, you should be able to do something like:
Code:
$ ./ykpersonalize -2 -o-static-ticket -oshort-ticket -o-strong-pw1 -o-strong-pw2 -o-man-update \
-ofixed=h:0405060708090a0b0c0d0e0f10111213 -ouid=141516171819 -a1a1b1c1d1e1f20212223242526278485
Firmware version 2.2.3 Touch level 1795 Program sequence 4
Configuration data to be written to key configuration 2:
fixed: m:cfcgchcicjckclcncrctcucvbcbbbdbe
uid: h:141516171819
key: h:1a1b1c1d1e1f20212223242526278485
acc_code: h:000000000000
ticket_flags: APPEND_CR
config_flags: SHORT_TICKET
extended_flags:
Commit? (y/n) [n]: y
A long press then yields:
Code:
abcdefghijklmnopqrstuvwxyz1234567890AB