标签: certutil

从命令行将 PKCS#12 证书安装到 firefox

我正在尝试使用 certutil 将客户端证书添加到 firefox db:此证书的目的是与服务器进行身份验证 - 服务器要求提供凭据,此证书包含凭据。

certutil -A -n "My Certificate" -d /myfirefoxprofile/ -t "CT,," -a -i /mycertificate.pfx 
Run Code Online (Sandbox Code Playgroud)

但是,这给了我错误:

certutil: could not obtain certificate from file: security library: improperly formatted DER-encoded message.
Run Code Online (Sandbox Code Playgroud)

我做错了什么吗?

这是在 ubuntu 10.10 上

firefox certificate certutil

5
推荐指数
1
解决办法
1万
查看次数

在没有 CertMgr / CertUtil 要求最终用户确认的情况下安装/删除根证书

当您使用命令行工具CertUtil.exeCertMgr.exe安装或删除根 CA 证书时,Windows 会要求用户使用 MessageBox 进行确认(对于根 CA 以外的证书,不会询问此问题),即使对于根当前用户的 CA 证书存储。

对于无人值守的证书更新,这很麻烦。

我在 Windows XP、Vista 和 7 上看到过这种行为(我还没有检查过 Windows Server 2003 和 2008,但我认为他们也问过这个问题)。

我有两个问题:

  1. 为什么 Windows 会问这个问题,即使您从命令行工具安装/删除它?
  2. 我怎样才能抑制这种情况(除了观察出现的对话框并发送 Windows 消息以按“是”按钮)?

MessageBox 确认对话框如下所示:

[Root Certificate Store]
Do you want to DELETE the following certificate from the Root Store?
...
[&Yes]  [&No]
Run Code Online (Sandbox Code Playgroud)

和这个:

[Security Warning]
You are about to install a certificate from a certification authority (CA) claiming to represent:
...
[&Yes]  [&No]
Run Code Online (Sandbox Code Playgroud)

--杰罗恩

certificate certutil

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

certificate ×2

certutil ×2

firefox ×1