Here is my complete script that seems to work on the emulator:
install -i |ssd.01 -q c9#(45) -s A0000000035350 A000000003535041
/card set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f set-key 1/1/DES-ECB/404142434445464748494a4b4c4d4e4f 1/2/DES-ECB/404142434445464748494a4b4c4d4e4f 1/3/DES-ECB/404142434445464748494a4b4c4d4e4f auth -delete |instance -delete |testpkg -delete |ssd.01 install -i |ssd.01 -q c9#(45) -s A0000000035350 A000000003535041 /select |ssd.01 auth mac put-keyset 1 select auth ls /mode trace=off upload -c "test.cap" /mode trace=on install -i |instance -q c9#() |testpkg |testapp extradite |ssd.01 |instance ls
I have auth to ISD but for some reasons i can't delete the applet from SSD. I have got error 6985.Try deleting the package with related objects (delete -r pkgAid in JCOP tools).
Is it possible to make SSD with such privileges -- Authorized Management or delegate Menagement(I did not encounter with such managemen, but i think that you must have token in Install command.The Token have made with ISD keys) to have opportunity installing applets only if i know keys of SSD.You can install an SSD with delegated management but you do need LOAD and INSTALL tokens to be able to use it. The tokens are generated based on a key and details of the object to be loaded/installed so it is a little restrictive (by design).
I read in documentations, that if i have keys of SSD i can install there my applets,That is essentially how the install and extradite mentioned above works. You install in the ISD and then extradite to the SSD so it is in a different security zone with different keys for secure channel.
How do yo have created the new SD? I have a smartcard GP 2.1.1 compatible and I want to create my own SD but don't know how.In GP 2.1.1 you can create an SSD. Is this what you mean? If you want a separate security domain with Authorised Management that behaves just like the ISD does, you can't in GP2.1.1 (to the best of my knowledge).