List Info

Thread: Re: Issue reading public key from Aladdin eToken




Re: Issue reading public key from Aladdin eToken
country flaguser name
United States
2008-03-10 10:58:08
Ludovic Rousseau wrote:
> On Fri, Mar 7, 2008 at 5:19 PM, Bismark <bismarkfoofus.net> wrote:
>> Ludovic Rousseau wrote:
>>  > On Fri, Feb 29, 2008 at 3:51 PM, Bismark
<bismarkfoofus.net> wrote:
>>  >>  $ pkcs15-tool --list-public-keys
>>  >>  Public RSA Key [Public Key]
>>  >>         Com. Flags  : 2
>>  >>         Usage       : [0x4], sign
>>  >>         Access Flags: [0x0]
>>  >>         ModLength   : 1024
>>  >>         Key ref     : 0
>>  >>         Native      : no
>>  >>         Path        : 3f0050153048
>>  >>         Auth ID     :
>>  >>         ID          : 45
>>  >>
>>  >>  [opensc-debug.log]
>>  >>  [pkcs15-tool]
asn1.c:1369:asn1_encode_entry: encoding of ASN.1 object
>>  >>  'key' failed: Out of memory
>>  >>  [pkcs15-tool]
asn1.c:1369:asn1_encode_entry: encoding of ASN.1 object
>>  >>  'publicKey' failed: Out of memory
>>  >
>>  > Can you try with a daily snapshot available
at [1]?
>>   >
>>   > Can you also try using:
>>   > $ pkcs15-tool -vvvvvvvvvv
--list-public-keys
>>
>>  Connecting to card in reader Aladdin eToken PRO
64k...
>>  Using card driver Siemens CardOS.
>>  Trying to find a PKCS#15 compatible card...
>>  Found OpenSC Card!
>>  Card has 1 public key(s).
>>
>>
>>  Public RSA Key [Public Key]
>>          Com. Flags  : 2
>>          Usage       : [0x4], sign
>>          Access Flags: [0x0]
>>          ModLength   : 1024
>>          Key ref     : 0
>>          Native      : no
>>          Path        : 3f0050153048
>>          Auth ID     :
>>          ID          : 45
>>
>>  $ pkcs15-tool -vvvvvvvvvv --read-public-key 45
>>  Connecting to card in reader Aladdin eToken PRO
64k...
>>  Using card driver Siemens CardOS.
>>  Trying to find a PKCS#15 compatible card...
>>  Found OpenSC Card!
>>  Reading public key with ID '45'
>>
>> Error encoding PEM key: Out of memory
>>
>>  The snapshot is giving me the same error message.
> 
> The line numbers should at least be different.
> 
>>  [/tmp/opensc-errors.log]
>>
>> [pkcs15-tool] asn1.c:1369:asn1_encode_entry:
encoding of ASN.1 object
>>  'key' failed: Out of memory
>>  [pkcs15-tool] asn1.c:1369:asn1_encode_entry:
encoding of ASN.1 object
>>  'publicKey' failed: Out of memory
>>
>>  [/tmp/opensc-debug.log]
> 
> How are those files generated?
> I think you were NOT using the snapshot when generating
those files.

When I had removed the opensc pkg it had let the
/etc/opensc/opensc.conf 
file around and it was getting read.  I have removed the
opensc.conf 
file and also purged the pcscd package.
> 
> Please try again and generate the log file using:
> $ pkcs15-tool -vvvvvvvvvv --read-public-key 45
&> log.txt

Okay here is the output:
winscard_clnt.c:3471:SCardCheckDaemonAvailability() PCSC Not
Running
Trying to find a PKCS#15 compatible card...
Found OpenSC Card!
Error encoding PEM key: Out of memory
Connecting to card in reader Aladdin eToken PRO 64k...
Using card driver Siemens CardOS.
Reading public key with ID '45'

I have the same entries in the log files which were
generated by setting 
debug = 9 and uncommenting debug_file and error_file in
/etc/opensc.conf

Should I possibly use a snapshot version of OpenCT also?

_______________________________________________
opensc-user mailing list
opensc-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )