Using Microsoft Visual Studio to build websites can create a local certificate to provide HTTPS functionality. Visual Studio includes IIS Express, a “lightweight” version of Internet Information Server designed for the needs of developers.

Identifying the problem

When IIS Express is installed with Visual Studio, the installation process creates an IIS Express Development Certificate that serves as the HTTPS certificate for websites running on IIS Express on the local machine. This certificate has an expiration date that is five years from the date on which the certificate is created.

Using HTTPS to connect to a website running in IIS Express will fail when the IIS Express Development Certificate is improperly bound to the port or the certificate has expired or the certificate has been improperly installed.

So the first thing you should do is:

Resetting local certificates:

Press windows Icon + ‘R’ and type “MMC” will open  Microsoft Management Console, then File => Add/Remove snap-in, choose  Certificates When you click Add you will be presented with a dialog box to select the account:

Select My User Account and click Finish.

Under Console Root / Certificates – Current User / Personal / Certificates locate any certificates for which the value in the Issued by column is,localhost right-click, and select Delete.

Under Console Root / Certificates – Current User / Trusted Root Certification Authorities / Certificates locate any certificates for which the value in the Issued by column is localhost Select the certificate,  right-click, and select Delete.

Re-open Microsoft Management Console like above way:

and add the Certificates snap-in. This time, select Computer account at the Certificates snap-in dialog box and click Next

Select Local Computer and click Finish.

Under Console Root / Certificates – (Local Computer) / Personal / Certificates locate any certificates for which the value in the Issued by column is localhost Select the certificate, right-click, and select Delete.

Under Console Root / Certificates – (Local Computer) / Trusted Root Certification Authorities / Certificates locate any certificates for which the value in the Issued by column is.localhost

Select the certificate, right-click, and select Delete.

Close Microsoft Management Console.

Creating a new certificate:

Select Programs > Programs and Features and find IIS Express in the list of programs.

Right-click on ISS Express and click Repair.

this will create a new certificate in Microsoft Management Console => Certificates snap-in for the Local Computer account=> Personal.

Verify that the project is configured to use SSL by selecting the project in Visual Studio Solution Explorer and pressing F4

Run the project in Visual Studio:

You will be presented with a dialog box:

Select Yes.

This enables Visual Studio to trust the SSL certificate you created using the IIS Express Repair process,

and install it in:

Console Root / Certificates – Current User / Trusted Root Certification Authorities / Certificates

The project should run like that:

Note: IIS Express reserves a limited number of ports for automatic SSL binding  from 44300 to 44399.

Comments

comments

Published
Views 254
War to the Core

Recent Comments

Latest Updates

  • Solo missions

    Solo missions

    Hey guys, here are the specifics of the first two solo missions, those are sketches of the first two missions. First mission: A harvester is placed near the ship, generating supply caches. The player collects energy caches and escapes a ring of mines. No supply links allowed. The sensor component is introduced by one of […]Read More »
  • We made it to the Top 100!

    We made it to the Top 100!

    We are stoked that we managed to land on IndieDB’s Indie of the Year’s Top 100 list! We are also the only MOBA that made it to the list! The support we got from the community was overwhelming, and we would like to thank each and every person that helped us get this far. Whether […]Read More »
  • Full Campaign Series, Version 3

    Full Campaign Series, Version 3

    Characters: Daniel Blaze. Protagonist, player-character. Headstrong and rebellious. Ambiguous loyalty to the Shepherd Coalition. Joseph Blaze. Father of Daniel Blaze. Commander of the Leviathan mothership until executed for treason by the Shepherd Coalition. Sylvia. AI assistant. Provides intel, advice, mission objectives. Captain Zhukov. Cyborg commander assigned to hunt down player during the first several missions. […]Read More »
  • Story: Episode 1, Version 2

    Story: Episode 1, Version 2

    The Blaze family had long been controversial. They supported the Shepherds, but continually frustrated the Orthodox elements of their faction. Joseph Blaze was especially known for his tolerance of the weakling families that used genetic engineering to alleviate the sicknesses that exposure to the Earth’s surface had inflicted on them. Such tensions between orthodoxy and […]Read More »
  • Story: Episode 1

    Story: Episode 1

    Location: The Pole Base. When Daniel Blaze passed his final test and became the primary candidate to pilot the Leviathan, the Shepherds’ newest ship, he caused a quite a stir. Not because he’s the youngest member of the Pole fleet to be nominated for admiralship, the faction had already made peace with this as a […]Read More »
Skip to toolbar