dlapiduz / certbot-s3front

Certbot CLI plugin for S3/CloudFront validation and installation
MIT License
584 stars 70 forks source link

certbot: error: unrecognized arguments: --certbot-s3front:auth-s3-bucket my-bucket #94

Open mrryanjohnston opened 8 months ago

mrryanjohnston commented 8 months ago

I ran this: python3 -m venv. I installed by doing ./bin/pip install certbot-s3front.

$ ./bin/certbot --version
certbot 2.8.0

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* auth
Description: S3/CloudFront Authenticator
Interfaces: Plugin
Entry point: EntryPoint(name='auth',
value='certbot_s3front.authenticator:Authenticator', group='certbot.plugins')

* installer
Description: S3/CloudFront Installer
Interfaces: Plugin
Entry point: EntryPoint(name='installer',
value='certbot_s3front.installer:Installer', group='certbot.plugins')

* standalone
Description: Runs an HTTP server locally which serves the necessary validation
files under the /.well-known/acme-challenge/ request path. Suitable if there is
no HTTP server already running. HTTP challenge only (wildcards not supported).
Interfaces: Authenticator, Plugin
Entry point: EntryPoint(name='standalone',
value='certbot._internal.plugins.standalone:Authenticator',
group='certbot.plugins')

* webroot
Description: Saves the necessary validation files to a
.well-known/acme-challenge/ directory within the nominated webroot path. A
seperate HTTP server must be running and serving files from the webroot path.
HTTP challenge only (wildcards not supported).
Interfaces: Authenticator, Plugin
Entry point: EntryPoint(name='webroot',
value='certbot._internal.plugins.webroot:Authenticator',
group='certbot.plugins')
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

I run:

$ ./bin/certbot --agree-tos -a certbot-s3front:auth \
--certbot-s3front:auth-s3-bucket my-bucket \
-i certbot-s3front:installer \
--certbot-s3front:installer-cf-distribution-id my-dist-id \
-d my-domain --config-dir=. --work-dir=. --logs-dir=.
usage: 
  certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] ...

Certbot can obtain and install HTTPS/TLS/SSL certificates.  By default,
it will attempt to use a webserver both for obtaining and installing the
certificate. 
certbot: error: unrecognized arguments: --certbot-s3front:auth-s3-bucket my-bucket --certbot-s3front:installer-cf-distribution-id my-dist-id

Any further info I can provide, let me know.

jensbjorgensen commented 7 months ago

The current plugin does not work with certbot 2.8.0 (don't know exactly at what version it broke). I've created a pull request which fixes this: https://github.com/dlapiduz/certbot-s3front/pull/95 but please note that command-line arguments to certbot would change, instead of certbot-s3front:X it'll be s3front_X.