I have a Godaddy SSL certificate and is connect with my domain and the domain is connect with my droplet.
in my server I have on my folder “/etc/apache2/ssl/” two files “domain.com.csr and domain.com.key”
I have past the code from “domain.com.csr” on Godaddy SSL CSR
Godaddy give me two files “62gyg787t86.crt and bundle-g2-g1.crt” and I have move those file into “/etc/apache2/ssl/” so now I have four files “domain.com.csr, domain.com.key, 62gyg787t86.crt and bundle-g2-g1.crt”
On my the folder “/etc/apache2/sites-available” I have the a file call default-ssl.conf inside this file I have make some change
ServerName domain.com:443 SSLEngine on SSLCertificateFile /etc/apache2/ssl/domain.com.csr SSLCertificateKeyFile /etc/apache2/ssl/domain.com.key SSLCertificateChainFile /etc/apache2/ssl/bundle-g2-g1.crt
I have try “SSLCertificateFile” with “/etc/apache2/ssl/62gyg787t86.crt” but nothing happen
and after all this process I reload apache but my SSL does not work any idea why?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Please follow these steps from the beginning
step 1 : take a backup of your 000-default.conf cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/000-default.conf.bkp
step 2: create a file in /etc/apache2/sites-available directory with your sitename.conf touch /etc/apache2/sites-available/example.com.conf
step 3: enable your site a2ensite example.com or a2ensite example.com.conf
step 4 delete all content of 000-default.conf and put these code
step 5 apachectl configtest
Step 6 restart apache
Please follow these steps from the beginning
step 1 : take a backup of your 000-default.conf cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/000-default.conf.bkp
step 2: create a file in /etc/apache2/sites-available directory with your sitename.conf touch /etc/apache2/sites-available/example.com.conf
step 3: enable your site a2ensite example.com or a2ensite example.com.conf
step 4 delete all content of 000-default.conf and put these code
step 5 apachectl configtest
Step 6 restart apache
This works for me in Apache 2.4.12
After install SSL certificate apache2 is not restart , I got the error ubuntu@ip-172-31-7-61:/etc/apache2$ sudo service apache2 restart
Please help me , Please. Thanks
I have the same issue, I have completely done as discussed above. but I am unable to open site with https:
Have you tried this:
Also, you should have created a new key, built a new CSR, then pasted the CSR in GoDaddy to get the proper certificate.
to create a new key:
Then, you grab the CSR:
input it into GoDaddy, generate the new certificate, import it into the server (I’d place it in /etc/ssl/certificates/new.crt), then use this config: