Hello I try to use the PK11_InitPin function of the NSS to change the user PIN using the SSO PIN, from a XPCOM component in Mozilla (1.7, NSS 3.9), but I always get a CKR_SESSION_READ_ONLY_EXISTS error from my crypto device.
It seems that Mozilla opens a RO session on the token, then my component opens another when opening a slot. Since I could only pass _my_ slot to PK11_InitPin(), PK11_GetRWSession() could not transform my session to RW since there is already a RO session opened (the Mozilla one). Should I have to close the Mozilla session on the token before calling PK11_InitPin() ? how ? Should I have to temporarly stop Mozilla to automatically open a session on inserted token ? how ? Or maybe I'm just going the wrong way :) Thanks in advance. -- Nicolas JUSTIN _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto