admin管理员组文章数量:1386933
I have an ASP.Net web project that I am testing and debugging in VisualStudio with URL https://localhost:44300
. For tests on my smartphone I start "C:\Program Files\nodejs\npx.cmd" iisexpress-proxy https://localhost:44300 to https://*:81
. So I can call this website within my local network with https://[My Notebook IP]:81
.
Further, I created a dynamic DNS [mysubdomain].dynv6
and added a port forwarding from [mysubdomain].dynv6:81
to [My Notebook IP]:81
. So I can test my web app with [mysubdomain].dynv6:81
.
Of course I get warnings on a untrusted certificate. This was ok until now because I could ignore these warnings in my browser. For other reasons, however, I now need to install a proper certificate, e.g. with LetsEncrypt. The problem is that through iisexpress-proxy the incoming URL is localhost:44300
, not [mysubdomain].dynv6:81
. So, when I create my certificate for [mysubdomain].dynv6
, this certificate will not be used.
What can I do?
I have an ASP.Net web project that I am testing and debugging in VisualStudio with URL https://localhost:44300
. For tests on my smartphone I start "C:\Program Files\nodejs\npx.cmd" iisexpress-proxy https://localhost:44300 to https://*:81
. So I can call this website within my local network with https://[My Notebook IP]:81
.
Further, I created a dynamic DNS [mysubdomain].dynv6
and added a port forwarding from [mysubdomain].dynv6:81
to [My Notebook IP]:81
. So I can test my web app with [mysubdomain].dynv6:81
.
Of course I get warnings on a untrusted certificate. This was ok until now because I could ignore these warnings in my browser. For other reasons, however, I now need to install a proper certificate, e.g. with LetsEncrypt. The problem is that through iisexpress-proxy the incoming URL is localhost:44300
, not [mysubdomain].dynv6:81
. So, when I create my certificate for [mysubdomain].dynv6
, this certificate will not be used.
What can I do?
Share Improve this question edited Mar 17 at 15:48 I.sh. 2,1712 gold badges12 silver badges44 bronze badges asked Mar 17 at 15:45 Bernd MeneyerBernd Meneyer 10910 bronze badges1 Answer
Reset to default 0You may send a redirect to the client (302) .
First creating a redirect website, then on redirect web site creating an http redirection. The redirection second and third parameters are dependent on the application.
本文标签: proxyProblems with SSL certificate for test on localhostStack Overflow
版权声明:本文标题:proxy - Problems with SSL certificate for test on localhost - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744549972a2612123.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论