: 여기 Visual Studio에서 응용 프로그램을 실행할 때 나는 IE와 파이어 폭스에서 얻을 경고를 참조하십시오
1) Right click on the project name and select Properties
2) Set SSL Enabled to: True
3) Make a note of the SSL URL that is generated. In my case it is: https://localhost:44334/
4) Right click on the project name and select: Properties
5) Set Project URL to the URL noted in step 3 i.e. https://localhost:44334/
6) Open up a command prompt and run: "C:\Program Files (x86)\Windows Kits\8.1\bin\x64\makecert.exe" -r -pe -n "CN=localhost" -b 01/01/2000 -e 01/01/2036 -eku 1.3.6.1.5.5.7.3.1 -ss my -sr localMachine -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12.
7) Go to mmc.exe and get the thumbprint of the certificate
8) Run the following from a command line: netsh http add sslcert ipport=0.0.0.0:44334 appid={214124cd-d05b-4309-9af9-9caa44b2b74a} certhash=2f11d025f2bc8802b45ceb7e03632eec333bc1ff. 2f11d025f2bc8802b45ceb7e03632eec333bc1ff is the thumbprint from step 8 and 44334 is the port from step 3.
9) Run: netsh http add urlacl url=https://localhost:44334/ user=Everyone
10) Launch the web app and I see this (
which looks a lot better):
11)로 이동 MMC에서 "개인"인증서를 찾은 다음 신뢰할 수있는 루트 인증 기관으로 이동합니다.
그러면 작동합니다.
위에서 설명한 모든 단계는이 게시물에서 찾을 수 있습니다. http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx. 나 (또는 다른 누구)가 미래에 그것을 참조하기를 원한다면 내가 따라야 할 단계들을 요약했다. 기사는 꽤 길다. 필자의 경우 : applicationhost.config는 Visual Studio에 의해 자동으로 작성되었지만 링크에서는 C : \ Users \ Ian \ Documents \ IISExpress \ config \ applicationhost.config 파일에 수동으로 작성하라는 메시지가 표시됩니다. 내 application.config 파일은 .vs \ config 폴더에 있습니다.
** 사용중인 Visual Studio ** 버전 **은 무엇입니까? 컴퓨터의 공용 DNS 이름 (예 : 동적 DNS 사용) 또는 컴퓨터에서 SSL * *을 로컬로 사용하려면 SSL을 통해 외부에서 웹 사이트를 사용할 수 없습니까?문제는 다음과 같습니다. 클라이언트와 서버 사이에 SSL이 설정되고 * 양쪽에서 인증서를 신뢰해야합니다. – Oleg
* 자체 서명 된 * 인증서가 필요하다면, 'makecert.exe'의 사용법은 인증서를 생성하고 설치하는 가장 간단하고 명확한 방법입니다. 컴퓨터에 공개 DNS 이름이 있으면 공개 SSL 인증서를 만드는 것이 가장 좋습니다. 많은 인증서를 무료로받을 수 있습니다. 앞으로의 사용 시나리오를 단순화 할 것입니다. – Oleg
@Oleg, 나는 진전을 이루었습니다. 내 대답을 보라. 유일한 혼란은 http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx에서 귀하의 링크에 따라 ApplicationHost.config 파일에 바인딩을 만들 필요가 없다는 것입니다. 왜 그런지 알아? – w0051977