从法师签名的清单文件中获取 X509 证书
Get X509 Certificate from mage signed manifest file
我有一个 OutlookAddin.vsto
文件(是的,它是一个 Outlook 插件 VSTO 文件),其中包含使用 mage.exe 签名的签名证书。它成功地创建了一个 <X509Certificate>
标签,其中包含编码的 public 证书,据我所知嵌入其中,格式如下:
MIIFBDCCA+ygAwIBAgIQeCmDjQ...3OsgfHUZkAl/GR77wxDooVNr2Hk+aohlDpG9J+PxeQiAohItHIG4=
如何在 C# 中将此证书作为 X509 证书读回?我似乎找不到合适的 X509Certificate2 constructor 来在我的 C#、.NET 应用程序中实现这种神奇效果。
此字符串可能表示编码为 base64 的证书原始数据。
使用带有 byte[]
的 Convert.FromBase64String method to convert this into a byte[]
and then use the X509Certificate2 constructor 创建证书对象。
我有一个 OutlookAddin.vsto
文件(是的,它是一个 Outlook 插件 VSTO 文件),其中包含使用 mage.exe 签名的签名证书。它成功地创建了一个 <X509Certificate>
标签,其中包含编码的 public 证书,据我所知嵌入其中,格式如下:
MIIFBDCCA+ygAwIBAgIQeCmDjQ...3OsgfHUZkAl/GR77wxDooVNr2Hk+aohlDpG9J+PxeQiAohItHIG4=
如何在 C# 中将此证书作为 X509 证书读回?我似乎找不到合适的 X509Certificate2 constructor 来在我的 C#、.NET 应用程序中实现这种神奇效果。
此字符串可能表示编码为 base64 的证书原始数据。
使用带有 byte[]
的 Convert.FromBase64String method to convert this into a byte[]
and then use the X509Certificate2 constructor 创建证书对象。