Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 0 down vote accepted

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

ServerName yourservername
DocumentRoot yourdocumentroot
ServerAdmin
SSLEngine on
SSLCertificateFile yourpathtoyour .crt file
SSLCertificateKeyFile yourpathtoyour .key file
SSLCertificateChainFile pathtoyour .crt file
</VirtualHost>

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 akadia.com/services/ssh_test_certificate.html still , does not provide all features of the comercial ones –  jpganz18 Sep 17 '12 at 14:05

Your Answer

 
discard

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.