I'm playing with smartcards and I'm wonderig if it is possible to define pkcs15 structure from scratch. Syntax of https://github.com/OpenSC/OpenSC/blob/master/src/pkcs15init/pkcs15.profile is undocumented, but I think I might achieve what I wan't by editing it. Do you have any clues what to start with? Also side question is, if it is possible to read/write arbitrary files with opensc?
Usecase
Lets assume that we want to initialize card with a one pregenerated private and public key where user will be only allowed to sign when authorized by PIN.