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

How to configure TLS correctly in Mosca #807

Open

Description

@HvanTao

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

Activity

  1. HvanTao commented on Nov 22, 2019

    @HvanTao
    Author

    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.

  2. jimmiehansson commented on Dec 3, 2019

    @jimmiehansson

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions