.NET中的X509Certificate2和X509Certificate有什么区别?

编程入门 行业动态 更新时间:2024-10-23 15:25:15
本文介绍了.NET中的X509Certificate2和X509Certificate有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

两者之间有什么区别?

推荐答案

x509Certificate 在.NET v1.0 / 1.1中引入, (相对)限制其功能。 它可用于获取有关现有证书(有效日期,发行者等)的信息。它有简单的方法/操作(即从磁盘读取证书)。

The x509Certificate was introduced in .NET v1.0/1.1 and was (comparatively) limited in its functionality. It can be used to get information about an existing certificate (valid dates, issuer, etc.). It had simple methods/operations (i.e. reading a cert from disk).

x509Certificate2 是x509Certificate的子类,带有附加功能。

The x509Certificate2 is a subclass of x509Certificate with additional functionality.

  • 它代表实际的X509证书。
  • 这是.NET Framework v2.0中的新增功能。
  • 此类别让您可以存取所有V2和V3属性和密钥使用)。
  • 它支持从证书库中加载证书。
  • It represents an actual X509 certificate.
  • It was new in the .NET Framework v2.0.
  • This class gives you access to all the V2 and V3 properties (authority key identifier and key usage).
  • It supports loading a certificate from a certificate store.

更多推荐

.NET中的X509Certificate2和X509Certificate有什么区别?

本文发布于:2023-11-05 08:25:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1560360.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:有什么区别   NET   X509Certificate

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!