My domain is: ugochukwu.org
After following the instruction on https://certbot.eff.org/lets-encrypt/debianstretch-apache, I ran the bellow command to get wildcard sll certificate:
certbot certonly
--dns-cloudflare
--dns-cloudflare-credentials ~/.secrets/certbot/cloudflare.ini
-d ugochukwu.org
-d *.ugochukwu.org -i apache
Bur it produced the bellow output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator dns-cloudflare, Installer None
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel): support@myemail.com
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory
(A)gree/(C)ancel: A
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.
(Y)es/(N)o: Y
Obtaining a new certificate
Performing the following challenges:
dns-01 challenge for ugochukwu.org
dns-01 challenge for ugochukwu.org
Unsafe permissions on credentials configuration file: ~/.secrets/certbot/clo udflare.ini
Waiting 10 seconds for DNS changes to propagate
Waiting for verification...
Cleaning up challengesIMPORTANT NOTES:
Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/ugochukwu.org/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/ugochukwu.org/privkey.pem
Your cert will expire on 2019-10-09. To obtain a new or tweaked
version of this certificate in the future, simply run certbot
again. To non-interactively renew all of your certificates, run
"certbot renew"Your account credentials have been saved in your Certbot
configuration directory at /etc/letsencrypt. You should make a
secure backup of this folder now. This configuration directory will
also contain certificates and private keys obtained by Certbot so
making regular backups of this folder is ideal.If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: Donate - Let's Encrypt
Donating to EFF: Support EFF's Work on Let's Encrypt | Electronic Frontier Foundation
But my problem now is that, during the installation process, it did not ask me if I want to redirect http connections to https, now the installation was done successful but I cannot have my sites redirect to https, which makes it show not secure warning on the browser.
How should I run the final setup or configuration to have my sites and its sub domain to redirect to https?
My web server is (include version): Apache/2.4.25 (Debian)
The operating system my web server runs on is (include version):Debian 9
My hosting provider, if applicable, is: google cloud compute engine
I can login to a root shell on my machine (yes or no, or I don't know): Yes
certbot --version
or certbot-auto --version
if you're using Certbot): certbot 0.28.0