我正在尝试使用 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 上
当您使用命令行工具CertUtil.exe或CertMgr.exe安装或删除根 CA 证书时,Windows 会要求用户使用 MessageBox 进行确认(对于根 CA 以外的证书,不会询问此问题),即使对于根当前用户的 CA 证书存储。
对于无人值守的证书更新,这很麻烦。
我在 Windows XP、Vista 和 7 上看到过这种行为(我还没有检查过 Windows Server 2003 和 2008,但我认为他们也问过这个问题)。
我有两个问题:
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)
--杰罗恩