点击或拖拽改变大小

HslCertificateVerifyCer 方法

使用给定的公钥,校验当前的证书是否合法的,如果公钥为 null,则直接校验证书本身是否合法。
Use the given public key to verify whether the current certificate is valid, and if the public key is null, directly verify whether the certificate itself is valid.

命名空间:  HslCommunication.Core.Security
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public static bool VerifyCer(
	byte[] publicKey,
	byte[] hslCertificate
)

参数

publicKey
类型:SystemByte
公钥信息,如果不为空,则校验公钥是否一致
hslCertificate
类型:SystemByte
证书信息

返回值

类型:Boolean
是否合法
参见