Giter Site home page Giter Site logo

Comments (2)

andreas-venturini avatar andreas-venturini commented on July 30, 2024

Try uninstalling any previous installations of the plugin

pip uninstall letsencrypt-s3front && pip uninstall letsencrypt

Then reinstall by using the workaround command mentioned in #8:

source /home/<username>/.local/share/letsencrypt/bin/activate
git clone https://github.com/dlapiduz/letsencrypt-s3front.git
cd letsencrypt-s3front
python setup.py install

After, create cf-letsencrypt.sh in your home folder with the following contents:

source /home/<username>/.local/share/letsencrypt/bin/activate

AWS_ACCESS_KEY_ID=XXXXXXXXXX \
AWS_SECRET_ACCESS_KEY=XXXXXXXXXXX \
letsencrypt --agree-tos -a letsencrypt-s3front:auth \
--letsencrypt-s3front:auth-s3-bucket <s3-bucket-name> \
--letsencrypt-s3front:auth-s3-region <bucket-region> \
-i letsencrypt-s3front:installer \
--letsencrypt-s3front:installer-cf-distribution-id <cf-id> \
-d <domain>

After, run bash cf-letsencrypt.sh (depending on your distribution you might have to grant your user write access to the letsencrypt log file)

from certbot-s3front.

Rjs37 avatar Rjs37 commented on July 30, 2024

Cheers for baring with me. I've found what my main problem was!

Laravel Forge during the server config turns off the ability to access the server over SSH via root and instead sets up a user called forge to use.

The install commands needed root access so I was prepending them with sudo not realizing that was conflicting with / overriding the source command.

By using sudo -s to switch to root first, I was then able to run the install commands as source, and after that it worked fine under root. And cheers for the tip about write access, I've just come up against that when running it under the forge user!

Might be worth adding a note to the docs that the install (or at least the workaround) should be done under root. Also slight typo in your workaround:

cd letsencrypt-s3front

Thanks again!

from certbot-s3front.

Related Issues (20)

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.