To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address.
Try creating a test file with random content in your webroot under .well-known/acme-challenge (/opt/bitnami/apps/APPNAME/htdocs, I assume - you’ll probably need to create the acme-challenge subdirectory, as the client deletes it after execution) and see if your web server serves that content if you browse to http://yycre.ca/.well-known/acme-challenge/testfile.
If that doesn’t work, you’re either using the wrong path, or you have some kind of redirect interfering with things (perhaps in a .htaccess file) - in that case, you’d want to add an exception for the .well-known/acme-challenge path.
Created the subdirectories and uloaded a test file into it. Can't browse http://yycre.ca/.well-known/acme-challenge/testfile
Tried every combination of permissions, checked the .htaccess file and not able to browse the test file..
Started over and installed cerbot into the /opt folder and ran it from there based on this article.
Was able to create the certificates for the sub domain this way. Set up a virtual host for the mapped subdomains and with a virtual host setup it is partially working with a B grade on SSL Labs - 'This server's certificate chain is incomplete. Grade capped to B'
You’ll need fullchaim.pem instead of cert.pem as the file for SSLCertificateFile. The former includes the intermediate (chain) certificate.
If you’re using an older version of apache, you’ll need SSLCertificateFile pointing to cert.pem and SSLCertificateChainFile pointing to chain.pem (notfullchain.pem) instead. You can use Mozilla’s SSL Configuration Generator and enter your exact apache version to get the correct directives.
I’d also recommend pointing the directives straight to the files in /etc/letsencrypt/live rather than copying them. That way, you won’t need to copy them each time you renew your certificate (though you’ll still need a graceful reload of apache so that the new certificate and key is read from disk).