From: Steinar H. Gunderson Date: Sun, 16 Apr 2023 11:10:17 +0000 (+0200) Subject: Small update for certbot in bookworm. X-Git-Url: https://git.sesse.net/?p=letsencrypt-hitch-plugin;a=commitdiff_plain;h=HEAD;hp=1a3f65859f881ee50b07749d7128384be7aaac62 Small update for certbot in bookworm. --- diff --git a/README b/README index 35d9a67..96c4057 100644 --- a/README +++ b/README @@ -5,19 +5,19 @@ This is a Let's Encrypt installer module for hitch. It is currently To use, assuming you've installed the Varnish authentication plugin: - 1. Install letsencrypt as usual, with letsencrypt-auto. + 1. Install certbot as usual. - 2. Activate the venv: + 2. Activate the venv, if installed in a venv: - . ~/.local/share/letsencrypt/bin/activate + . ~/.local/share/certbot/bin/activate 3. Install the module: - pip install -e path/to/this/letsencrypt-hitch + pip3 install -e path/to/this/certbot-hitch 4. Ask for and install a certificate: - sudo ~/.local/share/letsencrypt/bin/letsencrypt --agree-dev-preview --server https://acme-v01.api.letsencrypt.org/directory -a letsencrypt-varnish-plugin:varnish -i letsencrypt-hitch-plugin:hitch -d + sudo certbot -a certbot-varnish:varnish -i certbot-hitch:hitch -d The Hitch installer plugin is licensed under the same terms as the Let's diff --git a/hitch.py b/hitch.py index 537e02c..edcaedd 100644 --- a/hitch.py +++ b/hitch.py @@ -4,13 +4,11 @@ import os import re import subprocess -import zope.component - from zope.interface import implementer, provider -from letsencrypt import errors -from letsencrypt import interfaces -from letsencrypt.plugins import common +from certbot import errors +from certbot import interfaces +from certbot.plugins import common logger = logging.getLogger(__name__) @@ -34,6 +32,10 @@ class Installer(common.Plugin): def get_all_names(self): raise errors.PluginError("not implemented") + @classmethod + def add_parser_arguments(cls, add): + pass + def deploy_cert(self, domain, cert_path, key_path, chain_path=None, fullchain_path=None): # Concatenate private key and certificate together into one file. diff --git a/setup.py b/setup.py index bbe3859..3e81609 100644 --- a/setup.py +++ b/setup.py @@ -2,14 +2,14 @@ from setuptools import setup setup( - name='letsencrypt-hitch-plugin', + name='certbot-hitch', package='hitch.py', install_requires=[ - 'letsencrypt', + 'certbot>=0.26.0', 'zope.interface', ], entry_points={ - 'letsencrypt.plugins': [ + 'certbot.plugins': [ 'hitch = hitch:Installer', ], },