Cov txheej txheem:

Kuv yuav lov tes taw https hauv Visual Studio li cas?
Kuv yuav lov tes taw https hauv Visual Studio li cas?

Video: Kuv yuav lov tes taw https hauv Visual Studio li cas?

Video: Kuv yuav lov tes taw https hauv Visual Studio li cas?
Video: Koj saib kuv tsis muaj nqis - Nkauj tawm tshiab 2021-22 2024, Kaum ib hlis
Anonim

4 Teb

  1. mus rau koj qhov project Properties.
  2. Uncheck lub SSL kev xaiv.
  3. Luam theej App Url mus rau Start browser input.

Yog li ntawd, kuv yuav ua li cas thiaj li pab tau SSL Daim Ntawv Pov Thawj hauv Visual Studio?

Tsim ib qhov Web Api tshiab hauv Visual Studio : Xaiv / nyem rau ntawm lub vev xaib API lub npe hauv qhov kev daws teeb meem tshawb nrhiav, thiab tom qab ntawd nyem rau ntawm Properties tab. Teeb ' SSL Enabled' kom muaj tseeb: Lub qhov rais tib yam khoom yuav kuj qhia cov HTTPS url rau daim ntawv thov.

Ib yam li ntawd, kuv yuav hloov tus lej chaw nres nkoj li cas rau IIS Express? 12 Teb. Hauv Solution Explorer, right-click lub npe ntawm daim ntawv thov thiab tom qab ntawd xaiv Properties. Nyem qhov Web tab. Hauv ntu Servers, nyob rau hauv Siv Local IIS Web server, hauv qhov Project URL box hloov tus lej chaw nres nkoj.

Kuv yuav ntseeg li cas IIS Express daim ntawv pov thawj tus kheej kos npe?

Xauj mus rau https://localhost:44300/ (los yog qhov chaw nres nkoj twg IIS Express siv) siv Internet Explorer thiab nyem Txuas mus rau lub vev xaib no:

  1. Nyem rau ntawm daim ntawv pov thawj yuam kev hauv qhov chaw nyob bar, thiab tom qab ntawd nyem Saib daim ntawv pov thawj:
  2. Thaum daim ntawv pov thawj dialog box tshwm sim, nyem Install Certificate:

https ua haujlwm li cas?

Cov HTTPS Stack Ib daim ntawv pov thawj SSL lossis TLS ua haujlwm los ntawm kev khaws koj cov yuam sij tsim tawm (public thiab ntiag tug) hauv koj lub server. Tus yuam sij pej xeem raug txheeb xyuas nrog tus neeg siv khoom thiab tus yuam sij ntiag tug siv hauv cov txheej txheem decryption. HTTP tsuas yog raws tu qauv, tab sis thaum ua ke nrog TLS los yog thauj txheej ruaj ntseg nws yuav encrypted.

Pom zoo: