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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
<VirtualHost *:443>
ServerAdmin admin@example.com
DocumentRoot /var/www/html
ServerName example.com
ServerAlias www.example.com
SSLEngine on
SSLCertificateFile /address/of/your/certificate.crt
SSLCertificateKeyFile /address/of/your/keyfile.key
SSLCACertificateFile /address/of/your/certificate_chain_file.crt
<Directory /var/www/html>
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
Redirect permanent / https://www.example.com
</VirtualHost>
step 5 apachectl configtest
Step 6 restart apache
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
This works for me in Apache 2.4.12
SSLEngine On
SSLOptions +StrictRequire
SSLCertificateFile /etc/apache2/ssl/godaddy.crt
SSLCertificateKeyFile /etc/apache2/ssl/new.key
SSLCACertificateFile /etc/apache2/ssl/gd_bundle-g2-g1.crt
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.