Implementing SSL in asp.net web application - Part 101 (2024)

Suggested Videos
Part 98 - Unlocking the locked user accounts using a web page
Part 99 - Implementing Enable button to unlock user accounts
Part 100 - Secure Socket Layer in asp.net

In this video we will discuss about
1. Understand the term self-signed certificates
2. Creating self-signed certificates
3. Configuring an asp.net web application to use SSL, that is use HTTPS instead of HTTP
4. Importing and exporting certificates

What are self signed certificates
A self-signed certificate is an identity certificate that is signed by its own creator. Certificates are signed by Certificate Authority. In general self signed certificates are fine for testing purposes and not for production use.

Creating self-signed certificates
There are several ways to create self signed test certificates. Let us explore 2 of the easier options available. The easiest and simpler approach is to use IIS to create these certificates. In IIS 7.5
1. Click on the "Server Name"
2. Double click "Server Certificates" feature
3. Click on "Create Self Signed Certificate" link, under "Actions"
4. Specify a friendly name for the certificate and click OK. The friendly name is not part of the certificate itself, but is used by the server administrator to easily distinguish the certificate.

The generated test certificate, is also automatically installed into the certificate store.

MakeCert.exe tool can be used as another way to generate, test certificates. The following link from microsoft explains, various options that can be used with this tool. This is a command line tool and must be run from visual studio command prompt.
http://msdn.microsoft.com/en-us/library/bfsktky3.aspx

Makecert -r -pe -n "CN=YourComputerName" -b 01/01/2000 -e 01/01/2100 -ss my -sr localMachine -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12

Note: Replace YourComputerName, with the name of your computer.

Associating an asp.net web application with a specific certificate
Add HTTPS site binding, if it is not already present
1. Open IIS
2. Expand the "Server Name"
3. Expand "Sites"
4. Select "Default Web Site"
5. Click "Binding" under "Edit Site" in "Actions" pane.
6. In the "Site Bindings" window, Click "Add"
7. Select Type = "https" and the SSL Certificate and click "OK"
8. Click "Close" on "Site Bindings" window

At this point, you will be able to access your application using both HTTP and HTTPS protocol. When the site is accessed over HTTPS, you may receive a browser warning about the authenticity of the website. In a later video session we will discuss about resolving this.

If you want to dis-allow, access over HTTP protocol there are 2 ways
First Way: Remove HTTP binding at the IIS Server level. This option will prevent all the web applications, running on that server to use only HTTPS binding.

Second Way: Let both the bindings be available at the server level and configure SSL settings at an application or web site level.
1. Select your web application in IIS
2. Double click "SSL Settings" from the features window
3. Make sure "Require SSL" check box is checked.
4. Click "Apply" under "Actions" pane

Now, if you try to access the application using HTTP instead of HTTPS, you will get an error
HTTP Error 403.4 - Forbidden
The page you are trying to access is secured with Secure Sockets Layer (SSL)

Use Import and Export feature of IIS to import and export certificates

Implementing SSL in asp.net web application - Part 101 (1)

Implementing SSL in asp.net web application - Part 101 (2024)
Top Articles
Expand Your Blockchain Community with Twitter's (X) Unique Virality
70 Percent Off Calculator - Calculator Academy
English Bulldog Puppies For Sale Under 1000 In Florida
Skycurve Replacement Mat
EY – все про компанію - Happy Monday
Jonathan Freeman : "Double homicide in Rowan County leads to arrest" - Bgrnd Search
Corpse Bride Soap2Day
Mylife Cvs Login
123 Movies Black Adam
Best Restaurants Ventnor
Alejos Hut Henderson Tx
Navy Female Prt Standards 30 34
Razor Edge Gotti Pitbull Price
Soccer Zone Discount Code
Nick Pulos Height, Age, Net Worth, Girlfriend, Stunt Actor
Craigslist List Albuquerque: Your Ultimate Guide to Buying, Selling, and Finding Everything - First Republic Craigslist
97226 Zip Code
Hdmovie 2
Breckie Hill Mega Link
Is Windbound Multiplayer
Used Safari Condo Alto R1723 For Sale
Baja Boats For Sale On Craigslist
Redfin Skagit County
Used Patio Furniture - Craigslist
Synergy Grand Rapids Public Schools
Garden Grove Classlink
Duke University Transcript Request
Martins Point Patient Portal
Productos para el Cuidado del Cabello Después de un Alisado: Tips y Consejos
Metro By T Mobile Sign In
Palmadise Rv Lot
Slv Fed Routing Number
Free Robux Without Downloading Apps
Avance Primary Care Morrisville
Craigslist Summersville West Virginia
Improving curriculum alignment and achieving learning goals by making the curriculum visible | Semantic Scholar
Differential Diagnosis
boston furniture "patio" - craigslist
Pulaski County Ky Mugshots Busted Newspaper
What to Do at The 2024 Charlotte International Arts Festival | Queen City Nerve
2017 Ford F550 Rear Axle Nut Torque Spec
Television Archive News Search Service
Avance Primary Care Morrisville
Dagelijkse hooikoortsradar: deze pollen zitten nu in de lucht
Kenwood M-918DAB-H Heim-Audio-Mikrosystem DAB, DAB+, FM 10 W Bluetooth von expert Technomarkt
A jovem que batizou lei após ser sequestrada por 'amigo virtual'
Mlb Hitting Streak Record Holder Crossword Clue
Unpleasant Realities Nyt
Southwind Village, Southend Village, Southwood Village, Supervision Of Alcohol Sales In Church And Village Halls
How To Connect To Rutgers Wifi
Lake County Fl Trash Pickup Schedule
Latest Posts
Article information

Author: Virgilio Hermann JD

Last Updated:

Views: 5357

Rating: 4 / 5 (41 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Virgilio Hermann JD

Birthday: 1997-12-21

Address: 6946 Schoen Cove, Sipesshire, MO 55944

Phone: +3763365785260

Job: Accounting Engineer

Hobby: Web surfing, Rafting, Dowsing, Stand-up comedy, Ghost hunting, Swimming, Amateur radio

Introduction: My name is Virgilio Hermann JD, I am a fine, gifted, beautiful, encouraging, kind, talented, zealous person who loves writing and wants to share my knowledge and understanding with you.