R: R: [INFOCAMERE STARCOS 2.3 CARD] Invalid ASN.1 object

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

R: R: [INFOCAMERE STARCOS 2.3 CARD] Invalid ASN.1 object

Pier Paolo Bortone
Re: R: [opensc-user] [INFOCAMERE STARCOS 2.3 CARD] Invalid ASN.1 object
This is the result of p15dump command:
...
Enumerating X.509 certificates... 2 found.
X.509 Certificate [User Non-repudiation Certificate]
        Com. Flags  : modifiable
        Authority   : no
        Path        : df01c000
        ID          : 02
X.509 Certificate [CA Certificate]
        Com. Flags  : modifiable
        Authority   : yes
        Path        : df01c008
        ID          : 03
...
 
and here is the others two command:
1) C:\Programmi\Smart card bundle>pkcs15-tool --read-certificate 02
-----BEGIN CERTIFICATE-----
MIIFBDCCA+ygAwIBAgIDAuRwMA0GCSqGSIb3DQEBBQUAMIGdMQswCQYDVQQGEwJJ
VDEYMBYGA1UEChMPSW5mb0NhbWVyZSBTQ3BBMRQwEgYDVQQFEwswMjMxMzgyMTAw
NzE3MDUGA1UECxMuQ2VydGlmaWNhdG9yZSBBY2NyZWRpdGF0byBkZWwgU2lzdGVt
YSBDYW1lcmFsZTElMCMGA1UEAxMcSW5mb0NhbWVyZSBGaXJtYSBRdWFsaWZpY2F0
YTAeFw0wNTAzMjMwOTUyNTdaFw0wODAzMjMwMDAwMDBaMIGoMQswCQYDVQQGEwJJ
VDEXMBUGA1UEChMOTm9uIERpY2hpYXJhdG8xHzAdBgNVBAsTFlJBPUMuQy5JLkEu
QS4gREkgUEFWSUExNjA0BgNVBAMTLUNBRk9SSU8vTFVJR0kvQ0ZSTEdVNThMMTZC
MTgwTC8yMDAzMTExNDgwMTEzMTEnMCUGA1UEDRMeQz1DYWZvcmlvL049THVpZ2kv
RD0xNi0wNy0xOTU4MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC1cp3TLqjC
AwXA44/2nGnI5Pl8cbNfWcZg5q8YZqzsQJFZJSzeuFrjD38xXABBJ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
sV4pq0w0gb/rqENUR0Yz6XGG6qqrmz8yLH3AWM1jqpTjOhxT/uMOJw==
-----END CERTIFICATE-----
 
2) C:\Programmi\Smart card bundle>pkcs15-tool --read-certificate 03
Certificate read failed: Invalid ASN.1 object
 
I'm confused :-))
 
Cheers,
Pier
 
Pier Paolo Bortone wrote:
> Hi Nils,
> I think the DUMP infos is correct, but I'm not sure. I inserted dump infos
> to a better analisys.

> As you said, I tried the command:
> C:\Programmi\Smart card bundle>opensc-explorer.exe
> OpenSC Explorer version 0.9.4
> OpenSC [3F00]> cd DF01
> OpenSC [3F00/DF01]> get C008
> Total of 1536 bytes read from C008 and saved to 3F00_DF01_C008.

ok, the file is empty. Should there be a ca certificate on the token ?

Cheers,
Nils


_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: R: R: [INFOCAMERE STARCOS 2.3 CARD] Invalid ASN.1 object

Nils Larsch
Pier Paolo Bortone wrote:

> This is the result of p15dump command:
> ...
> Enumerating X.509 certificates... 2 found.
> X.509 Certificate [User Non-repudiation Certificate]
>         Com. Flags  : modifiable
>         Authority   : no
>         Path        : df01c000
>         ID          : 02
> X.509 Certificate [CA Certificate]
>         Com. Flags  : modifiable
>         Authority   : yes
>         Path        : df01c008
>         ID          : 03
...
> 2) C:\Programmi\Smart card bundle>pkcs15-tool --read-certificate 03
> Certificate read failed: Invalid ASN.1 object
>  
> I'm confused :-))

well that's because the pkcs15-infocamere.c does only check whether the
file is present and not whether there's a certificate in the file.
It seems that there is no CA certificate on your card (or at least not
at the expected place).

Cheers,
Nils
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-user