Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
Please try to run the certbot again, but this time, use certbot --apache --preferred-challenges http
This error message was generated because the default verification method tls-sni-01 is disabled due to security issues. The prefer challenges override this method.
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter ācā to cancel):5 6
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Obtaining a new certificate
Performing the following challenges:
None of the preferred challenges are supported by the selected plugin
Thatās the expected result from running --preferred-challenges http without upgrading Certbot. This is described in more detail in the thread that Iāve just linked to above.
root@asr-2:/# gpg2 --recv-key A2CFB51FA275A7286234E7B24D17C995CD9775F2
gpg: requesting key CD9775F2 from hkp server keys.gnupg.net
gpg: key CD9775F2: "Let's Encrypt Client Team letsencrypt-client@eff.org" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
root@asr-2:/# gpg2 --trusted-key 4D17C995CD9775F2 --verify certbot-auto.asc certbot-auto
gpg: can't open signed data `certbot-auto'
gpg: can't hash datafile: No such file or directory
root@asr-2:/# ./certbot-auto --help all
-bash: ./certbot-auto: No such file or directory
root@asr-2:/# certbot --authenticater standalone --installr apache -d demoflorida.com --pre-hook "service apaches stop --pst-hook "service apache2 start"
Certbot can obtain and install HTTPS/TLS/SSL certificates. By default,
it will attempt to use a webserver both for obtaining and installing the
cert.
certbot: error: unrecognized arguments: apache2 stopā apache2 startā
root@asr-2:/etc/apache2/sites-available# certbot --authenticator standalone --installer apache -d demoflorida.com --pre-hook āservice apache stopā --post-hook āservice apache startā
usage:
certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] ...
Certbot can obtain and install HTTPS/TLS/SSL certificates. By default,
it will attempt to use a webserver both for obtaining and installing the
cert.
certbot: error: unrecognized arguments: apache stopā apache startā
root@asr-2:/etc/apache2/sites-available#
You started with the āHintā section related to checking the signature on the downloaded certbot-auto script, but you skipped over three commands related to actually downloading certbot-auto, which are above the āHintā section.
root@asr-2:~# gpg2 --recv-key A2CFB51FA275A7286234E7B24D17C995CD9775F2
gpg: requesting key CD9775F2 from hkp server keys.gnupg.net
gpg: key CD9775F2: āLetās Encrypt Client Team letsencrypt-client@eff.orgā not changed
gpg: Total number processed: 1
gpg: unchanged: 1
root@asr-2:~# gpg2 --trusted-key 4D17C995CD9775F2 --verify certbot-auto.asc certbot-auto
gpg: canāt open signed data `certbot-autoā
gpg: canāt hash datafile: No such file or directory
root@asr-2:~#
This is what is posted in previous post, throws error
.
root@asr-2:~# chmod a+x ./certbot-auto
root@asr-2:~# ./certbot-auto --help
Usage: certbot-auto [OPTIONS]
A self-updating wrapper script for the Certbot ACME client. When run, updates
to both this script and certbot will be downloaded and installed. After
ensuring you have the latest versions installed, certbot will be invoked with
all arguments you have provided.
Help for certbot itself cannot be provided until it is installed.
ādebug attempt experimental installation
-h, --help print this help
-n, --non-interactive, --noninteractive run without asking for user input
āno-bootstrap do not install OS dependencies
āno-self-upgrade do not download updates
āos-packages-only install OS dependencies and exit
āinstall-only install certbot, upgrade if needed, and exit
-v, --verbose provide more output
-q, --quiet provide only update/error output;
implies --non-interactive
All arguments are accepted and forwarded to the Certbot client when run.
root@asr-2:~# certbot
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Certbot doesnāt know how to automatically configure the web server on this system. However, it can still get a certificate for you. Please run ācertbot certonlyā to do so. Youāll need to manually configure your web server to use the resulting certificate.
root@asr-2:~#
When you run certbot, youāre running your old OS package manager version. Only ./certbot-auto runs the self-updating version that you downloaded. So, you can run, for example, ./certbot-auto --apache to use the new version to perform your original task.
./certbot-auto will never rename itself to certbot, so this distinction will always continue to exist for every Certbot command that you might run on this system. You can see this distinction by running ./certbot-auto --version and certbot --version.
That worked, certbot downloaded required dependencies and installed, only the site does not display right under https so I had to choose option 1 - no redirect.
You most likely have a mixed content problem (insecure images, stylesheets, or scripts loaded from an HTTPS page). You can check at https://www.whynopadlock.com/.
The site I installed https is demoflorida.com, which displays OK over http, I built it without using https on top of Drupal 7 CMS, donāt know what you mean by insecure images, it is not a porn site. I do need to mplement https ,because I need to iframe certain scripts that are delivered via https, can you help with that? I use a theme that uses stylesheets but I need those, does https break stylesheets?
Tested site with your link and only warnings were:1) weserver not forcing https which I know of for reasons expalined above.
The other one 2)You currently have TLSv1 enabled.
This version of TLS is being phased out. This warning wonāt break your padlock, however if you run an eCommerce site, PCI requirements state that TLSv1 must be disabled by June 30, 2018.
The only way I see to solve this is by moving to the next version of Debian webserver, athough backports are enabled int the Wheezy version I use, my local machine runs on Stretch +plus testing (Buster).
If your site is HTTPS then your images and stylesheets need to be loaded using https:// URLs rather than http:// URLs. That is what @schoen meant by āinsecureā - http without the āsā
With Drupal 7 this is generally controlled by the $base_url setting in settings.php - you probably need to change it from http://demoflorida.com to https://demoflorida.com
Ok, and I did not select in certbot-auto to modify the server to force https, so should I run it again?
Or
what changes do I need to make in the server configuration?
my virtual host also has directive ServerAlias www.demoflorida.com
SHould I leave that as is or modify?
Working at $base_url, problem is that there is an example for the syntax and I just need to uncomment and edit it, but it is part of a paragraph that is commented out altogether and I want to leave it that way, just that line needs to be uncommented and I donāt know how to do that.