For the code: http://blogpeeper.com/http-to-https-ssl-certificate/
Let's be friends
Twitter Profile: https://twitter.com/simstract
Facebook Page: https://www.facebook.com/simstract
SSL Certificates are data files that digitally bind a cryptographic key to an organization’s details. If you properly install it on your server where the files of your website are located, it activates the padlock. Consequently, a secure connection from a web server to a browser established.
You might be thinking what type of SSL Certificate you need. Well, there are three types of SSL Certificates which categorized as Domain validation, Organization validation, and Extended validation. If you are a small blog or magazine owner like me, Domain validation would be your first choice. As the name suggested, Organization validation and Extended validation are for heavy duty E-commerces or big organizations.
In most of the cases, your hosting provider will provide you the basic one. If they don’t you have to buy one from providers Godaddy, SSLS, SSLCERTIFICATE, or others. Domain validation certificates start from $5 up to $100 depends on different factors.
You can also install a free one from CloudFlare. But personally, I would suggest you not to go for any free SSL.