Javascript Window.crypto.signText始终返回内部错误

Javascript Window.crypto.signText始终返回内部错误,javascript,firefox,Javascript,Firefox,我有一个USB令牌。在Mozilla Firefox中运行的JavaScript代码中,我使用window.crypto.signText对一些文本进行签名。当代码执行时,弹出选择令牌的对话框,我选择正确的令牌,输入PIN,然后我得到内部错误。我该怎么修理?问题出在哪里?我必须以某种方式设置我正在使用的证书吗? 问题是,您的证书颁发者的证书链在firefox中没有设置为受信任 调用crypto.signText返回“error:internalError”,如果颁发者 证书的“不受信任”,即证

我有一个USB令牌。在Mozilla Firefox中运行的JavaScript代码中,我使用window.crypto.signText对一些文本进行签名。当代码执行时,弹出选择令牌的对话框,我选择正确的令牌,输入PIN,然后我得到内部错误。我该怎么修理?问题出在哪里?我必须以某种方式设置我正在使用的证书吗?


问题是,您的证书颁发者的证书链在firefox中没有设置为受信任

调用crypto.signText返回“error:internalError”,如果颁发者 证书的“不受信任”,即证书中没有CA CA链已设置为“此证书可以识别邮件用户”

至少告诉我们你得到了什么“内部错误”。代码的相关部分也会很好。您好,代码如下(JS):window.onload=function(){console.log('onload');var str=window.crypto.signText(“hello”,“ask”);alert(str);};str=“error:internalError”您好,代码如下(JS):window.onload=function(){console.log('onload');var str=window.crypto.signText(“hello”,“ask”);alert(str);};执行后str=“error:internalError”