Comments (8)
The API has completely changed and would likely require a rewrite of this module to integrate. I will dig a bit deeper when I get some time.
from auto-sni.
@janwo I have updated auto-sni to use 'greenlock-express'. There were some features removed (disabling forcessl, custom redirect https status code and self signed certs on failure) but the api is more/less the same (except for restify users.)
This module is now an extremely thin wrapper and is only 51 loc. Please try updating and let me know how this goes!
from auto-sni.
@DylanPiercey I tried it out now, but now it does not work on my hapi environment anymore. Any ideas?
[le/lib/middleware.js] created middleware
Handling ACME challenges and redirecting to https on plain port 80
Handling ACME challenges and serving https 443
And thats it...
from auto-sni.
@janwo can you post your setup code?
from auto-sni.
import {Server} from 'hapi';
// Initialize Hapi server.
let server = new Server({
connections: {
router: {
isCaseSensitive: true,
stripTrailingSlash: true
}
}
});
// Load SSL key and certificate.
let autoSni = AutoSNI({
email: Config.backend.mails.admin,
agreeTos: true,
debug: Config.debug,
domains: [
Config.backend.domain
],
ports: {
http: Config.backend.ports.http,
https: Config.backend.ports.https
}
});
// Create server connection.
server.connection({
listener: autoSni,
tls: true,
autoListen: false
});
I removed forceSSL
and the redirectCode
in order to stay compatible to your update.
from auto-sni.
And you are running this on a server that is being accessed by Config.backend.domain
?
from auto-sni.
Oh, I think I solved the error. I used the https
prefix within the config. I try that out now. Sorry for wasting your time π
from auto-sni.
No problem happy to help.
from auto-sni.
Related Issues (20)
- No prior setup required? HOT 1
- use fullchain.pem instead of cert.pem HOT 3
- root access question HOT 2
- mention dependencies on windows in the readme HOT 2
- new version of letsencrypt v1.5.0 HOT 5
- AutoSNI LetsEncrypt Error: TypeError: Path must be a string. Received undefined HOT 11
- SSL peer handshake fails, how to reset? HOT 6
- Error with Nodejs/Restify HOT 1
- certificate issue HOT 2
- Setting multiple domains HOT 4
- This Let's Encrypt / ACME server has been updated with urls that this client doesn't understand HOT 1
- renewal HOT 5
- error in 2.1.1 : le.challenges[tls-sni-01].loopback should be defined as function (opts, domain, token, cb) HOT 10
- Challenge route? HOT 4
- Update domains without restarting server HOT 1
- Where are the certificates stored? HOT 2
- **Question**Can auto-sni dynamically generate SSL certs? HOT 1
- Greenlock updated HOT 4
- Does letsencrypt still support SNI?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto-sni.