使用cmd命令行进行本地证书读取

显示本地所有证书:
运行cmd命令 certmgr.msc


读取本地证书信息:
certutil -store root  # 受信任的根证书颁发机构

certutil -store -user My # 个人

certutil -store -user AddressBook # 其他人

certutil -store ...    # 分类名称


将证书存到本地:
certutil -store root 0(证书索引) a.cer(证书存到本地名称or路径)

 

删除本地证书:

certutil -delstore -user 0(证书索引)


命令行更换编码格式:
chcp

936(gbk) 65001(utf-8)

posted @ 2017-12-04 17:43  心陌  阅读(4595)  评论(0编辑  收藏  举报