Enable SSL on my website

Hello,

I'm trying to install an SSL certificate for my website, and i'm failing… somewhat gloriously. So i followed this guide to begin with
https://www.linode.com/docs/security/ssl/create-a-self-signed-tls-certificate/ and everything went fine,

Then I installed lets encrypt and everything went well again and then i tried to enable it with the certbot tool. But that didnt work.

/opt/letsencrypt# a2enmod ssl
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socacheshmcb for ssl: Module socacheshmcb already enabled
Module ssl already enabled

/opt/letsencrypt# a2ensite agapeassistedliving.com
Site agapeassistedliving.com already enabled

agapeassistedliving:/opt/letsencrypt# openssl s_client -CApath /etc/ssl/certs/ -connect agapeassistedliving.com:443
connect: Connection refused
connect:errno=111

These are the files lets encrypt created
@agapeassistedliving:/etc/letsencrypt/live/agapeassistedliving.com# ls
cert.pem chain.pem fullchain.pem privkey.pem README

and this is how i have them in agapeassistedliving.com.conf

<virtualhost *:80=""></virtualhost>

<virtualhost *:443="">
SSLEngine On</virtualhost>

SSLCertificateFile /etc/ssl/localcerts/agapeassistedliving.com.crt

SSLCertificateKeyFile /etc/ssl/localcerts/agapeassistedliving.com.key

    SSLCertificateFile /etc/letsencrypt/live/agapeassistedliving.com/fullchain.pem
    SSLCertificateKeyFile  /etc/letsencrypt/live/agapeassistedliving.com/privkey.pem

And when this is enabled it forwards me to another domain that is hosted on my server. that site is ardentassistedliving.com which forwards to ( https://uniregistry.com/market/domain/ardentassistedliving.com?landerid=www5b6e2732b39b22.68649208 )

So somewhere somehow i got things messed up. Any help is much appreciated.

2 Replies

Did you restart your webserver? What does ports.conf look like?

Yes i have restarted the server. Ports.conf looks ok. I'm just at a loss why www.agapeassistedliving.com forwards to www.ardentassistedliving.com a domain which i no longer own.

agapeassistedliving:/etc/apache2# cat ports.conf

If you just change the port or add more ports here, you will likely also

have to change the VirtualHost statement in

/etc/apache2/sites-enabled/000-default.conf

Listen 0.0.0.0:80

<ifmodule ssl_module=""> Listen 443 </ifmodule>

<ifmodule mod_gnutls.c=""> Listen 443 </ifmodule>

vim: syntax=apache ts=4 sw=4 sts=4 sr noet

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct