[root@TEST-VM-01 ~]#dnf -y install epel-release Last metadata expiration check: 0:05:01 ago on Sat 10 Feb 2024 06:30:10 AM UTC. Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: epel-release noarch 8-18.el8 extras 24 k
[root@TEST-VM-01 ~]#dnf –enablerepo=epel -y install snapd Last metadata expiration check: 0:06:54 ago on Sat 10 Feb 2024 06:39:18 AM UTC. Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: snapd x86_64 2.61.1-0.el8 epel 18 M Installing dependencies: bash-completion noarch 1:2.7-5.el8 baseos 272 k libpkgconf x86_64 1.4.2-1.el8 baseos 34 k pkgconf x86_64 1.4.2-1.el8 baseos 37 k pkgconf-m4 noarch 1.4.2-1.el8 baseos 16 k pkgconf-pkg-config x86_64 1.4.2-1.el8 baseos 14 k snap-confine x86_64 2.61.1-0.el8 epel 3.8 M snapd-selinux noarch 2.61.1-0.el8 epel 560 k
[root@TEST-VM-01 ~]#snap install certbot –classic Warning: /var/lib/snapd/snap/bin was not found in your $PATH. If you’ve not restarted your session since you installed snapd, try doing that. Please see https://forum.snapcraft.io/t/9469 for more details.
certbot 2.8.0 from Certbot Project (certbot-eff?) installed [root@TEST-VM-01 ~]#snap list Name Version Rev Tracking Publisher Notes certbot 2.8.0 3566 latest/stable certbot-eff? classic #certbot core 16-2.60.4 16202 latest/stable canonical? core core20 20231123 2105 latest/stable canonical? base
[root@TEST-VM-01 ~]#certbot certonly –manual -d www.example.com –preferred-challenges dns Saving debug log to /var/log/letsencrypt/letsencrypt.log Requesting a certificate for www.example.com
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – Please deploy a DNS TXT record under the name:
Before continuing, verify the TXT record has been deployed. Depending on the DNS provider, this may take some time, from a few seconds to multiple minutes. You can check if it has finished deploying with aid of online tools, such as the Google Admin Toolbox: https://toolbox.googleapps.com/apps/dig/#TXT/_acme-challenge.www.example.com. Look for one or more bolded line(s) below the line ';ANSWER’. It should show the value(s) you’ve just added.
Successfully received certificate. Certificate is saved at: /etc/letsencrypt/live/www.example.com/fullchain.pem Key is saved at: /etc/letsencrypt/live/www.example.com/privkey.pem This certificate expires on 2024-05-10. These files will be updated when the certificate renews.
NEXT STEPS: – This certificate will not be renewed automatically. Autorenewal of –manual certificates requires the use of an authentication hook script (–manual-auth-hook) but one was not provided. To renew this certificate, repeat this same certbot command before the certificate’s expiry date.