Hey There,
I have looked all over the interwebs for the answer to this, and can’t find one, so if this is redundant, I am sorry:
I installed ubuntu 16.04 on my Droplet, and put in the LAMP stack. I manage a wordpress site, so I added that. Wordpress only works with https, so I needed a certificate for the site.
I first used the tutorial here, and it worked, I guess, except that there were huge warnings all over Chrome and Safari that the site wasn’t safe!!, so I realized I needed an external CA, so I used this tutorial here. Man was that easy, except…
At this point I was getting the err_connection_refused and failure on load for the browsers, and I determined that it was an error relating to the two certificates. So I followed this, and part of that answer was to go back through the self-signed tutorial backwards. I disabled OpenSSH in the firewall, and enabled it, and tried several things, so now I think I’ve screwed myself and it is so all over the place that I will have to start over at the stack install to correct it.
So my question is this:
Is there a way to remove all traces of SSH protocols to start over at bare encryption again, or do I have to do a clean install, again.
I am out of ideas on how to fix this, and admittedly am not a network admin, so I am sure I simply messed something up, including not providing enough info here for proper answers from the forum, but I could really use some answers, otherwise it is back to square one tomorrow.
Thanks for allowing me this desperate moment.
Scot
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!
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.
Hi @wscotgrey
You went the long way, I would say, but let’s see if we can get you back :-)
I don’t see why Apache certificates should have anything to do with SSH, but I’m guessing that’s just a typo and you meant SSL.
It would probably be easier if you paste the Apache vhost configuration for your site. Once we’ve cleaned up the configuration, then it should be fairly easy to follow the Let’s Encrypt tutorial, which you already followed with ease.
Your vhost configuration file(s) is located in
/etc/apache2/sites-enabled/
Sorry about that, I meant SSL, I have 3 files in that directory: 000-default.conf, 000-default-le-ssl.conf, and default-ssl.conf. I am not sure which you’re asking for, so here’s, edited for privacy, 000-default.conf:
<VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # specifies what hostname must appear in the request’s Host: header to # match this virtual host. For the default virtual host (this file) this # value is not decisive as it is used as a last resort host regardless. # However, you must set it for any further virtual host explicitly. #ServerName www.example.com
Here’s 000-default-le-ssl.conf:
<IfModule mod_ssl.c> <VirtualHost *:443> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # specifies what hostname must appear in the request’s Host: header to # match this virtual host. For the default virtual host (this file) this # value is not decisive as it is used as a last resort host regardless. # However, you must set it for any further virtual host explicitly. #ServerName www.example.com
SSLCertificateFile /etc/letsencrypt/live/mysite.com/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/mysite.com/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf ServerName mysite.com </VirtualHost>
And here’s default-ssl.conf:
<IfModule mod_ssl.c> <VirtualHost default:443> ServerAdmin admin@mysite.com #ServerName mysite.com
</IfModule>
vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Thanks also for the rapid response. It is heartening.
Scot
This comment has been deleted