Ok, now seem work fine. I can sign and decrypt the mail ecc... It's a very experimental support and for now only one key of 2048 bits is recognized with the personal certificate and other CA certificates stored in SC. ( The most problem is mapping of memory, it's proprietary and not documented )
Last question ( i hope... ): The public key is stored in a EF with ID 0005 but in this EF there are all public keys that the smartcard can stored in consecutive mode.I use: sc_format_path("0005", &pubkey_info.path); rv = sc_pkcs15emu_add_rsa_pubkey(p15card, &pubkey_obj, &pubkey_info); but opensc can't read the public key ( it's stored in a specific part and doesn't start at first byte of this EF 0005 ).. when i try to read the public key with : pkcs15-tool --read-public-key 1 , this is the output: [pkcs15-tool] asn1.c:1169:asn1_decode: mandatory ASN.1 object 'publicKeyCoefficients' not found [pkcs15-tool] asn1.c:1181:asn1_decode: returning with: Required ASN.1 object not found [pkcs15-tool] pkcs15-pubkey.c:256:sc_pkcs15_decode_pubkey_rsa: ASN.1 parsing of public key failed: Required ASN.1 object not found Public key enumeration failed: Invalid ASN.1 object How can I resolve this problem? How can I put manually the public key? PS: for sign and decrypt this is not a problem..but i wish to resolve it. Thanks in advance :-) Bye -- Nastasi Antonio GPG-Key: 0xDA3574F0 _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel