如何比较两个 X509Certificate2 c# [英] How to compare two X509Certificate2 c#

查看:46
本文介绍了如何比较两个 X509Certificate2 c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何比较两个 X509Certificate2 对象?

How can I compare two X509Certificate2 objects?

我需要找出两个证书是否相同.这是用于用户身份验证的目的,我需要查找两个证书是否属于同一个人.

I need to find whether two certificates are same. It's for user authentication purpose and I need to find if both the certificates are of the same person.

我可以使用它的序列号或指纹属性吗?或者还有其他方法吗?

Can I use its serial number or thumprint properties? or is there any other methods?

我也是新手,想知道使用 X509Certificate 进行用户身份验证是否安全?

Also I am new to this and would like to know is it safe to use X509Certificate for user authentication?

推荐答案

指纹 是证书的唯一值,它通常用于在证书存储中查找特定证书.更多...

A thumbprint is a unique value for the certificate, it is commonly used to find a particular certificate in a certificate store. More...

序列号是证书颁发者颁发的唯一编号.更多...

The serial number is a unique number issued by the certificate issuer. More...

这篇关于如何比较两个 X509Certificate2 c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