我的云服务具有以下配置:
<?xml version="1.0" encoding="utf-8"?>
<ServiceConfiguration ...>
<Role name="...">
<ConfigurationSettings>
<Setting name="MyCertThumbprint" value="AB687DC9F63D51AE6E9522B86B97EFD15F55EA42" />
</ConfigurationSettings>
<Certificates>
<Certificate name="MyCert" thumbprint="AB687DC9F63D51AE6E9522B86B97EFD15F55EA42" thumbprintAlgorithm="sha1" />
</Certificates>
</Role>
</ServiceConfiguration>
看到冗余了吗?
我想摆脱 MyCertThumbprint 配置。是否有 Azure API 可以让我访问 MyCert 的指纹?或者可能是 X509Certificate2 实例本身(即无需使用 X509Store 搜索它)?