我正尝试实例化一个X509Certificate
对象,但是我一直遇到相同的CryptographicException
错误,错误信息为:
"无法找到原始签名者"。
我已经尝试了几种加载证书的方法:
// some different things that I have tried
var cert = X509Certificate.CreateFromCertFile(certFileName);
var cert2 = new X509Certificate(byteArray);
var cert3 = new X509Certificate(byteArray, secretString);
var cert4 = X509Certificate.CreateFromSignedFile(certFileName);
我尝试从文件和字节数组中加载,每次都遇到同样的错误,请问可能是什么原因?