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 <domain>
+ sudo certbot -a certbot-varnish:varnish -i certbot-hitch:hitch -d <domain>
The Hitch installer plugin is licensed under the same terms as the Let's
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__)
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.
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',
],
},