Giter VIP home page Giter VIP logo

Comments (10)

DylanPiercey avatar DylanPiercey commented on July 20, 2024

Hey @jefftham, with @2.x of this library it has been completely changed to be an extremely thin wrapper around greenlock-express.

When I first created this module Greenlock (at the time node-letsencrypt) had a very unfriendly api and was missing many features. However now most of these features have been and so I have mostly stopped my efforts and changed this library to wrap their updated api.

The bundled domains option is currently missing from greenlock-express but with @2.2 I have made it so that the domain option is automatically flattened so that your existing config will still atleat work (it will not bundle though).

from auto-sni.

jefftham avatar jefftham commented on July 20, 2024

@DylanPiercey , i just tried the v2.2.1, the error still occur.
it is not the error cause by the nested domains.

it shows
le.challenges[tls-sni-01].loopback should be defined as function (opts, domain, token, cb) { ... } and should prove (by external means) that the ACME server challenge 'tls-sni-01' will succeed

from auto-sni.

DylanPiercey avatar DylanPiercey commented on July 20, 2024

@jefftham can you try removing and reinstalling your node modules? I can't seem to recreate this.

from auto-sni.

jefftham avatar jefftham commented on July 20, 2024

I created a new vm and try.
It did generate a cert if I set debug=true.
However, error occurs if debug=false.

from auto-sni.

DylanPiercey avatar DylanPiercey commented on July 20, 2024

@jefftham what if you use ports http:80 and https:443? I'm curious if its a port issue.

from auto-sni.

jefftham avatar jefftham commented on July 20, 2024

Yes, I use 80 and 443.

from auto-sni.

DylanPiercey avatar DylanPiercey commented on July 20, 2024

@jefftham can you run the standard (manual) lets encrypt client? Are those ports actually open? I'm a little stumped.

from auto-sni.

jefftham avatar jefftham commented on July 20, 2024

I think it is caused by greenlock-express.

i tested their QuickStart guide, it gives me the same error.

'use strict'; require('greenlock-express').create({ server: 'https://acme-v01.api.letsencrypt.org/directory' , email: '[email protected]' , agreeTos: true , approveDomains: [ 'xxx.example.com' ] , app: require('express')().use('/', function (req, res) { res.end('Hello, World!'); }) }).listen(80, 443);

error message:-
le.challenges[tls-sni-01].loopback should be defined as function (opts, domain, token, cb) { ... } and should prove (by external means) that the ACME server challenge 'tls-sni-01' will succeed Handling ACME challenges and redirecting to https on plain port 80 Handling ACME challenges and serving https 443

from auto-sni.

jefftham avatar jefftham commented on July 20, 2024

Ticket from greenlock-express

from auto-sni.

DylanPiercey avatar DylanPiercey commented on July 20, 2024

@jefftham thanks for checking that out. I may consider switching from greenock-express in the future but for now I will close this issue and we can follow the progress on the greenlock repo.

from auto-sni.

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.