Hey, hopefully someone will be able to clear this up for me, I'm
completely ignorant of the inner working of Firefox.

I'm trying to sign data using pkcs7 opaque-ly (includes the data, as
opposed to detached), however I can't seem to come up with the best
way to do it. crypto.signText looked like it would work, however it's
detached and doesn't include the data in the final message.

I've been crawling through the Firefox/nss/psm documentation as well
as google and have found various recommendations, but a lot of posts
are over 5 or even 10 years old (as was the signText() documentation I
found). My only requirements are that it needs to work in firefox, so
I could use a plugin. I took a look at the public NSS functionality
relating to pkcs7, however my impression was that it was only
accessible via c++ and would require packaging a binary with the
plugin, not the worst thing ever, but would be nice to avoid.

I saw some mentions of going through the PSM to access certs and nss/
crypto functionality, however there doesn't seem to be any
documentation relating to how to do that.

Ideally I'd like to stick with Javascript/XPCom if possible, however
there seems to be little to no information on the topiv.

any insight would be greatly appreciated.

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

Reply via email to