diff --git a/README.md b/README.md index 95350fa..0350a3b 100644 --- a/README.md +++ b/README.md @@ -51,12 +51,12 @@ To generate a certificate and install it in a CloudFront distribution: ```bash AWS_ACCESS_KEY_ID="REPLACE_WITH_YOUR_KEY" \ AWS_SECRET_ACCESS_KEY="REPLACE_WITH_YOUR_SECRET" \ -certbot --agree-tos -a certbot-s3front:auth \ ---certbot-s3front:auth-s3-bucket REPLACE_WITH_YOUR_BUCKET_NAME \ -[ --certbot-s3front:auth-s3-region your-bucket-region-name ] #(the default is us-east-1, unless you want to set it to something else, you can delete this line) \ -[ --certbot-s3front:auth-s3-directory your-bucket-directory ] # (default is "") \ --i certbot-s3front:installer \ ---certbot-s3front:installer-cf-distribution-id REPLACE_WITH_YOUR_CF_DISTRIBUTION_ID \ +certbot --agree-tos -a s3front_auth \ +--s3front_auth-s3-bucket REPLACE_WITH_YOUR_BUCKET_NAME \ +[ --s3front_auth-s3-region your-bucket-region-name ] #(the default is us-east-1, unless you want to set it to something else, you can delete this line) \ +[ --s3front_auth-s3-directory your-bucket-directory ] # (default is "") \ +-i s3front_installer \ +--s3front_installer-cf-distribution-id REPLACE_WITH_YOUR_CF_DISTRIBUTION_ID \ -d REPLACE_WITH_YOUR_DOMAIN ``` diff --git a/certbot_s3front/authenticator.py b/certbot_s3front/authenticator.py index 69dec03..05444ff 100644 --- a/certbot_s3front/authenticator.py +++ b/certbot_s3front/authenticator.py @@ -20,7 +20,7 @@ @zope.interface.implementer(interfaces.IAuthenticator) @zope.interface.provider(interfaces.IPluginFactory) -class Authenticator(common.Plugin): +class Authenticator(common.Plugin, interfaces.Authenticator): description = "S3/CloudFront Authenticator" @classmethod diff --git a/certbot_s3front/installer.py b/certbot_s3front/installer.py index 405f01a..bb10fcc 100644 --- a/certbot_s3front/installer.py +++ b/certbot_s3front/installer.py @@ -21,7 +21,7 @@ @zope.interface.implementer(interfaces.IInstaller) @zope.interface.provider(interfaces.IPluginFactory) -class Installer(common.Plugin): +class Installer(common.Installer): description = "S3/CloudFront Installer" @classmethod diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index a0fc65e..45a63cb 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,3 +1,3 @@ #!/bin/sh -/usr/local/bin/certbot -n --init --agree-tos -a certbot-s3front:auth -i certbot-s3front:installer --certbot-s3front:auth-s3-bucket $AWS_S3_BUCKET --certbot-s3front:installer-cf-distribution-id $AWS_DISTRIBUTION_ID --email $EMAIL -d $DOMAIN +/usr/local/bin/certbot -n --init --agree-tos -a s3front_auth -i s3front_installer --s3front_auth-s3-bucket $AWS_S3_BUCKET --s3front_installer-cf-distribution-id $AWS_DISTRIBUTION_ID --email $EMAIL -d $DOMAIN diff --git a/setup.py b/setup.py index 31a16c2..76498b1 100644 --- a/setup.py +++ b/setup.py @@ -3,11 +3,11 @@ from distutils.core import setup from setuptools import find_packages -version = '0.4.2' +version = '0.4.3' install_requires = [ 'acme>=0.1.1', - 'certbot>=0.9.3', + 'certbot>=2.8.0', 'PyOpenSSL', 'setuptools', # pkg_resources 'zope.interface', @@ -55,8 +55,8 @@ keywords = ['certbot', 'cloudfront', 's3'], entry_points={ 'certbot.plugins': [ - 'auth = certbot_s3front.authenticator:Authenticator', - 'installer = certbot_s3front.installer:Installer', + 's3front_auth = certbot_s3front.authenticator:Authenticator', + 's3front_installer = certbot_s3front.installer:Installer', ], }, )