HttpListener supports SSL only for localhost? install certificate
2021/5/25 10:26:23
本文主要是介绍HttpListener supports SSL only for localhost? install certificate,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
HttpListener supports SSL only for localhost? install certificate
1.Start-All Programs -
2.execute below lines on that ‘Developer Command Prompt..’ tool
makecert -n "CN=vMargeCA" -r -sv vMargeCA.pvk vMargeCA.cer
makecert -sk vMargeSignedByCA -iv vMargeCA.pvk -n "CN=vMargeSignedByCA" -ic vMargeCA.cer vMargeSignedByCA.cer -sr localmachine -ss My
and you will get three files (my path is C:Program Files (x86)Microsoft Visual Studio 11.0) : vMargeCA.cer, vMargeCA.pvk, vMargeSignedByCA.cer
3.install vMargeCA.cer to the trusted in localstorage
and vMargeSignedByCA.cer to the personal
4.Cope the Thumbprint value of the vMargeSignedByCA.cer.
5.Execute the last command on that tool
netsh http add sslcert ipport=0.0.0.0:3000 certhash="41af329311194416e90ac0c15fc2fe86d12f0c58" appid={b46fd4ef-71d2-4472-8283-d0112119f28a} //Note, 3000 is the port must consist with the port using on Simulator, certhas is the Thumbprint value from the vMargeSignedByCA.cer
Then you will see a successful prompt.
Here is the article that I refered to http://www.codeproject.com/Questions/318868/HttpListener-supports-SSL-only-for-localhost
这篇关于HttpListener supports SSL only for localhost? install certificate的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-12-24怎么切换 Git 项目的远程仓库地址?-icode9专业技术文章分享
- 2024-12-24怎么更改 Git 远程仓库的名称?-icode9专业技术文章分享
- 2024-12-24更改 Git 本地分支关联的远程分支是什么命令?-icode9专业技术文章分享
- 2024-12-24uniapp 连接之后会被立马断开是什么原因?-icode9专业技术文章分享
- 2024-12-24cdn 路径可以指定规则映射吗?-icode9专业技术文章分享
- 2024-12-24CAP:Serverless?+AI?让应用开发更简单
- 2024-12-23新能源车企如何通过CRM工具优化客户关系管理,增强客户忠诚度与品牌影响力
- 2024-12-23原创tauri2.1+vite6.0+rust+arco客户端os平台系统|tauri2+rust桌面os管理
- 2024-12-23DevExpress 怎么实现右键菜单(Context Menu)显示中文?-icode9专业技术文章分享
- 2024-12-22怎么通过控制台去看我的页面渲染的内容在哪个文件中呢-icode9专业技术文章分享