How to redirect “HTTP” to “HTTPS”?

Hello,

I am trying to redirect “http” to “https”. I successfully followed the steps to create SSL Certificate as per this website:

http://robsnotebook.com/xampp-ssl-encrypt-passwords

However, it seems that it didn’t work. I am still getting the following error messages:
For IE browser:

There is a problem with this website’s security certificate.

The security certificate presented by this website was not issued by a trusted certificate authority.
The security certificate presented by this website was issued for a different website’s address.

For Firefox browser:
This web site does not supply ownership information .

Do I need to buy SSL Certificates?
Thanks.

Yes, you need to buy one to stop those messages. The certificate you made yourself will do the job, but is not trusted by browsers, so the browser warns the user.

Thank you very much for your suggestion.