Today, I issued a certificate for my domain (if I check on crt.sh, It’s declared a ‘precertificate’ for my domain and sub domain).
But if I go to: https://www.ssllabs.com/ssltest/analyze.html?, It’s unable to resolve my domain name.
My server is hosted by Amazon lighsail and my web server is Apache 2 (port 80 that I redirect to my post 3000). My application server is NodeJS (port 3000).
Obviously, when I go to my domain name to reach my application, no certificate is shown. (I can reach my application with http but not https).
What I have done:
I create an account with certbot.
I requested a certificate successfully.
I linked my certificate keys (fullchain.pem and privkey.pem) to my apache configuration described see below:
Why my certificate is not reachable ? My idea is that my apache configuration is not good but I have no clue what to modify.
In my /etc/apache2/site-enabled, my file 000-default.conf is linked to my file …/site-available/000-default.conf
In my /etc/apache2/site-available folder, I have:
Should I create a my-domain.conf as stated in the step 2 there: https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04 and https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-18-04#step-5-—-setting-up-virtual-hosts-(recommended) ?
Moreover, here: https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-18-04#step-5-—-setting-up-virtual-hosts-(recommended)
they advise to create a directory for my domain in /var/www/your_domain in step 5?