Certificate2和X509Certificate有什么区

Certificate2和X509Certificate有什么区

本文介绍了.NET中的X509Certificate2和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).

是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有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-27 06:01