Git Product home page Git Product logo

acme-easy's People

Contributors

jonahgroendal avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jimmywarting

acme-easy's Issues

Acme Easy to renew certificates

Hi !! I am using your library to generate the certificates through DNS challenges. I wonder how can I get/expand your library to renew those certificates as well ?

Dose this have to be that complicated?

acme-easy/index.js

Lines 249 to 272 in f8a034c

async function getPemCertChain(nonce, jwk, accountUrl, certUrl) {
const header = {
alg: "ES256",
kid: accountUrl,
nonce: nonce,
url: certUrl
}
const payload = ""
const jwt = await jwtFromJson(jwk, header, payload)
const res = await fetch(certUrl, {
method: "POST",
headers: {
"Content-Type": "application/jose+json",
"Accept": "application/pem-certificate-chain"
},
body: JSON.stringify(parseJwt(jwt))
})
if (res.status >= 400)
throw new Error(res.statusText)
const pemCertChain = parsePemCertChain(await res.text())

i was using staging and i just tried to do:

fetch(certUrl).then(res => res.text())

and it seemed to work out just fine... didn't need to use any jwt, post, header, or anything complicated.

wildcard cert

is it possible to create a wildcard domain?
i tried it out but it said:

{
  "type": "urn:ietf:params:acme:error:orderNotReady",
  "detail": "Order's status (\"valid\") is not acceptable for finalization",
  "status": 403
}

reading up on advantages and disadvantages here: https://letsencrypt.org/docs/challenge-types/
it says http & tls don't support wildcard but dns dose.

Order's status (\"invalid\") is not acceptable for finalization

Hello,

First thanks for the lib :). Toying around ssl certs and it really helped. But for some reason i can't finalize the dns validation

  1. run first part as it is in example.
  2. using API updates vercels dns record with supplied values.
  3. waiting ~10 mins for DNS to propagate.
  4. submitDnsChallengeAndFinalize & it fails
Error: {"type":"urn:ietf:params:acme:error:orderNotReady","detail":"Order's status (\"invalid\") is not acceptable for finalization","status":403}

don't know why. It fails at postOrderFinalize. (dns record exists, server is not yet accessible tho)

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.