Giter VIP home page Giter VIP logo

Comments (7)

diafygi avatar diafygi commented on July 21, 2024

Great issue. Yes, we could have a waiting loop that verifies the signatures and checks to see if the file is being hosted correctly,

from acme-nosudo.

ecc256 avatar ecc256 commented on July 21, 2024

I use this (pardon my noob python, please)

    while True:
        url = "http://{}/.well-known/acme-challenge/{}".format(domain, token)
        try:
            resp = urllib2.urlopen(url)
            result = resp.read()
            if result == keyauthorization:
                return
            sys.stderr.write("\nGot:\n{}Need:\n{}\n".format(result, keyauthorization))
        except urllib2.HTTPError as e:
            sys.stderr.write(e.code)

        pause()

from acme-nosudo.

JazzMaster avatar JazzMaster commented on July 21, 2024

I have a tweak just for this. Step 4: validation(on live server). You dont need root for this.
sign everything like usual(im doing on my local box here)
now, instead of giving the python script to run on the server, do this:
find your remote live server and ssh into it in another window

make dir(mkdir) .well-known/acme-challenge [in server root]
nano
the filename is what it asks you to run inside the python command. A zero byte file will do. type a key, delete it, then save the file.

The trick is that the filename has a period in it, but that part of the file is not actually requested.(pops a 404 on my wordpress setup), so you need to rename the file accordingly before continuing.Remove the period and everything after it.

The rest should succeed. Actually some cert servers request that you similar.All they are checking is that the domain belongs to you by telling you to serve some random filename.

No need to superseed an already running http service or server.Use whats running.Besides, shared hosts dont give you root access.

from acme-nosudo.

JazzMaster avatar JazzMaster commented on July 21, 2024

edit: close. It looks like the filename is correct but the entire key string given in the python file is needed inside the file. so forget the period for the filename but put everything in the file.

from acme-nosudo.

vinaythoke avatar vinaythoke commented on July 21, 2024

Hello Richard (JazzMaster),

I was also trying to install it on shared host. Provided that the shared host doesn't give me root access, the challenge step (STEP 4) was failed.

Could you please tell me how to go about it step-by-step if you know?
What file to create?
At what time during the script execution?

I would appreciate your help.
Thank you!

from acme-nosudo.

vinaythoke avatar vinaythoke commented on July 21, 2024

Never mind. I did it myself.

Thank you. :)

from acme-nosudo.

diafygi avatar diafygi commented on July 21, 2024

I've decided that I don't want to verify the file is being served properly. Let's Encrypt's verification will fail, so you'll see something is wrong anyway, and can retry again after you've fixed things.

from acme-nosudo.

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.