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 have a Virtual Private Server(VPS) in CtrlS. I need to add SSL certificate to my VPS server.

  1. What are the steps to add SSL Certificate on VPS?
  2. In my Web Application i have lot of PHP files to respond client Requests.Shall i need to configure my PHP after installing SSL certificate in my VPS?
share|improve this question
You should elaborate a bit more on which environment you are running (Operating System, software stack, ..). Please first try to search for a manual for the software you are using as your question maybe directly answered by this. – xhochy Oct 10 '12 at 17:26
up vote 0 down vote accepted

You need to modify your apache config file, and add the following lines

ServerName yourservername
DocumentRoot yourdocumentroot
SSLEngine on
SSLCertificateFile yourpathtoyour .crt file
SSLCertificateKeyFile yourpathtoyour .key file
SSLCertificateChainFile pathtoyour .crt file

Assuming you did all the right procedures to get an SSL Certificate , that is first get the key file generating at your system and then use it for get the crt file with your SSL certificate provider.

Once done this you dont need to reconfigure anything at your PHP

share|improve this answer
is it possible to add SSL Certificate myself without buy certificate from any Service Provider? – Ram Sep 15 '12 at 3:46
yes, you can create a self signed certificate, check this link still , does not provide all features of the comercial ones – jpganz18 Sep 17 '12 at 14:05

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.