GithubHelp home page GithubHelp logo

dcoles / acme-linode-objectstorage Goto Github PK

View Code? Open in Web Editor NEW
23.0 3.0 5.0 24 KB

ACME ("Let's Encrypt") client for Linode Object Storage

License: MIT License

Python 100.00%
linode object-storage acme-client lets-encrypt

acme-linode-objectstorage's Introduction

acme-linode-objectstorage's People

Contributors

dcoles avatar maia-everett avatar tosie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

acme-linode-objectstorage's Issues

Adapting this into a certbot plugin

Howdy! I came across this tool while looking for a certbot plugin to handle renewal for my linode object storage. I run certbot in a container as part of a docker-compose outlay for my application. How hard would it be to adapt this to certbot plugin? I'm not particularly familiar with the tools or the linode API so while I'm interested in working on this myself, I figure it might be trivial to someone who already knows the steps in this process.

Thanks for your time!

Add support for cname buckets

If you add a flag for the bucket name and separate it from the domain it would allow for creating certs for the custom domains set for the bucket.

ERROR: Challenge unsuccessful: pending

In the challenge response, I got the status "pending". So I had to change line 135 of __main__.py from:

challenge.poll_until_not({'processing'})

to:

challenge.poll_until_not({'pending','processing'})

Invalid State: pending

Hi there,
Thanks so much for this. I tried it from macos today and i received the following error. Here is the majority of the output. (FYI: Ichanged my bucket name => BUCKETNAME)

DEBUG:urllib3.connectionpool:http://BUCKETNAME:80 "HEAD /.well-known/acme-challenge/BmcmGIl_MLJ9o7jVIdmxYxGcm8oXzXcOyj88tXC8svk HTTP/1.1" 200 0
DEBUG:urllib3.connectionpool:https://acme-v02.api.letsencrypt.org:443 "POST /acme/chall-v3/170804966672/mkpqwg HTTP/1.1" 200 187
DEBUG:urllib3.connectionpool:https://acme-v02.api.letsencrypt.org:443 "POST /acme/chall-v3/170804966672/mkpqwg HTTP/1.1" 200 187
DEBUG:urllib3.connectionpool:https://acme-v02.api.letsencrypt.org:443 "POST /acme/chall-v3/170804966672/mkpqwg HTTP/1.1" 200 665
DEBUG:urllib3.connectionpool:https://api.linode.com:443 "POST /v4/object-storage/buckets/us-east-1/BUCKETNAME/object-url HTTP/1.1" 200 261
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): us-east-1.linodeobjects.com:443
DEBUG:urllib3.connectionpool:https://us-east-1.linodeobjects.com:443 "DELETE /BUCKETNAME/.well-known/acme-challenge/BmcmGIl_MLJ9o7jVIdmxYxGcm8oXzXcOyj88tXC8svk?Signature=EqopKbznzq866NfT3RaWe2DDCLc%3D&Expires=1667223743&AWSAccessKeyId=UQ9A5VC5FI7QSRZIJZPT HTTP/1.1" 204 0
INFO:root:Finalizing order
Traceback (most recent call last):
File "/opt/homebrew/Cellar/[email protected]/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/homebrew/Cellar/[email protected]/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/Users/josh/acme-linode-objectstorage/acme_linode_objectstorage/main.py", line 186, in
sys.exit(main())
File "/Users/josh/acme-linode-objectstorage/acme_linode_objectstorage/main.py", line 150, in main
order.finalize(csr)
File "/Users/josh/acme-linode-objectstorage/acme_linode_objectstorage/acme.py", line 154, in finalize
raise RuntimeError(f'Invalid state: {self.status}')
RuntimeError: Invalid state: pending

how to install?

I have failed to get to install this tool.
Tried to clone but it no work.

git clone https://github.com/dcoles/acme-linode-objectstorage/issues/new
root@localhost:~# ls
acme-linode-objectstorage
root@localhost:~# python3 -m acme_linode_objectstorage -k account_key.pem cdn.sleep.finance
/usr/bin/python3: No module named acme_linode_objectstorage 

tried to use use pip install

root@localhost:~# pip install git+https://github.com/dcoles/acme-linode-objectstorage
Collecting git+https://github.com/dcoles/acme-linode-objectstorage
  Cloning https://github.com/dcoles/acme-linode-objectstorage to /tmp/pip-req-build-1vti77ne
  Running command git clone --filter=blob:none --quiet https://github.com/dcoles/acme-linode-objectstorage /tmp/pip-req-build-1vti77ne
  Resolved https://github.com/dcoles/acme-linode-objectstorage to commit 3d10f677b778600528981d4953f30bb1c494c2b5
ERROR: git+https://github.com/dcoles/acme-linode-objectstorage does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

still failed. How to get this to the vps and start using?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.