j.fabre wrote:
> Hi Nelson,
>
> my PKCS#11 returns this CKA_LABEL: <Certificado de NOMBRE CORRAL AGÜERO
> FRANCISCO JOSE - NIF 16039283A> to Thunderbird.

If I were to look at a hexadecimal dump of that string, what hex values
would I see for the word "AGÜERO" ??
How many bytes would I see in memory for that word?  6? 7? 8? 9?

> Characters in this CKA_LABEL are coded with CK_UTF8CHAR data type, could
> you tell me in wich format Thunderbird expects to receive CKA_LABEL?
> I don´t know if I have to perform a special treatment when my PKCS11
> reads a certificate with special UTF-8 chars in its CKA_LABEL.

You merely have to be sure that they are UTF8 characters and not any of

ISO-8859-1   (a.k.a ISO-Latin-1)
ISO-8859-15
Windows-1252
etc.

Any characters from those other character sets will cause the UTF8 decoder
to conclude that it has an invalid UTF8 string, and so abort the entire
string conversion process.

There *may* be a bug in PSM.  If the string is proper UTF8 and it still
doesn't work, then that would be what I suspect next.  But I want to see
the hex dump of that string first.



_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to