Paul Santapau Nebot wrote:
Ok, I have found the flag, I've seen that setting the slot flag 0x00000005
Mozilla Firefox avoid asking password for each https connection, but by the time, i don't know how to avoid password asking when doing Edit->Preferences->Security->View Certificates.

I would like password asking  just for private key usage.

Any ideas?

Thx
The flag you want is PUBLIC_MECH_FRIENDLY_FLAG in secmod.h (0x10000000). I'm not sure why you aren't getting password prompts with 0x5 (which means your token is the default RSA and RC2 token -- This should cause extra password prompts.

See http://developer.mozilla.org/en/docs/JavaScript_crypto#Loading_PKCS_.2311_modules for more information.
(There the flag is more descriptive: PKCS11_PUB_READABLE_CERT_FLAG).

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to