Hey Guys,<\/p>\n
I’m assigned a new project at work which requires me to install a SSL certificate on Ubuntu 16.04 (because people will SSH into this computer), along with Apache and PHP5. Both Apache and PHP are installed perfectly fine but I’m having trouble installing the SSL Cert. Can someone help me with this?<\/p>\n
I fallowed the below tutorial, modified the text file, but didn’t work for me. Also the text file under Sites-Available is different (even though has the similar content) and is called “default-ssl.conf”.<\/p>\n
Easiest and fastest way to enable SSL certs is through Let’s Encrypt. Once you have your web server setup and running and ports 80 and 443 open, you run 2 commands…<\/p>\n
sudo apt-get install python-letsencrypt-apache\nsudo letsencrypt --apache\n<\/code><\/pre>\nThat’s it. It will walk you through a few screens for you to enter contact email address and other necessary items and presto…you have enabled SSL. I’ve never used anything as simple. Sure the certs only last for about 90 days but renewing is also just as easy…<\/p>\n
sudo letsencrypt renew\n<\/code><\/pre>\nIt will even write your .conf file for you.<\/p>","upvoteCount":1,"datePublished":"2016-10-18T00:51:26.000Z","url":"https://community.spiceworks.com/t/installing-ssl-certificate-on-ubuntu-16-04/533343/4","author":{"@type":"Person","name":"nashbrydges","url":"https://community.spiceworks.com/u/nashbrydges"}},"suggestedAnswer":[{"@type":"Answer","text":"
Hey Guys,<\/p>\n
I’m assigned a new project at work which requires me to install a SSL certificate on Ubuntu 16.04 (because people will SSH into this computer), along with Apache and PHP5. Both Apache and PHP are installed perfectly fine but I’m having trouble installing the SSL Cert. Can someone help me with this?<\/p>\n
I fallowed the below tutorial, modified the text file, but didn’t work for me. Also the text file under Sites-Available is different (even though has the similar content) and is called “default-ssl.conf”.<\/p>\n
\n \n
\n <\/a>\n<\/div>\n","upvoteCount":3,"datePublished":"2016-10-17T19:36:35.000Z","url":"https://community.spiceworks.com/t/installing-ssl-certificate-on-ubuntu-16-04/533343/1","author":{"@type":"Person","name":"jeromebuckley","url":"https://community.spiceworks.com/u/jeromebuckley"}},{"@type":"Answer","text":"OK, you don’t assign SSL to Ubuntu, you do it to the port. Remember SSL works before the connection.<\/p>\n
So, you don’t have to assign SSL to PHP because it is a web language. You assign it to the web server (apache in this case)<\/p>\n
For Apache you create a virtual server, with port 443 and setup the SSL directories.<\/p>\n
I like to use Webmin for managing my Ubuntu servers. You will basically setup a virtual server with almost same settings as the non SSL, and in the SSL options you add the path to the certificate and the private file. You also want rewrite and ssl modules active in Apache<\/p>\n
An example of the site configuration for Apache with SSL if you preffer to edit the config file<\/p>\n
SSLEngine on\nSSLCertificateFile /path/to/file/*.domain.com.pem\nSSLCertificateKeyFile /path/to/file/server.key\nSSLCertificateChainFile //path/to/file/ssl/[New]InstantSSL_26May.ca-bundle\n<\/code><\/pre>\nComodo has instructions how to setup too<\/p>\n