如何从 Mono 证书存储 My and Trust 中删除/删除证书?

本文介绍了如何从 Mono 证书存储 My and Trust 中删除/删除证书?的处理方法,对大家解决问题具有一定的参考价值

问题描述

我已在 Linux 中使用以下命令将证书添加到 Mono 3.2.8 存储区.

 certmgr -add -c -m My mycert.cer

添加的证书可以查看

 certmgr -list -c -m My mycert.cer

使用以下命令删除之前添加的证书.但是证书没有被删除.该命令没有给出任何错误消息.

 certmgr -del -c -m 我的 mycert.cer

  1. 如何从商店中删除证书(My、CA、Trust 等?)
  2. Mono 将证书详细信息存储在系统中的什么位置?

我尝试使用命令 mozroots 添加证书,但默认情况下它会尝试将证书添加到存储地址簿.(我找不到从 My 或 Trust 商店中删除证书的任何命令)

 mozroots --import --machine --synccertmgr -ssl -m https://test:1200/service

解决方案

  1. 如何从商店(My、CA、Trust 等)中删除证书?

运行这个命令:

certmgr -del -c -v -m 信任 CERTHASH

其中 CERTHASH 是 Unique Hash 中的数字(您可以通过运行 certmgr -list -c -v -m YOURSTORE 提取此值,请参见我的末尾的示例答案):

<块引用>

  1. Mono 将证书详细信息存储在系统中的什么位置?

在其中一些路径中:

/usr/share/.mono/certs/~/.config/.mono/certs/

例子:

将新证书添加到 Trust 存储(有效存储为:MyAddressBookCA信任不允许):

me@myserver:~$ certmgr -add -c -v -m Trust google.cerMono 证书管理器 - 版本 3.2.6.0管理来自商店的 X.509 证书和 CRL.版权所有 2002, 2003 Motus Technologies.版权所有 2004-2008 Novell.BSD 许可.添加了 1 个证书以存储信任.

列出证书:

me@myserver:~$ certmgr -list -c -v -m TrustMono 证书管理器 - 版本 3.2.6.0管理来自商店的 X.509 证书和 CRL.版权所有 2002, 2003 Motus Technologies.版权所有 2004-2008 Novell.BSD 许可.X.509 v3 证书序列号:7CBE60802548D325发行人名称:C=US,O=Google Inc,CN=Google Internet Authority G2主题名称:C=US、S=California、L=Mountain View、O=Google Inc、CN=*.google.com有效时间:201410914:03:47有效期至:20149120:00:00唯一哈希:4D348D0E4028C850A7C783413571111E8E3BD9DE关键算法:1.2.840.113549.1.1.1算法参数:0500公钥:3082010A02820101008886AADB2DAFB37AB6209979B263A41A0B9F18403D0FBBD3DFF01C97DD848ABF1CA1F4AC369E2BF3646F8F4ECA5CDE09B4315A21472137C886C80AAE5D9043135AAD18F0E8FA2CA3D0D49A68D641DCC8D33C272E4B3025A312B436B57098E2F502A2DCE8BFA206023EBD0A7169520437D4DCAF6411AFEDD58C4F75175D045FA4D6D0AD6ADA4523D03E143A3A96A5E43D1C524555A343215C41719D172019C9F32C18F25745872BC80D8602AA793D15EDB01B37CF5CCD4E7C755063D24B8B6BD1A4E42390D36FC64DB5D23B8B3E9CEB2138EF21BB1300DB09F49E91EF961F78F4B4B6B7651C9012758B0D1290C5DD55B577A096270FA288B571B7F2217B9E97070203010001签名算法:1.2.840.113549.1.1.5算法参数:0500签名:39250E018CA35E143782C4A3DCD416D7C36BFDE91C20936AF691478B5C15733AA17127687656B702EBFCE79D3C8C5A69A40B75AD797E0E3435688F7B5145699990A2F7330C5437D404E94CD9D596CBB7005661EC27AB4A21541510F3CC6B9020CDEC703AF3BCFCA0BEC6799AF93C1FE0CC25FAABA28F2F06362616C4C44164CDE3C78A7CF6D6F025BFA79476664FB0565C5FC5C9864D9B49078FE34B915CC40DE5B36C4D1E631F944B103CDF8F9CD87F19566AA7B4AFC16981EE2FF3B7FC8236CE722D976F9A8FD3A76B80828B59CE8381260276966892AC3693014CA4559189656EFCB26D90C2B363758E1EAD458AD79885E2B2BFC1CAE883E89882BE3BBA19私钥:假密钥对密钥:假

删除证书:

me@myserver:~$ certmgr -del -c -v -m 信任 4D348D0E4028C850A7C783413571111E8E3BD9DE

