On 13/02/2011 14:38, Andreas Jellinghaus wrote:

> yes, smart cards are quite old technology, files can't grow on demand :(
I knew that.

> sorry, I know ono way to calculate such file sizes. all you can do is try and
> error.
Yup. Hard to predict correct size, since certs can be of different size.

> the debug log file should show you what file is toosmall, so you can find out
> what file needs to be initialized bigger.
Using 3 times '-v' made me find that file 4404 is the one "too small".
Not knowing exact meaning of options in /usr/share/opensc/myeid.profile, 
section 'option default / macros', I tried setting "cdf-size = 4096", 
and now I could reinit the card and store my 4 certs on it!

What's the downside of setting it to bigger size? Maybe even 8192 or so?
Can I override default profiles on a per-user basis in a simple way? I 
already tried copying myeid.profile and using -p, but I had to use 
../../../../path/to/current/dir/myeid (.. to go to root, then full path 
of my modified profile, w/o .profile extension).

BYtE!
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to