On this page we would like to show some connection examples using Certificates and error descriptions. Set-up: - Nx70 software 2.44.0
- DECT handset R700H software release 11
- ...
Configuration: - The Application server must be enabled FAQ - Application servers
- Messaging and Location enabled for the handset FAQ - Messaging and Location how to enable/disable per handset
- How to generate your own security keys and certificates FAQ - Generate own keys/certificates
- Upload ca.crt into your Nx70 FAQ - Upload ca.crt
- Contact Gigaset to get the GigasetCA.pem that is needed on the server where mosquitto is executed FAQ - GigasetCA.pem (Hidden)
- Add device to the known hosts FAQ - Add device to the known hosts
mosquitto_pub --cafile GigasetCA.pem --cert client.crt --key client.key -m '{"msgId":"1234","params":{}}' -t "as1/module/xxl/api/req/status" -p 8885 -h Einstein2 -u as1 -P 123456789012345678901234567890ab |
MQTT message example: - Prio 1 message
- To handset with SIP ID 1014
- With "Fire" icon and some text
Nx70 has no config/ssl directory so we used the Einstein2 hostname as the Client certificate in the Nx70 CN=Einstein2 Mosquitto version 1.4.15 mosquitto_pub --cafile GigasetCA.pem --cert client.crt --key client.key -p 8885 -h Einstein2 -u as1 -P 123456789012345678901234567890ab -t 'as1/msg/xxl/msgsrv/req/setMsg' -m '{"msgId":"1","payload":{"amsgId":"23642","sip_id":"1013","msg":{"server_msg_status":"new","prio":"1","title":{"text":"Message prio 1","color":"04"},"status_icon":"0D","status_text":"accept","ttl":"600","alert_info":"msg_melody_low","overrule_silencing":"no","vibration":"no","ringtone_volume":"50","deletable":"yes","local_ignore":"yes","presentation_time":"30","body_starter":"Body starter","msg_icon":{"value":"28"},"body":[{"msg_icon":{"value":"4E","color":"04"}},{"paragraph":{"text":"Prio 1 message: some longer test to check how long the message can be","blink":"no","underline":"yes","bold":"yes","align":"left","color":"00"}},{"paragraph":{"text":"This text is only shown in detailed view","blink":"no","underline":"no","bold":"no","align":"left"}}],"reply_options":[{"option_id":"1","reply":{"text":"Msg1SK1"}},{"option_id":"2","reply":{"text":"Msg1SK2"}},{"option_id":"3","make_call":{"text":"Call","to":"1021"}}]}}}' |
Nx70 has no config/ssl directory so we used the Einstein2 hostname as the Client certificate in the Nx70 CN=Einstein2 mosquitto version 2.0.11 (add "-i as1") mosquitto_pub --cafile GigasetCA.pem --cert client.crt --key client.key -p 8885 -h Einstein2 -u as1 -P 123456789012345678901234567890ab -t 'as1/msg/xxl/msgsrv/req/setMsg' -m '{"msgId":"1","payload":{"amsgId":"23642","sip_id":"1013","msg":{"server_msg_status":"new","prio":"1","title":{"text":"Message prio 1","color":"04"},"status_icon":"0D","status_text":"accept","ttl":"600","alert_info":"msg_melody_low","overrule_silencing":"no","vibration":"no","ringtone_volume":"50","deletable":"yes","local_ignore":"yes","presentation_time":"30","body_starter":"Body starter","msg_icon":{"value":"28"},"body":[{"msg_icon":{"value":"4E","color":"04"}},{"paragraph":{"text":"Prio 1 message: some longer test to check how long the message can be","blink":"no","underline":"yes","bold":"yes","align":"left","color":"00"}},{"paragraph":{"text":"This text is only shown in detailed view","blink":"no","underline":"no","bold":"no","align":"left"}}],"reply_options":[{"option_id":"1","reply":{"text":"Msg1SK1"}},{"option_id":"2","reply":{"text":"Msg1SK2"}},{"option_id":"3","make_call":{"text":"Call","to":"1021"}}]}}}' -i as1 |
We have uploaded a new Client certificate: CN = 7C2F80F68993 Then we need to change the hosts file and add the device to the host file: 192.168.178.195 7C2F80F68993 The MQTT command will now use the MAC address instead of Einstein2 mosquitto_pub --cafile GigasetCA.pem --cert client.crt --key client.key -p 8885 -h 7C2F80F68993 -u as1 -P 123456789012345678901234567890ab -t 'as1/msg/xxl/msgsrv/req/setMsg' -m '{"msgId":"1","payload":{"amsgId":"23642","sip_id":"1014","msg":{"server_msg_status":"new","prio":"1","title":{"text":"Message prio 1","color":"04"},"status_icon":"0D","status_text":"accept","ttl":"600","alert_info":"msg_melody_low","overrule_silencing":"no","vibration":"no","ringtone_volume":"50","deletable":"yes","local_ignore":"yes","presentation_time":"30","body_starter":"Body starter","msg_icon":{"value":"28"},"body":[{"msg_icon":{"value":"4E","color":"04"}},{"paragraph":{"text":"Prio 1 message: some longer test to check how long the message can be","blink":"no","underline":"yes","bold":"yes","align":"left","color":"00"}},{"paragraph":{"text":"This text is only shown in detailed view","blink":"no","underline":"no","bold":"no","align":"left"}}],"reply_options":[{"option_id":"1","reply":{"text":"Msg1SK1"}},{"option_id":"2","reply":{"text":"Msg1SK2"}},{"option_id":"3","make_call":{"text":"Call","to":"1021"}}]}}}' |
Windows: mosquitto version 2.0.14 Nx70: Software 2.44.0 .\mosquitto_pub --cafile GigasetCA.pem --cert client.crt --key client.key -p 8885 -h Einstein2 -u as1 -P 123456789012345678901234567890ab -t 'as1/msg/xxl/msgsrv/req/setMsg' -m '{\"msgId\":\"1\",\"payload\":{\"amsgId\":\"23642\",\"sip_id\":\"1013\",\"msg\":{\"server_msg_status\":\"new\",\"prio\":\"1\",\"title\":{\"text\":\"Message prio1\",\"color\":\"04\"}, \"status_icon\":\"0D\",\"status_text\":\"accept\", \"ttl\":\"600\", \"alert_info\":\"msg_melody_low\", \"overrule_silencing\":\"no\", \"vibration\":\"no\", \"ringtone_volume\":\"50\", \"presentation_time\":\"30\", \"deletable\":\"yes\", \"local_ignore\":\"yes\", \"presentation_time\":\"30\", \"body_starter\":\"Body starter\", \"msg_icon\":{\"value\":\"28\"}, \"body\":[{\"msg_icon\":{\"value\":\"4E\",\"color\":\"04\"}}, {\"paragraph\":{\"text\":\"Prio 1 message: some longer test to check how long the message can be\",\"blink\":\"no\",\"underline\":\"yes\",\"bold\":\"yes\",\"align\":\"left\",\"color\":\"00\"}}, {\"paragraph\":{\"text\":\"This text is only shown in detailed view\",\"blink\":\"no\",\"underline\":\"no\",\"bold\":\"no\",\"align\":\"left\"}}], \"reply_options\":[{\"option_id\":\"1\",\"reply\":{\"text\":\"Msg1SK1\"}},{\"option_id\":\"2\",\"reply\":{\"text\":\"Msg1SK2\"}},{\"option_id\":\"3\",\"make_call\":{\"text\":\"Call\",\"to\":\"1021\"}}]}}}' -i as1 |
Windows: mosquitto version 2.0.15 Nx70: Software 2.49.1 .\mosquitto_pub --cafile GigasetCA.pem --cert client.crt --key client.key -p 8885 -h Einstein2 -u as1 -P 123456789012345678901234567890ab -t 'as1/msg/xxl/msgsrv/req/setMsg' -m "{\"msgId\":\"1\",\"payload\":{\"amsgId\":\"23642\",\"sip_id\":\"1013\",\"msg\":{\"server_msg_status\":\"new\",\"prio\":\"1\",\"title\":{\"text\":\"Message prio1\",\"color\":\"04\"}, \"status_icon\":\"0D\",\"status_text\":\"accept\", \"ttl\":\"600\", \"alert_info\":\"msg_melody_low\", \"overrule_silencing\":\"no\", \"vibration\":\"no\", \"ringtone_volume\":\"50\", \"presentation_time\":\"30\", \"deletable\":\"yes\", \"local_ignore\":\"yes\", \"presentation_time\":\"30\", \"body_starter\":\"Body starter\", \"msg_icon\":{\"value\":\"28\"}, \"body\":[{\"msg_icon\":{\"value\":\"4E\",\"color\":\"04\"}}, {\"paragraph\":{\"text\":\"Prio 1 message: some longer test to check how long the message can be\",\"blink\":\"no\",\"underline\":\"yes\",\"bold\":\"yes\",\"align\":\"left\",\"color\":\"00\"}}, {\"paragraph\":{\"text\":\"This text is only shown in detailed view\",\"blink\":\"no\",\"underline\":\"no\",\"bold\":\"no\",\"align\":\"left\"}}], \"reply_options\":[{\"option_id\":\"1\",\"reply\":{\"text\":\"Msg1SK1\"}},{\"option_id\":\"2\",\"reply\":{\"text\":\"Msg1SK2\"}},{\"option_id\":\"3\",\"make_call\":{\"text\":\"Call\",\"to\":\"1021\"}}]}}}" -i as1 |
|