Giter Site home page Giter Site logo

Comments (5)

johnfishbein avatar johnfishbein commented on August 19, 2024 1

Ah sorry, forgot to close the loop here - your PR #71 fixed the issue for me since I am now able to use my predefined eab credentials. Thanks for your help!

from lua-resty-acme.

johnfishbein avatar johnfishbein commented on August 19, 2024

This is the invocation of the lua-resty-acme library that the kong plugin is performing. I hope this helps to provide clarity on my approach.

The kong plugin invokes this acme library as follows:
https://github.com/Kong/kong/blob/master/kong/plugins/acme/client.lua#L108

acme_client, err = acme.new({
    account_email = conf.account_email, -- my email
    account_key = account.key,
    api_uri = url, -- "https://acme.zerossl.com/v2/DV90"
    storage_adapter = storage_full_path,
    storage_config = conf.storage_config[conf.storage],
    eab_kid = conf.eab_kid, -- nil
    eab_hmac_key = conf.eab_hmac_key, -- nil
    -- challenge_start_callback = ... 
    preferred_chain = conf.preferred_chain, -- nil
  })

https://github.com/Kong/kong/blob/master/kong/plugins/acme/client.lua#L129

acme_client:init()
acme_client:new_account()
acme_client:order_certificate(key, host)

from lua-resty-acme.

fffonion avatar fffonion commented on August 19, 2024

Hi @johnfishbein thanks for the detailed report. It does seem the logic to handle predefined eab crendential is wrong. You can let the library to create it for you at present, you should still be able to see the certs in zerossl dashboars as long as you use the corresponding email to login.

The \/ is json's escape logic, it's same as / when decoded. So I'm not sure how/why zerossl returns this error; my previous experience is that zerossl has some hidden "limits" on the newAccount API, it returns sometimes 500 sometimes others, even though a different acme client is used. But you can try swap the account private key, that seems to clear the "limit".

from lua-resty-acme.

johnfishbein avatar johnfishbein commented on August 19, 2024

@fffonion Thanks for your response - I will try swapping the account_key as suggested.

from lua-resty-acme.

fffonion avatar fffonion commented on August 19, 2024

Closing as inactivity, please reopen if needed : )

from lua-resty-acme.

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.