I have added the certificate to the Mono 3.2.8 store by using the following command in Linux.

    certmgr -add -c -m My mycert.cer

The added cert can be viewed by

    certmgr -list -c -m My mycert.cer

Used the following command to delete the previously added certificate. But the certificate is not getting deleted. The command didn't give any error messgae.

    certmgr -del -c -m My mycert.cer

  1. How to remove the certificate from the stores (My,CA,Trust etc ?)
  2. Where is Mono storing the certificate details in the system?

I tried to add the certificate by using the command mozroots, but by default it's trying to add the certificate to the store AddressBook. (I couldn't find any command to remove the certificate from the store My or Trust)

    mozroots --import --machine --sync
    certmgr -ssl -m https://test:1200/service

解决方案

  1. How to remove the certificate from the stores (My,CA,Trust etc)?

Running this command:

certmgr -del -c -v -m Trust CERTHASH

Where CERTHASH is the number in Unique Hash (you can extract this value running certmgr -list -c -v -m YOURSTORE, see example at the end of my answer):

  1. Where is Mono storing the certificate details in the system?

In some of these paths:

/usr/share/.mono/certs/
~/.config/.mono/certs/

Examples:

Add new certificate to Trust store (valid stores are: My, AddressBook, CA, Trust and Disallowed):

me@myserver:~$ certmgr -add -c -v -m Trust google.cer 
Mono Certificate Manager - version 3.2.6.0
Manage X.509 certificates and CRL from stores.
Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed.

1 certificate(s) added to store Trust.

List certificates:

me@myserver:~$ certmgr -list -c -v -m Trust
Mono Certificate Manager - version 3.2.6.0
Manage X.509 certificates and CRL from stores.
Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed.

X.509 v3 Certificate
  Serial Number: 7CBE60802548D325
  Issuer Name:   C=US, O=Google Inc, CN=Google Internet Authority G2
  Subject Name:  C=US, S=California, L=Mountain View, O=Google Inc, CN=*.google.com
  Valid From:    10/09/2014 14:03:47
  Valid Until:   09/12/2014 0:00:00
  Unique Hash:   4D348D0E4028C850A7C783413571111E8E3BD9DE
  Key Algorithm:        1.2.840.113549.1.1.1
  Algorithm Parameters: 0500
  Public Key:           3082010A02820101008886AADB2DAFB37AB6209979B263A41A0B9F18403D0FBBD3DFF01C97DD848ABF1CA1F4AC369E2BF3646F8F4ECA5CDE09B4315A21472137C886C80AAE5D9043135AAD18F0E8FA2CA3D0D49A68D641DCC8D33C272E4B3025A312B436B57098E2F502A2DCE8BFA206023EBD0A7169520437D4DCAF6411AFEDD58C4F75175D045FA4D6D0AD6ADA4523D03E143A3A96A5E43D1C524555A343215C41719D172019C9F32C18F25745872BC80D8602AA793D15EDB01B37CF5CCD4E7C755063D24B8B6BD1A4E42390D36FC64DB5D23B8B3E9CEB2138EF21BB1300DB09F49E91EF961F78F4B4B6B7651C9012758B0D1290C5DD55B577A096270FA288B571B7F2217B9E97070203010001
  Signature Algorithm:  1.2.840.113549.1.1.5
  Algorithm Parameters: 0500
  Signature:            39250E018CA35E143782C4A3DCD416D7C36BFDE91C20936AF691478B5C15733AA17127687656B702EBFCE79D3C8C5A69A40B75AD797E0E3435688F7B5145699990A2F7330C5437D404E94CD9D596CBB7005661EC27AB4A21541510F3CC6B9020CDEC703AF3BCFCA0BEC6799AF93C1FE0CC25FAABA28F2F06362616C4C44164CDE3C78A7CF6D6F025BFA79476664FB0565C5FC5C9864D9B49078FE34B915CC40DE5B36C4D1E631F944B103CDF8F9CD87F19566AA7B4AFC16981EE2FF3B7FC8236CE722D976F9A8FD3A76B80828B59CE8381260276966892AC3693014CA4559189656EFCB26D90C2B363758E1EAD458AD79885E2B2BFC1CAE883E89882BE3BBA19
  Private Key:          False
  KeyPair Key:          False

Remove certificate:

me@myserver:~$ certmgr -del -c -v -m Trust 4D348D0E4028C850A7C783413571111E8E3BD9DE

这篇关于如何从 Mono 证书存储 My and Trust 中删除/删除证书?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,WP2

admin_action_{$_REQUEST[‘action’]}

