Https : Hyper Text Transfer Protocol Secure (HTTPS) is the secure version of HTTP.
Advantages of using Https :
When web server and clients communicates using http protocol, the messages that are exchanged over the network are not encrypted. so sensible information like username and passwords and financial transaction should not be done over http protocol.
That's why all the banking applications uses https protocol because messages exchanges between client and server over https protocol is encrypted and very secure.
By default http uses port 80 and https uses port 443.See below image of IIS binding.
We can configure IIS to use https.the encryption and decryption between client and server is done by server certificates.These server certificates should be installed on IIS.
SSL is a standard security technology for establishing an encrypted link between a web server and a client so that data sent over the internet can't be read by others.
SSL uses server certificates for encryption and decryption.When client request for secure web page, the server generates an encryption key for the user's session and then encrypts the page's data before sending a response.On client side browser uses same key to decrypt the response received from server and also encrypt new request send from that page.
SSL certificate contains a public key and certificate issuer.Client not only use this certificate to communicate with server also verified that certified is signed by an official certificate authority.
Server certificates are issued by an entity called certificate authority like Versign,Comodo,Geotrust.
When browser request for page over https, browser also request for certificate and checks it against a list of trusted site provided by certificate authority.if the server certificate does not match the web address for which it was registered, or if any other problem with the certificate occur, a warning message is displayed.
It is also possible to generate our own server certificates using tool called makecert.exe. this tool comes with visual studio.the certificate generated using this tool can be used for testing purpose not for production.
Self signed certificate :
This is a certificate that is signed by its own creator not by certificate authority. self signed certificates are fine for testing purpose not for production.
Create Self signed certificate :
1. Create Self signed Certificate
2. Associate certificate with asp.net application :Add Https site binding if it is not already present.
3. Check Require SSL check box otherwise site can be accessed over http also.
Once you check Require SSL option, any request comes from http will get error message.
To resolve this message we need to unchecked this option and rewrite the url from http to https.
Url rewriting can be done through web.config or you can install IIS url rewrite extension and configure same using IIS.
Advantages of using Https :
When web server and clients communicates using http protocol, the messages that are exchanged over the network are not encrypted. so sensible information like username and passwords and financial transaction should not be done over http protocol.
That's why all the banking applications uses https protocol because messages exchanges between client and server over https protocol is encrypted and very secure.
By default http uses port 80 and https uses port 443.See below image of IIS binding.
We can configure IIS to use https.the encryption and decryption between client and server is done by server certificates.These server certificates should be installed on IIS.
SSL is a standard security technology for establishing an encrypted link between a web server and a client so that data sent over the internet can't be read by others.
SSL uses server certificates for encryption and decryption.When client request for secure web page, the server generates an encryption key for the user's session and then encrypts the page's data before sending a response.On client side browser uses same key to decrypt the response received from server and also encrypt new request send from that page.
SSL certificate contains a public key and certificate issuer.Client not only use this certificate to communicate with server also verified that certified is signed by an official certificate authority.
Server certificates are issued by an entity called certificate authority like Versign,Comodo,Geotrust.
When browser request for page over https, browser also request for certificate and checks it against a list of trusted site provided by certificate authority.if the server certificate does not match the web address for which it was registered, or if any other problem with the certificate occur, a warning message is displayed.
It is also possible to generate our own server certificates using tool called makecert.exe. this tool comes with visual studio.the certificate generated using this tool can be used for testing purpose not for production.
Self signed certificate :
This is a certificate that is signed by its own creator not by certificate authority. self signed certificates are fine for testing purpose not for production.
Create Self signed certificate :
- Using IIS
- Using MakeCert.exe
1. Create Self signed Certificate
2. Associate certificate with asp.net application :Add Https site binding if it is not already present.
3. Check Require SSL check box otherwise site can be accessed over http also.
Once you check Require SSL option, any request comes from http will get error message.
To resolve this message we need to unchecked this option and rewrite the url from http to https.
Url rewriting can be done through web.config or you can install IIS url rewrite extension and configure same using IIS.




If SSL certificate purchased with the name example.com. Is certificate work for www.example.com ?
ReplyDeleteIt's depends, what certificate authority is providing and what you are purchasing.
DeletePlease refer following points.
Single Domain: Used for a single domain, e.g. example.com. Note that additional subdomains, such as www.example.com, are not included
Wildcard: Used for a domain and any of its subdomains. For example, a wildcard certificate for *.example.com can also be used for www.example.com and store.example.com
Multiple Domain: Known as a SAN or UC certificate, these can be used with multiple domains and subdomains that are added to the Subject Alternative Name field. For example, a single multi-domain certificate could be used with example.com, www.example.com, and example.net
ok I agree with your comment.
ReplyDeleteIf I purchase example.com then it will not work for www.example.com
But If I purchase www.example.com it will work for both example.com and www.example.com.
And its a single domain