Closed dschowta closed 5 years ago
Thanks, a question:: How can we easily test the changes? Maybe have a docker-compose file with MQTT ssl enabled? Or a document with a test procedure.
I tested it manually without using Docker. I tested it using two ways.
mqtt: enabled: true host: acustomhostname port: yourportnum prefix: GOST clientId: gost subscriptionQos: 1 persistent: true ssl: true caCertFile: root certificate file(go usually takes system files. So this is not a mandatory field) username: YourUsername username: YourPassword
With Private public keypairs :
Use the following configuration
mqtt: enabled: true host: test.mosquitto.org port: 8884 prefix: GOST clientId: gost subscriptionQos: 1 persistent: true ssl: true caCertFile: mosquitto.org.crt clientCertFile: client.crt privateKeyFile: client.key
Tested receiving/publishing observations, all seem to work fine.
Thanks for this pull request!
This is a pull request to solve issue #156 and #157. If the repo owners agree for these changes, I shall add the documentations. Here are the additional things which changed:
Part of the code is taken from https://code.linksmart.eu/projects/SC/repos/service-catalog/browse (Apache 2.0 license)
Thank you