OpenVPN/easy-rsa — pull request #4 by Wesseldr (2013-05-31 19:27:31+00:00)
Title: Fix -n "User PIN:" mis-print and Token/SmartCard keysize adjust in vars

Fix -n "User PIN:" mis-print
The echo -n dos not work in a vanilla Bourne shell (not linked to bash) and just prints:

-n User PIN:
(also a new line is added and the cursor is on the next line)

Changed it into using printf which is more consistent between different shells

PKCS11_KEY_SIZE in vars for setting Token/SmartCard key size (1024 or 2048)
Added the PKCS11_KEY_SIZE=1024 in the ./vars as default value.

Changed the pkitool to use the value from PKCS11_KEY_SIZE for setting the internal priv/pub key size of smart cards and tokens. Old cards only support 1024, newer cards support 2048+ bits internally.

Hope this helps!

Wessel