GNU/Linux >> Linux の 問題 >  >> Cent OS

CentOS Stream8にCertbotをインストールする方法[Let’s Encrypt]

2017年に、StarSSLからLet’s Encryptへの移行に関する記事を作成しました。また、Let’sEncryptの問題と解決策について書かれた記事も多数表示されます。ここでも、LetsEncryptから証明書を自動的に要求するスクリプトであるCertbotパッケージをインストールする方法を書いています。この記事では、CentOS Stream 8にCertbotをインストールする方法を紹介します。CentOSStream8にインストールしようとしたときに、次のエラーが発生しました。

# dnf install certbot
Last metadata expiration check: 3:18:07 ago on Fri 11 Feb 2022 07:32:13 AM IST.
No match for argument: certbot
Error: Unable to find a match: certbot

CentOSStream8にCertbotをインストールする方法

Certbot パッケージは、デフォルトではパッケージマネージャーからは利用できません。 EPEL を有効にする必要があります Certbotをインストールするためのリポジトリ。

EPELリポジトリをCentOSStream8に追加する方法

# dnf install epel-release -y
Last metadata expiration check: 0:00:53 ago on Fri 11 Feb 2022 10:53:21 AM IST.
Dependencies resolved.
=============================================================================================================================================================================================================================================
 Package                                                          Architecture                                          Version                                                  Repository                                             Size
=============================================================================================================================================================================================================================================
Installing:
 epel-release                                                     noarch                                                8-11.el8                                                 extras                                                 24 k
Installing weak dependencies:
 epel-next-release                                                noarch                                                8-11.el8                                                 extras                                                 11 k

Transaction Summary
=============================================================================================================================================================================================================================================
Install  2 Packages

Total download size: 35 k
Installed size: 38 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): epel-next-release-8-11.el8.noarch.rpm                                                                                                                                                                 2.2 kB/s |  11 kB     00:05
(2/2): epel-release-8-11.el8.noarch.rpm                                                                                                                                                                      4.6 kB/s |  24 kB     00:05
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                        3.3 kB/s |  35 kB     00:10
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                     1/1
  Installing       : epel-release-8-11.el8.noarch                                                                                                                                                                                        1/2
  Installing       : epel-next-release-8-11.el8.noarch                                                                                                                                                                                   2/2
  Running scriptlet: epel-next-release-8-11.el8.noarch                                                                                                                                                                                   2/2
  Verifying        : epel-next-release-8-11.el8.noarch                                                                                                                                                                                   1/2
  Verifying        : epel-release-8-11.el8.noarch                                                                                                                                                                                        2/2

Installed:
  epel-next-release-8-11.el8.noarch                                                                                       epel-release-8-11.el8.noarch

Complete!

これでEPELリポジトリが追加されたので、certbotのインストールに進みます。

# dnf install certbot -y
Extra Packages for Enterprise Linux 8 - Next - x86_64 9.6 kB/s | 159 kB 00:16
Dependencies resolved.
=============================================================================================================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================================================================================================
Installing:
certbot noarch 1.22.0-1.el8 epel 54 k
Installing dependencies:
python3-acme noarch 1.22.0-1.el8 epel 96 k
python3-certbot noarch 1.22.0-1.el8 epel 426 k
python3-configargparse noarch 0.14.0-6.el8 epel 36 k
python3-distro noarch 1.4.0-2.module_el8.5.0+761+faacb0fb appstream 37 k
python3-josepy noarch 1.9.0-1.el8 epel 103 k
python3-parsedatetime noarch 2.5-1.el8 epel 79 k
python3-pip noarch 9.0.3-22.el8 appstream 20 k
python3-pyOpenSSL noarch 19.0.0-1.el8 appstream 103 k
python3-pyrfc3339 noarch 1.1-1.el8 epel 19 k
python3-requests-toolbelt noarch 0.9.1-4.el8 epel 91 k
python3-setuptools noarch 39.2.0-6.el8 baseos 163 k
python3-zope-component noarch 4.3.0-8.el8 epel 313 k
python3-zope-event noarch 4.2.0-12.el8 epel 210 k
python3-zope-interface x86_64 4.6.0-1.el8 epel 158 k
python36 x86_64 3.6.8-38.module_el8.5.0+895+a459eca8 appstream 19 k
Installing weak dependencies:
python-josepy-doc noarch 1.9.0-1.el8 epel 23 k
Enabling module streams:
python36 3.6

それでおしまい!これで、certbotを実行して、Let’sEncryptから証明書を取得できます。


Cent OS
  1. CentOSStream8にCertbotApacheプラグインをインストールします

  2. CentOS9ストリームにMySQLをインストールする方法

  3. CentOSStream9にPHP7.4をインストールする方法

  1. CentOS7または8ストリームにChromeブラウザをインストールする方法

  2. CentOSStream9にLaravelをインストールする方法

  3. CentOS9ストリームにNagiosをインストールする方法

  1. CentOSStream9にComposerをインストールする方法

  2. CentOS9ストリームにGitをインストールする方法

  3. CentOS9ストリームにMariaDBをインストールする方法