我有一个 USB token 。在 Mozilla Firefox 中运行的 JavaScript 代码中,我使用 window.crypto.signText 来签署一些文本。当代码执行时,弹出选择 token 的对话框,我选择正确的 token ,输入 PIN,然后出现内部错误。我该如何修复?问题可能出在哪里?我是否必须以某种方式设置我正在使用的证书?
最佳答案
问题是您的证书颁发者的证书链没有在 Firefox 中设置为受信任。
https://bugzilla.mozilla.org/show_bug.cgi?id=292238
a call to crypto.signText returns "error:internalError" if the issuer of your certificate "is not trusted", ie. none of the CAs in the CA-chain has been set to "This certificate can identify mail users".
关于javascript - Window.crypto.signText 始终返回内部错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16768951/