To delete a pkcs15 structure and create a new one, simply use pkcs15-init -EC that might be simpler than the script provided. It works with opensc cvs and 0.8.0-rc1, I don't know about 0.7.0 version. Also please keep in mind: the script does not call "verify" for authentication, however that might be necessary. Andreas