无法解析我从IOPMVideoOutput :: StartInitialization获得的证书数据. [英] Trouble parsing the certificate data I get from IOPMVideoOutput::StartInitialization.

查看:61
本文介绍了无法解析我从IOPMVideoOutput :: StartInitialization获得的证书数据.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从从 IOPMVideoOutput :: StartInitialization获得的Blob中提取公钥.该文档说,我得到的Blob是使用ASN.1 DER编码的X.509链,

因此,我假设我可以使用X509Certificate类来解析Blob并提取公钥,但是其中的任何一个X509Certificate.Import,X509Certificate2.Import,X509Chain(IntPtr)失败.

推荐答案

我有完全相同的问题.我已经使用OPM_VOS_OPM_SEMANTICS创建了IOPMVideoOutput对象.因此,我期望使用X.509链.我尝试使用托管的X509Certifcate2. Import(),将引发无效的索引异常.我还安装了最新的NVIDIA驱动程序.

有没有人设法解决这个问题?

很好奇:
IOPMVideoOutput :: StartInitialization是否真正返回指向仅包含二进制数据的字节数组的指针X.509证书链的一部分?还是在解析实际的Blob之前必须先将字节数组指针转换为其他数据结构?

谢谢,
I have exactly the same problem. I have created the IOPMVideoOutput object using OPM_VOS_OPM_SEMANTICS. Therefore I am expecting an X.509 chain. I have tried using the managed X509Certifcate2. Import(), which throws an invalid index exception. I have also installed the latest NVIDIA driver.

Has anyone managed to solve this problem?

Just curious:
Does IOPMVideoOutput::StartInitialization truly return a pointer to a byte array that contain only the binary data of an X.509 certificate chain? Or do I have to cast the byte array pointer to a different data structure first before parsing the actual blob?

Thanks,


这篇关于无法解析我从IOPMVideoOutput :: StartInitialization获得的证书数据.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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