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
Tesla Sales by Country 2023
Security Advisory- Deprecation of Obsolete TLS 1.0 and TLS 1.1 Versions – Updated April 16, 2019
#ridwork guides | fountainpenguin
Ffxiv Shelfeye Reaver
Instructional Resources
Le Blanc Los Cabos - Los Cabos – Le Blanc Spa Resort Adults-Only All Inclusive
Shs Games 1V1 Lol
Directions To 401 East Chestnut Street Louisville Kentucky
United Dual Complete Providers
Savage X Fenty Wiki
10 Great Things You Might Know Troy McClure From | Topless Robot
R/Altfeet
Pwc Transparency Report
Used Drum Kits Ebay
Sony E 18-200mm F3.5-6.3 OSS LE Review
Youravon Comcom
Mail.zsthost Change Password
Obsidian Guard's Cutlass
Robin D Bullock Family Photos
The best firm mattress 2024, approved by sleep experts
Aps Day Spa Evesham
Robert Deshawn Swonger Net Worth
Spn 520211
Beaufort 72 Hour
Bleacher Report Philadelphia Flyers
Is Light Raid Hard
Usa Massage Reviews
Bridgestone Tire Dealer Near Me
Kiddie Jungle Parma
Tokioof
Greater Orangeburg
Egg Crutch Glove Envelope
Terrier Hockey Blog
Hebrew Bible: Torah, Prophets and Writings | My Jewish Learning
Überblick zum Barotrauma - Überblick zum Barotrauma - MSD Manual Profi-Ausgabe
Wait List Texas Roadhouse
World Social Protection Report 2024-26: Universal social protection for climate action and a just transition
O'reilly's Palmyra Missouri
VDJdb in 2019: database extension, new analysis infrastructure and a T-cell receptor motif compendium
Tricare Dermatologists Near Me
Sechrest Davis Funeral Home High Point Nc
Big Reactors Best Coolant
Babykeilani
3500 Orchard Place
Windy Bee Favor
Tanger Outlets Sevierville Directory Map
Superecchll
Optimal Perks Rs3
2121 Gateway Point
Cheryl Mchenry Retirement
Craigslist Farm And Garden Missoula
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.