Igor, CryptoStore().getCertificates() returns an array of X509Certificate available in the store. It is possibility, that you are printing a reference to the returned array instead of references to certs.
My test code that prints certs from internal cert store works properly. Can you please add code that prints/uses returned cert array? Alexei Igor Delacroix wrote: > Nelson B escreveu: > > Igor Delacroix wrote: > >> Good Day All, > >> > >> I have a token with 2 certs, 2 PublicKeys and 2 PrivateKeys > >> > >> for example > >> cert1 > >> pubk1 > >> privk1 > >> > >> cert2 > >> pubk2 > >> privk2 > >> > >> And I need to show all certificates in a list to user. > >> But the statement > >> > >> [code] > >> cert = token.getCryptoStore().getCertificates(); > >> [/code] > > > > Is this Java code? > > Is this code using JSS? > > Of what class is the token object an instance? > > Sorry for my dullness, > > Yeah is java, i'm using PK11Token from JSS > > > > >> Returns me only one of the token's certificates repeated two times > >> > >> cert1 > >> cert1 > >> > >> is there other way to get token's certificates, that doesn't return this? > > > > _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto