Let's Encrypt makes websocket fail
See original GitHub issueTrying Let’s Encrypt for the first time with my mup deployment. Using the autogenerate clause in the SSL area of mup.js causes a websocket connection error after my app is deployed.
In Chrome’s console:
WebSocket connection to 'wss://....' failed: Error in connection establishment: net::ERR_NOT_IMPLEMENTED
I usually use uploaded certs and that works fine. I use abernix/meteord:base
docker image. Here is the mup.js I’m using:
module.exports = {
servers: {
one: {
host: '172.217.5.110',
username: 'root',
pem: '/Users/al/.ssh/id_rsa.do'
}
},
meteor: {
name: 'sub-domain',
path: '/Users/al/cool-app',
docker: {
image: 'abernix/meteord:base'
},
servers: {
one: {}
},
buildOptions: {
serverOnly: true,
},
env: {
ROOT_URL: "https://sub.domain.com",
NODE_ENV: "production",
MONGO_URL: "mongodb://...",
MONGO_OPLOG_URL: "mongodb://..."
},
ssl: {
port: 443,
autogenerate: {
email: 'admin@domain.com',
domains: 'sub.domain.com'
}
},
deployCheckWaitTime: 60
},
};
Is this a known issue? Is there a workaround I can currently use?
I’m on the latest mup 1.2.8.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Error establishing SSL connection - Help
I have a website running on hostinger.com. They gave me a lifetime letsencrypt ssl. I host a server on my own internet that...
Read more >WebSocket connection failure over Letsencrypt SSL certificate
Hey guys I was using python tornado websocket along with angular-websocket on the client on nginx server over letsencrypt certificate.
Read more >Let's encrypt CA websocket fails on Android api < 20 #18032
I have a node server which uses Let's Encrypt CA. I try to connect to it using websockets. On iOS and newer Android...
Read more >Websocket connection error on Nginx reverse proxy on ...
Websocket connection error on Nginx reverse proxy on Letsencrypt Docker on Unraid ... make sure that your dns has a cname set for...
Read more >Python Websockets SSL with Let's Encrypt - xprilion's blog
After generating the files correctly, you need to make them accessible to the current user who runs the Python WebSocket script. In the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@trevordowdle a workaround for me was to simply not use let’s encrypt with mup. Instead put the instance behind CloudFlare (free) and use CloudFlare SSL which auto-renews and needs no management of certs.
CloudFlare now supports websockets very well out of the box, including the ones needed for Meteor, which is why this workaround is relatively new.
Since I am unable to reproduce it, I will close this issue. If anyone encounters this again, the issue can be reopened.