do_action( "admin_action_{$_REQUEST[‘action’]}" )动作钩子::在发送“Action”请求变量时激发。Action Hook: Fires when an ‘action’ request variable is sent.目录锚点:#说明#源码说明(Description)钩子名称的动态部分$_REQUEST['action']引用从GET或POST请求派生的操作。源码(Source)更新版本源码位置使用被使用2.6.0 wp-admin/admin.php:...

日期:2020-09-02 17:44:16 浏览:1164

admin_footer-{$GLOBALS[‘hook_suffix’]}

do_action( "admin_footer-{$GLOBALS[‘hook_suffix’]}", string $hook_suffix )操作挂钩:在默认页脚脚本之后打印脚本或数据。Action Hook: Print scripts or data after the default footer scripts.目录锚点:#说明#参数#源码说明(Description)钩子名的动态部分,$GLOBALS['hook_suffix']引用当前页的全局钩子后缀。参数(Parameters)参数类...

日期:2020-09-02 17:44:20 浏览:1067

customize_save_{$this->id_data[‘base’]}

do_action( "customize_save_{$this-&gt;id_data[‘base’]}", WP_Customize_Setting $this )动作钩子::在调用WP_Customize_Setting::save()方法时激发。Action Hook: Fires when the WP_Customize_Setting::save() method is called.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分,$this->id_data...

日期:2020-08-15 15:47:24 浏览:803

customize_value_{$this->id_data[‘base’]}

apply_filters( "customize_value_{$this-&gt;id_data[‘base’]}", mixed $default )过滤器::过滤未作为主题模式或选项处理的自定义设置值。Filter Hook: Filter a Customize setting value not handled as a theme_mod or option.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分,$this->id_date['base'],指的是设置...

日期:2020-08-15 15:47:24 浏览:893

get_comment_author_url

过滤钩子:过滤评论作者的URL。Filter Hook: Filters the comment author’s URL.目录锚点:#源码源码(Source)更新版本源码位置使用被使用 wp-includes/comment-template.php:32610...

日期:2020-08-10 23:06:14 浏览:928

network_admin_edit_{$_GET[‘action’]}

do_action( "network_admin_edit_{$_GET[‘action’]}" )操作挂钩:启动请求的处理程序操作。Action Hook: Fires the requested handler action.目录锚点:#说明#源码说明(Description)钩子名称的动态部分$u GET['action']引用请求的操作的名称。源码(Source)更新版本源码位置使用被使用3.1.0 wp-admin/network/edit.php:3600...

日期:2020-08-02 09:56:09 浏览:874

network_sites_updated_message_{$_GET[‘updated’]}

apply_filters( "network_sites_updated_message_{$_GET[‘updated’]}", string $msg )筛选器挂钩:在网络管理中筛选特定的非默认站点更新消息。Filter Hook: Filters a specific, non-default site-updated message in the Network admin.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分$_GET['updated']引用了非默认的...

日期:2020-08-02 09:56:03 浏览:860

pre_wp_is_site_initialized

过滤器::过滤在访问数据库之前是否初始化站点的检查。Filter Hook: Filters the check for whether a site is initialized before the database is accessed.目录锚点:#源码源码(Source)更新版本源码位置使用被使用 wp-includes/ms-site.php:93910...

日期:2020-07-29 10:15:38 浏览:829

WordPress 的SEO 教学:如何在网站中加入关键字(Meta Keywords)与Meta 描述(Meta Description)?

你想在WordPress 中添加关键字和meta 描述吗?关键字和meta 描述使你能够提高网站的SEO。在本文中,我们将向你展示如何在WordPress 中正确添加关键字和meta 描述。为什么要在WordPress 中添加关键字和Meta 描述?关键字和说明让搜寻引擎更了解您的帖子和页面的内容。关键词是人们寻找您发布的内容时,可能会搜索的重要词语或片语。而Meta Description则是对你的页面和文章的简要描述。如果你想要了解更多关于中继标签的资讯,可以参考Google的说明。Meta 关键字和描...

日期:2020-10-03 21:18:25 浏览:1710

谷歌的SEO是什么

SEO (Search Engine Optimization)中文是搜寻引擎最佳化,意思近于「关键字自然排序」、「网站排名优化」。简言之,SEO是以搜索引擎(如Google、Bing)为曝光媒体的行销手法。例如搜寻「wordpress教学」,会看到本站的「WordPress教学:12个课程…」排行Google第一:关键字:wordpress教学、wordpress课程…若搜寻「网站架设」,则会看到另一个网页排名第1:关键字:网站架设、架站…以上两个网页,每月从搜寻引擎导入自然流量,达2万4千:每月「有机搜...

日期:2020-10-30 17:23:57 浏览:1304