I have successfully created certificates for my domain using: ./letsencrypt-auto certonly -a manual --rsa-key-size 4096 -d example.com -d www.example.com —debug
When using certonly you’re responsible for installing the certificate. So without more information of your webserver setup and configuration, we can only guess.
No, you did not misunderstood. As you have mentioned, the http version does not show the ssl connection. Additionally, the domain without the ‘www’ also does not show the ssl.
@xxjfe Thanks very much for your reply. I will setup the redirect as you have kindly advised. However, I did not setup any redirect in order for the www version to work. Is it a must to setup a redirect or it can work without it?
Just noticed the www version doesn’t have a redirect either. When most people type pub2app.com or www.pub2app.com into their browser they will get the non-https version. A redirect is necessary if you want to change this.
A possible explanation for what you’re seeing is that you manually went to the HTTPS version of your www.pub2app.com site, so your browser remembers that and completes that when you type in www.pub2app.com. But since you haven’t visited the HTTPS versions of the other sites, the browser doesn’t know to prefer them.
Other commenters here are right to say that you want to set up a redirect in the web server and that how to do that depends on what web server software you’re using.
@schoen Thanks so much for your reply and explanation. So sorry for my late reply.
Regarding the browser issue, I have put this issue into considerations and tried four different browsers; chrome (new incognito window), safari, firefox (new private window), and tor. After each visit, I clear the browser’s cache then I close it. I open the browser, clear the browser’s cache, then revisit. All previous steps lead to same results.
Redirect had solved the issue. However, I expected that the non-www version will redirect automatically like the www version without configuring .htaccess.