Hi Nelson, The common name´s length si 51, and there are the hexadecimal print of the commonName : <<4e -->N> <4f -->O> <4d -->M> <42 -->B> <52 -->R> <45 -->E> <20 --> > <43 -->C> <4f -->O> <52 -->R> <52 -->R> <41 -->A> <4c -->L> <20 --> > <41 -->A> <47 -->G> <ff ff ff dc -->Ü> ---------------------> Here is the problem, but this character could be coded in UTF-8, since I know that UTF-8 chars can be coded using until 4 bytes. <45 -->E> <52 -->R> <4f -->O> <20 --> > <46 -->F> <52 -->R> <41 -->A> <4e -->N> <43 -->C> <49 -->I> <53 -->S> <43 -->C> <4f -->O> <20 --> > <4a -->J> <4f -->O> <53 -->S> <45 -->E> <20 --> > <2d -->-> <20 --> > <4e -->N> <49 -->I> <46 -->F> <20 --> > <31 -->1> <36 -->6> <30 -->0> <33 -->3> <39 -->9> <32 -->2> <38 -->8> <33 -->3> <41 -->A> >
What do you think about? Regards. Nelson Bolyard escribió: > 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 > > _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto