[Pkg-openssl-devel] Bug#575141: opensc-pkcs11 errors when reading CAC (smartcard)

Greg Monahan GMonahan at lce.com
Tue Mar 23 18:34:56 UTC 2010


package: opensc_0.11.13-1_amd64
package: libssl0.9.8_0.9.8m-2_amd64

When I run, pkcs11-tool -O
I get the following errors:

[opensc-pkcs11] iso7816.c:99:iso7816_check_sw: File not found
[opensc-pkcs11] card-piv.c:385:piv_general_io: returning with: File not
found
[opensc-pkcs11] card-piv.c:723:piv_get_data: returning with: File not
found
[opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: File not
found
[opensc-pkcs11] card.c:430:sc_read_binary: returning with: File not
found
[opensc-pkcs11] card-piv.c:723:piv_get_data: returning with: File not
found
[opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: File not
found
[opensc-pkcs11] card.c:430:sc_read_binary: returning with: File not
found
[opensc-pkcs11] pkcs15-pubkey.c:414:sc_pkcs15_read_pubkey: Failed to
read public key file.
[opensc-pkcs11] card-piv.c:723:piv_get_data: returning with: File not
found
[opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: File not
found
[opensc-pkcs11] card.c:430:sc_read_binary: returning with: File not
found
[opensc-pkcs11] pkcs15-pubkey.c:414:sc_pkcs15_read_pubkey: Failed to
read public key file.
[opensc-pkcs11] card-piv.c:723:piv_get_data: returning with: File not
found
[opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: File not
found
[opensc-pkcs11] card.c:430:sc_read_binary: returning with: File not
found
[opensc-pkcs11] pkcs15-pubkey.c:414:sc_pkcs15_read_pubkey: Failed to
read public key file.
[opensc-pkcs11] card-piv.c:723:piv_get_data: returning with: File not
found
[opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: File not
found
[opensc-pkcs11] card.c:430:sc_read_binary: returning with: File not
found
[opensc-pkcs11] pkcs15-pubkey.c:414:sc_pkcs15_read_pubkey: Failed to
read public key file.

and then produces the expected object listing.

A nuisance yes, but it seems like this might be a larger problem.

I have added:
	card_atr 3b:7d:96:00:00:80:31:80:65:b0:83:11:17:d6:83:00:90:00 {
		name = "PIV-II";
	 	driver = "piv";
	# }

and

reader_driver pcsc {

...
        max_send_size = 255;
        max_recv_size = 256;
...
    }

and

framework pkcs15 {
...
        emulate PIV-II {
        }
...
    }


to my opensc.conf

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-openssl-devel/attachments/20100323/576e3c4f/attachment.htm>


More information about the Pkg-openssl-devel mailing list