Hi,<\/p>\n
Im a linux newbie and have been tasked with getting a SSL cert loaded and working for one of our existing apps. It appears to be Ubuntu and I have managed to generate & export the CSR off to our external CA. SSL appears to be up already on the site, its just showing the “site not trusted” message that you would expect to be. I m just not sure what to do next, Ive read about setting up a virtual host on 443 and creating a directory - would be grateful for some pointers please - thanks.<\/p>","upvoteCount":3,"answerCount":9,"datePublished":"2019-04-08T08:30:03.000Z","author":{"@type":"Person","name":"pksilver","url":"https://community.spiceworks.com/u/pksilver"},"acceptedAnswer":{"@type":"Answer","text":"
Hi,<\/p>\n
if its an Apache running on your Ubuntu, you have to edit your actual running config under /etc/apache2/sites-enabled/ or create a new siteconfig for your new virtual host under /etc/apache2/sites-available/. (If you’ve created a new config, you’ll have to activate it with a2ensite newconfigfilename<\/strong>)<\/p>\n Example for a working Apache config:<\/p>\n\n **<== Virtual Host for https connection**\n# The ServerName directive sets the request scheme, hostname and port that\n# the server uses to identify itself. This is used when creating\n# redirection URLs. In the context of virtual hosts, the ServerName\n# specifies what hostname must appear in the request's Host: header to\n# match this virtual host. For the default virtual host (this file) this\n# value is not decisive as it is used as a last resort host regardless.\n# However, you must set it for any further virtual host explicitly.\n#ServerName [www.example.com](http://www.example.com)\n ServerName www.yoursite.com<\/a> #LogLevel<\/span> info ssl:warn<\/p>\n ErrorLog ${APACHE_LOG_DIR}/error.log #Include<\/span> conf-available/serve-cgi-bin.conf Hi,<\/p>\n Im a linux newbie and have been tasked with getting a SSL cert loaded and working for one of our existing apps. It appears to be Ubuntu and I have managed to generate & export the CSR off to our external CA. SSL appears to be up already on the site, its just showing the “site not trusted” message that you would expect to be. I m just not sure what to do next, Ive read about setting up a virtual host on 443 and creating a directory - would be grateful for some pointers please - thanks.<\/p>","upvoteCount":3,"datePublished":"2019-04-08T08:30:03.000Z","url":"https://community.spiceworks.com/t/ubuntu-ssl-cert-installation/706232/1","author":{"@type":"Person","name":"pksilver","url":"https://community.spiceworks.com/u/pksilver"}},{"@type":"Answer","text":" Ubuntu is a flavor of Linux. It is not a web server. Figure out what web server is installed.<\/p>","upvoteCount":2,"datePublished":"2019-04-08T08:54:12.000Z","url":"https://community.spiceworks.com/t/ubuntu-ssl-cert-installation/706232/2","author":{"@type":"Person","name":"brianswales","url":"https://community.spiceworks.com/u/brianswales"}},{"@type":"Answer","text":" You need to find out what webserver you’re using then follow the instructions forsetting up a signed cert for that.<\/p>\n Will be either Apache or NGINX I wouldhave thought<\/p>","upvoteCount":1,"datePublished":"2019-04-08T08:55:06.000Z","url":"https://community.spiceworks.com/t/ubuntu-ssl-cert-installation/706232/3","author":{"@type":"Person","name":"maxsec","url":"https://community.spiceworks.com/u/maxsec"}},{"@type":"Answer","text":" Ok so I have worked out it is Apache2. So to amend an existing siteconfig file, I can see that there is a 000-default.conf file and default-ssl.conf in the sites-enabled directory, so I would amend one of those files with a similiar config to the one you have listed?<\/p>\n Does apache need to restarted after this? The CSR I generated a .key file which I assume I now need to convert to a .pem? Thanks.<\/p>","upvoteCount":1,"datePublished":"2019-04-08T10:07:14.000Z","url":"https://community.spiceworks.com/t/ubuntu-ssl-cert-installation/706232/5","author":{"@type":"Person","name":"pksilver","url":"https://community.spiceworks.com/u/pksilver"}},{"@type":"Answer","text":"
\nServerAlias www.yoursite.de<\/a>
\nServerAdmin [email protected]<\/a>
\nDocumentRoot /var/www/yoursite <== Path to your website<\/strong><\/p>\n<\/a>Available loglevels: trace8, …, trace1, debug, info, notice, warn,<\/h1>\n
<\/a>error, crit, alert, emerg.<\/h1>\n
<\/a>It is also possible to configure the loglevel for particular<\/h1>\n
<\/a>modules, e.g.<\/h1>\n
\nCustomLog ${APACHE_LOG_DIR}/access.log combined<\/p>\n<\/a>For most configuration files from conf-available/, which are<\/h1>\n
<\/a>enabled or disabled at a global level, it is possible to<\/h1>\n
<\/a>include a line for only one particular virtual host. For example the<\/h1>\n
<\/a>following line enables the CGI configuration for this host only<\/h1>\n
<\/a>after it has been globally disabled with “a2disconf”.<\/h1>\n
\nSSLCertificateFile /etc/letsencrypt/live/yoursite.com/cert.pem <== Path to your certificate<\/strong>
\nSSLCertificateKeyFile /etc/letsencrypt/live/yoursite.com/privkey.pem <== Path to your private keyfile of the CSR<\/strong>
\nSSLCertificateChainFile /etc/letsencrypt/live/yoursite.com/chain.pem <== Path to chain if neccessary<\/strong>
\n
\n<\/p>","upvoteCount":2,"datePublished":"2019-04-08T09:52:21.000Z","url":"https://community.spiceworks.com/t/ubuntu-ssl-cert-installation/706232/4","author":{"@type":"Person","name":"kevinkper","url":"https://community.spiceworks.com/u/kevinkper"}},"suggestedAnswer":[{"@type":"Answer","text":"