Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm new to SSL, but my php web-site will contain secret information from users. I hear that ssl (https) can establish a solid security level. But, how to use it? How to implement it to my html files?

Any guides, links or information will be great.

Thanks in advance.

share|improve this question

migrated from Jul 19 '10 at 13:46

This question came from our site for professional and enthusiast programmers.

This should be posted on Server Fault. – Massimo Jul 18 '10 at 18:42

SSL has nothing to do with your php or html-pages. It's encryption of communication between (web-)server and client (usually a webbrowser) on the application layer.

The way to set it up depends on the web-server used. To cover the two most popular servers:

SSL-Certificates need to be signed by a trusted authority like Verisign to not produce warning messages on the user side.

HTH, flokra

share|improve this answer
ok, but how can i mark ssl html pages and typical html pages? What code is used for it? – dsplatonov Jul 19 '10 at 7:45
There is no HTML code for it since the encryption occurs on a lower level in the network stack (ISO/OSI stack, if you want to google it). It's like asking where the IP address is in an Ethernet frame. – joschi Jul 19 '10 at 14:26

SSL has nothing to do with an HTML file. You need to configure your server to use SSL.

If you will say what server you are using, people will be able to direct you further.

share|improve this answer

SSL is implemented in the web server, not in the site content; it's used to encrypt the communication between the web server and the web browser, and to be certain that the site you're connecting to actually is the site you wanted to connect to.

To implement SSL for your site, you'll need a SSL certificate, and you'll need to configure the web server to use it. The site content doesn't need to be modified at all.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.