Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

How to configure TLS correctly in Mosca #807

Open
HvanTao opened this issue Nov 22, 2019 · 2 comments
Open

How to configure TLS correctly in Mosca #807

HvanTao opened this issue Nov 22, 2019 · 2 comments

Comments

@HvanTao
Copy link

HvanTao commented Nov 22, 2019

How to set option in Mosca SSL/TLS Work with nginx ?

@HvanTao
Copy link
Author

HvanTao commented Nov 22, 2019

var set = {
secure: {
port: 3101,
keyPath: SECURE_KEY,
certPath: SECURE_CERT
},
}

Connecting to Server: Hostname: sh.****.com . Port: 3101 . Path: /mqtt . Client ID: hank_79510dddc4fe-491a-ae4a-06660ff0fbbe

error:Failed to connect AMQJSC0001E Connect timed out.

@jimmiehansson
Copy link

This could be resolved in NGINX using SSL termination with NGINX as a reverse proxy. You could then upstream the connection to a child over TLS encryption from an exposed port (80|443 -> 3101) See this documentation for more details: https://docs.nginx.com/nginx/admin-guide/security-controls/securing-http-traffic-upstream/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants