A little script to re-initialize the card (erase and load)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

A little script to re-initialize the card (erase and load)

Jan Schermer
Hi,
I wrote this because from time to time (2x a Month) my PIN gets locked
out - usually because I'm drunk and can't type, but sometimes because of
a software bug (ssh is such a b*tch to me). I have never been able to
unblock the PIN with the PUK and this is where my script comes handy...

It is very straightforward and simple, yet (I hope) flexible to customize.

It prompts user for the passwords (SOPIN, SOPUK, PIN, PUK, passphrase
for private keys) and a list of certificates to store on the key.
It then creates separate auth-id for every certificate and stores the
associated certificate.

The default profile used is "pkcs15+oberthur", without it, I couldn't
store 4 different IDs to my iKey 3000.

Comments are welcome (is using a separate auth-id for everything a good
idea?)

If you make a change, please CC me directly.

Thank you

--
Jan Schermer
Freelance UNIX Specialist

GSM: +420-608022225
email: [hidden email]
ICQ: 19466257
WWW: http://www.zviratko.net


_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel

mkcard.sh (3K) Download Attachment
smime.p7s (3K) Download Attachment