Step-by-Step: Installing Certbot on Oracle Linux 7
Published Sept. 22, 2024, 7:11 a.m. by cloudblog
Update your package list:
sudo yum update
Install Certbot:
pip install certbot
Install working version of setuptools with certbot.
pip install setuptools==66.1.1
pip install certbot-apache
=============
In case still getting SSL error . Please start with new vrnv to establish the new cert.
python3 -m venv /home/cloudblog/venv
(cloudblog) [cloudblog@mcloudblog bin]$ source /home/cloudblog/venv/bin/activate
(venv) [cloudblog@mcloudblog bin]$ pip install certbot
(venv) [cloudblog@mcloudblog bin]$ pip install --upgrade pip
Successfully installed pip-24.2
(venv) [cloudblog@mcloudblog bin]$ pwd
/home/cloudblog/venv/bin
(venv) [cloudblog@mcloudblog bin]$ pip uninstall urllib3
Found existing installation: urllib3 2.2.3
Uninstalling urllib3-2.2.3:
Would remove:
/home/cloudblog/venv/lib/python3.8/site-packages/urllib3-2.2.3.dist-info/*
/home/cloudblog/venv/lib/python3.8/site-packages/urllib3/*
Proceed (Y/n)? y
Successfully uninstalled urllib3-2.2.3
(venv) [cloudblog@mcloudblog bin]$ pip install urllib3==1.26.14
Collecting urllib3==1.26.14
Downloading urllib3-1.26.14-py2.py3-none-any.whl.metadata (47 kB)
Downloading urllib3-1.26.14-py2.py3-none-any.whl (140 kB)
Installing collected packages: urllib3
Successfully installed urllib3-1.26.14
(venv) [cloudblog@mcloudblog bin]$ pip show urllib3
Name: urllib3
Version: 1.26.14
Summary: HTTP library with thread-safe connection pooling, file post, and more.
Home-page: https://urllib3.readthedocs.io/
Author: Andrey Petrov
Author-email: andrey.petrov@shazow.net
License: MIT
Location: /home/cloudblog/venv/lib/python3.8/site-packages
Requires:
Required-by: requests
(venv) [cloudblog@mcloudblog bin]$ sudo /home/cloudblog/venv/bin/certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The requested apache plugin does not appear to be installed
(venv) [cloudblog@mcloudblog bin]$ pip install setuptools==66.1.1
Collecting setuptools==66.1.1
Using cached setuptools-66.1.1-py3-none-any.whl.metadata (6.2 kB)
Using cached setuptools-66.1.1-py3-none-any.whl (1.3 MB)
Installing collected packages: setuptools
Attempting uninstall: setuptools
Found existing installation: setuptools 41.6.0
Uninstalling setuptools-41.6.0:
Successfully uninstalled setuptools-41.6.0
Successfully installed setuptools-66.1.1
(venv) [cloudblog@mcloudblog bin]$ pip install certbot-apache
Collecting certbot-apache
Using cached certbot_apache-2.11.0-py3-none-any.whl.metadata (1.5 kB)
Requirement already satisfied: acme>=2.11.0 in /home/cloudblog/venv/lib/python3.8/site-packages (from certbot-apache) (2.11.0)
Requirement already satisfied: certbot>=2.11.0 in /home/cloudblog/venv/lib/python3.8/site-packages (from certbot-apache) (2.11.0)
Collecting python-augeas (from certbot-apache)
Using cached python_augeas-1.1.0-py3-none-any.whl
Requirement already satisfied: setuptools>=41.6.0 in /home/cloudblog/venv/lib/python3.8/site-packages (from certbot-apache) (66.1.1)
Requirement already satisfied: importlib-resources>=1.3.1 in /home/cloudblog/venv/lib/python3.8/site-packages (from certbot-apache) (6.4.5)
Requirement already satisfied: cryptography>=3.2.1 in /home/cloudblog/venv/lib/python3.8/site-packages (from acme>=2.11.0->certbot-apache) (43.0.1)
Requirement already satisfied: josepy>=1.13.0 in /home/cloudblog/venv/lib/python3.8/site-packages (from acme>=2.11.0->certbot-apache) (1.14.0)
Requirement already satisfied: PyOpenSSL!=23.1.0,>=17.5.0 in /home/cloudblog/venv/lib/python3.8/site-packages (from acme>=2.11.0->certbot-apache) (24.2.1)
Requirement already satisfied: pyrfc3339 in /home/cloudblog/venv/lib/python3.8/site-packages (from acme>=2.11.0->certbot-apache) (1.1)
Requirement already satisfied: pytz>=2019.3 in /home/cloudblog/venv/lib/python3.8/site-packages (from acme>=2.11.0->certbot-apache) (2024.2)
Requirement already satisfied: requests>=2.20.0 in /home/cloudblog/venv/lib/python3.8/site-packages (from acme>=2.11.0->certbot-apache) (2.32.3)
Requirement already satisfied: ConfigArgParse>=1.5.3 in /home/cloudblog/venv/lib/python3.8/site-packages (from certbot>=2.11.0->certbot-apache) (1.7)
Requirement already satisfied: configobj>=5.0.6 in /home/cloudblog/venv/lib/python3.8/site-packages (from certbot>=2.11.0->certbot-apache) (5.0.9)
Requirement already satisfied: distro>=1.0.1 in /home/cloudblog/venv/lib/python3.8/site-packages (from certbot>=2.11.0->certbot-apache) (1.9.0)
Requirement already satisfied: parsedatetime>=2.4 in /home/cloudblog/venv/lib/python3.8/site-packages (from certbot>=2.11.0->certbot-apache) (2.6)
Requirement already satisfied: importlib-metadata>=4.6 in /home/cloudblog/venv/lib/python3.8/site-packages (from certbot>=2.11.0->certbot-apache) (8.5.0)
Requirement already satisfied: zipp>=3.1.0 in /home/cloudblog/venv/lib/python3.8/site-packages (from importlib-resources>=1.3.1->certbot-apache) (3.20.2)
Requirement already satisfied: cffi>=1.0.0 in /home/cloudblog/venv/lib/python3.8/site-packages (from python-augeas->certbot-apache) (1.17.1)
Requirement already satisfied: pycparser in /home/cloudblog/venv/lib/python3.8/site-packages (from cffi>=1.0.0->python-augeas->certbot-apache) (2.22)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/cloudblog/venv/lib/python3.8/site-packages (from requests>=2.20.0->acme>=2.11.0->certbot-apache) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /home/cloudblog/venv/lib/python3.8/site-packages (from requests>=2.20.0->acme>=2.11.0->certbot-apache) (3.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in /home/cloudblog/venv/lib/python3.8/site-packages (from requests>=2.20.0->acme>=2.11.0->certbot-apache) (1.26.14)
Requirement already satisfied: certifi>=2017.4.17 in /home/cloudblog/venv/lib/python3.8/site-packages (from requests>=2.20.0->acme>=2.11.0->certbot-apache) (2024.8.30)
Using cached certbot_apache-2.11.0-py3-none-any.whl (269 kB)
Installing collected packages: python-augeas, certbot-apache
Successfully installed certbot-apache-2.11.0 python-augeas-1.1.0
(venv) [cloudblog@mcloudblog bin]$ sudo /home/cloudblog/venv/bin/certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Enter email address (used for urgent renewal and security notices)
(Enter 'c' to cancel): contact@appsolworld.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.4-April-3-2024.pdf. You must agree in
order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing, once your first certificate is successfully issued, 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
Account registered.
Please enter the domain name(s) you would like on your certificate (comma and/or
space separated) (Enter 'c' to cancel): mcloudblog.com
Requesting a certificate for mcloudblog.com
Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
Similar posts
There are no similar posts yet.0 comments
There are no comments.