Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[hono-dev] Support for encrypted and unencrypted AMQP port in Hono at the same time


while writing a HelloWorld tutorial for Hono to produce a Java client that is as simple as possible,
I found out that:

- the Hono client is written for both variants (encrypted/unencrypted) and switches to "amqps" resp. "amqp" as protocol designator

- the Hono server though currently can be configured to EITHER encrypted (based on hono.server.keyStorePath) OR unencrypted (if hono.server.keyStorePath is null, i.e. not configured) communication

-> I propose to make the Hono server more flexible, so that both variants can be supported at the same time.

Following I have in mind:

1.) default should remain "only one port configured for SSL"

Hono server will always insist on finding this already available port and behaves like implemented: opens it for EITHER encrypted OR unencrypted communication.


      port: 5672

2.) optionally a second port can be opened


      unEncryptedPort: 5671

If Hono server additionally finds the port "unEncryptedPort" configured, it will open this as well and always opens it for unencrypted communication.

3.) Hono client remains unchanged - it already works with both variants of server ports.

What do you think?

Looking forward to feedback...

Karsten (sysexcontrol)

Bosch Software Innovations GmbH
Development Core Products (INST/ECS6-Be)

Schöneberger Ufer 89-91

10785 Berlin

Tel. +49 30 726112-403

Fax +49 30 726112-100


Registered office: Berlin, Register court: Amtsgericht Charlottenburg, HRB 148411 B

Executives: Dr.-Ing. Rainer Kallenbach, Michael Hahn

Back to the top