如何安装证书p12文件 [英] How install certificate p12 file
本文介绍了如何安装证书p12文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
请帮助我输入p12文件证书c#
我尝试了什么:
如何在项目中使用带密码的p12文件?
i有cert.p12文件&我需要在我的项目中使用它。
解决方案
webHostBuilder = webHostBuilder.UseKestrel(options =>
{
options.Listen(IPAddress.Loopback,4431,listenOptions =>
{
listenOptions.NoDelay = true;
listenOptions.UseHttps(new Microsoft.AspNetCore.Server.Kestrel .Https.HttpsConnectionAdapterOptions()
{
SslProtocols = SslProtocols.Tls,
CheckCertificateRevocation = false,
ClientCertificateMode = ClientCertificateMode.AllowCertificate,
ServerCertificate = new System.Security。 Cryptography.X509Certificates.X509Certificate2(@local.pfx,intel @ 123)
});
});
})
hi
please help me for import p12 file certificate in c#
What I have tried:
How can I use p12 file with password in project?
i have cert.p12 file & I need to use it in my project.
解决方案
webHostBuilder = webHostBuilder.UseKestrel(options => { options.Listen(IPAddress.Loopback, 4431, listenOptions => { listenOptions.NoDelay = true; listenOptions.UseHttps(new Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions() { SslProtocols = SslProtocols.Tls, CheckCertificateRevocation = false, ClientCertificateMode = ClientCertificateMode.AllowCertificate, ServerCertificate = new System.Security.Cryptography.X509Certificates.X509Certificate2(@"local.pfx", "intel@123") }); }); })
这篇关于如何安装证书p12文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文