windows – certutil.exe的语法?

Windows上,您可以使用certutil.exe来管理证书.但它确实有很多选项,命令帮助(和谷歌一样)无助于清楚地理解它.

这些命令的确切含义是什么,所有这些命令都应该能够将证书导入本地机器商店?

certutil -addstore my <filename>
certutil -installcert <filename>
certutil -importcert <filename>
certutil -importpfx <filename>

我猜可能最后一个用于从.pfx文件导入证书;但不应该(其中一些)其他人能够做同样的事情吗?而且,前三个有什么不同?

尝试使用 – ?命令.您可以获得有关命令的详细信息:

例如:

C:\>certutil -addstore -?

Usage:
  CertUtil [Options] -addstore CertificateStoreName InFile
  Add certificate to store
    CertificateStoreName -- Certificate store name.  See -store.
    InFile -- Certificate or CRL file to add to store.

Options:
  -f                -- Force overwrite
  -enterprise       -- Use local machine Enterprise registry certificate store
  -user             -- Use HKEY_CURRENT_USER keys or certificate store
  -GroupPolicy      -- Use Group Policy certificate store
  -gmt              -- display times as GMT
  -seconds          -- display times with seconds and milliseconds
  -v                -- Verbose operation
  -privatekey       -- display password and private key data
  -dc DCName                -- Target a specific Domain Controller

CertUtil -?              -- display a verb list (command list)
CertUtil -addstore -?    -- display help text for the "addstore" verb
CertUtil -v -?           -- display all help text for all verbs

相关文章

Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...
Windows文件操作基础代码 Windows下对文件进行操作使用的一段...
Winpcap基础代码 使用Winpcap进行网络数据的截获和发送都需要...
使用vbs脚本进行批量编码转换 最近需要使用SourceInsight查看...