<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — Wolf MQTT Harmony 3 and SSL]]></title>
		<link>https://www.wolfssl.com/forums/topic1703-wolf-mqtt-harmony-3-and-ssl.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1703.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Wolf MQTT Harmony 3 and SSL.]]></description>
		<lastBuildDate>Tue, 02 Mar 2021 20:10:33 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Wolf MQTT Harmony 3 and SSL]]></title>
			<link>https://www.wolfssl.com/forums/post5840.html#p5840</link>
			<description><![CDATA[<p>Hi Shaun,</p><p>The linux wolfMQTT client does connect to mqtt.eclipseprojects.io using TLS with the default certs / config.</p><div class="codebox"><pre><code>eric@ubuntu:~/repos/wolfMQTT$ ./examples/mqttclient/mqttclient -h mqtt.eclipseprojects.io -t
MQTT Client: QoS 0, Use TLS 1
MQTT Net Init: Success (0)
MQTT Init: Success (0)
NetConnect: Host mqtt.eclipseprojects.io, Port 8883, Timeout 5000 ms, Use TLS 1
MQTT TLS Setup (1)
MQTT TLS Verify Callback for mqttclient: PreVerify 0, Error -188 (ASN no signer error to confirm failure)
  Subject&#039;s domain name is R3
  Allowing cert anyways
MQTT TLS Verify Callback for mqttclient: PreVerify 1, Error 0 (none)
  Subject&#039;s domain name is mqtt.eclipseprojects.io
MQTT Socket Connect: Success (0)
MQTT Connect: Proto (v3.1.1), Success (0)
MQTT Connect Ack: Return Code 0, Session Present 0
MQTT Subscribe: Success (0)
  Topic wolfMQTT/example/testTopic, Qos 0, Return Code 0
MQTT Publish: Topic wolfMQTT/example/testTopic, Success (0)
MQTT Waiting for message...
MQTT Message: Topic wolfMQTT/example/testTopic, Qos 0, Len 4
Payload (0 - 4): test
MQTT Message: Done
^CReceived SIGINT
Network Error Callback: Error (Network) (error -8)
MQTT Exiting...
MQTT Unsubscribe: Success (0)
MQTT Disconnect: Success (0)
MQTT Socket Disconnect: Success (0)</code></pre></div><p>Did you try forcing TLS?</p><p>Thanks,<br />Eric @ wolfSSL Support</p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Tue, 02 Mar 2021 20:10:33 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post5840.html#p5840</guid>
		</item>
		<item>
			<title><![CDATA[Wolf MQTT Harmony 3 and SSL]]></title>
			<link>https://www.wolfssl.com/forums/post5838.html#p5838</link>
			<description><![CDATA[<p>Hi,</p><p>I&#039;m having issues with the Harmony 3 MQTT demo using the PIC32MZ EF Starter Kit and getting SSL to work.</p><p>Using port 1883 everything works correctly and I can connect to the broker, however when I change to port 8883 the connection fails as follows,</p><div class="codebox"><pre><code>MQTT pub/sub demo has been started
MQTT Task - Client Start: QoS 0, broker mqtt.eclipseprojects.io
MQTT Task - run message: WMQTT_NETGlue_Initialize, res: 0
MQTT Task - run message: MqttClient_Init, res: 0
MQTT Task - run message: MqttClient_SetDisconnectCallback, res: 0
WMQTT_NET_GLUE Info: Started Connect
WMQTT_NET_GLUE Info: Connected Successfully
WMQTT_NET_GLUE Info: Start TLS
WMQTT_NET_GLUE Error: TLS Negotiation, occurred in func: WMQTT_NETGlue_Connect, line: 328,
MQTT Task - run message: MqttClient_NetConnect, res: -6
MQTT Task - MQTT cycle Failed in state: 6, error code: -6!</code></pre></div><p>I think the demo is running correctly but the certs are wrong for the broker, I have a local mosquitto broker I can use with working certs, however I&#039;m unsure how to convert the X509 format into DER and then to the byte arrays used within the demo.</p><p>Do you have a best practice / guide to converting from x509 to a DER byte array?</p><p>I noticed in the GIT repo the broker has been updated, but I didn&#039;t see the certs being changed, does the harmony 3 demo work with SSL to the eclipseprojects.io broker?</p><p>Thanks<br />Shaun</p>]]></description>
			<author><![CDATA[null@example.com (bubshowlett)]]></author>
			<pubDate>Tue, 02 Mar 2021 08:13:57 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post5838.html#p5838</guid>
		</item>
	</channel>
</rss>
