<?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 — [SOLVED] RaspberryPI err = -313]]></title>
		<link>https://www.wolfssl.com/forums/topic721-solved-raspberrypi-err-313.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic721.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [SOLVED] RaspberryPI err = -313.]]></description>
		<lastBuildDate>Tue, 29 Sep 2015 06:54:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] RaspberryPI err = -313]]></title>
			<link>https://www.wolfssl.com/forums/post2243.html#p2243</link>
			<description><![CDATA[<p>Chris - thanks again!</p><p>Worked like a charm</p><br /><div class="quotebox"><blockquote><p>root@raspberrypi:/Dev/wolfssl/examples/client# ./client -h bitmarket.pl -p 443 -d -x<br />SSL version is TLSv1.2<br />SSL cipher suite is TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256<br />Server response: HTTP/1.1 400 Bad Request<br />Server: cloudflare-nginx<br />Date: Tue, 29 Sep 2015 06:5</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (codemaster)]]></author>
			<pubDate>Tue, 29 Sep 2015 06:54:02 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2243.html#p2243</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] RaspberryPI err = -313]]></title>
			<link>https://www.wolfssl.com/forums/post2242.html#p2242</link>
			<description><![CDATA[<p>@ChrisC,<br />thank you very much - that saves me a lot of work, i will have a look in a moment and come back with the results.</p>]]></description>
			<author><![CDATA[null@example.com (codemaster)]]></author>
			<pubDate>Tue, 29 Sep 2015 06:40:40 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2242.html#p2242</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] RaspberryPI err = -313]]></title>
			<link>https://www.wolfssl.com/forums/post2241.html#p2241</link>
			<description><![CDATA[<p>Thanks for the extra info.</p><p>I ran a SSL Server Test on your server:<br /><a href="https://www.ssllabs.com/ssltest/analyze.html?d=bitmarket.pl&amp;s=104.20.6.251&amp;latest">https://www.ssllabs.com/ssltest/analyze … amp;latest</a></p><p>That server only supports cipher suites with either static RSA or ECDHE.&nbsp; We recently disabled static key cipher suites unless explicitly enabled.&nbsp; ECC is disabled by default unless you are compiling wolfSSL on x86_64.&nbsp; Removing these two things meant that wolfSSL and bitmarket.pl had no common cipher suites.</p><p>To resolve this either:</p><p>1.&nbsp; Enable ECC (./configure --enable-ecc)<br />2.&nbsp; Enable static key RSA suites (./configure C_EXTRA_FLAGS=&quot;-DWOLFSSL_STATIC_RSA&quot;</p><p>#1 is preferred, as it will give you ECDHE-RSA suites that provide perfect forward secrecy.</p><p>Best Regards,<br />Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrisc)]]></author>
			<pubDate>Mon, 28 Sep 2015 22:48:43 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2241.html#p2241</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] RaspberryPI err = -313]]></title>
			<link>https://www.wolfssl.com/forums/post2240.html#p2240</link>
			<description><![CDATA[<p>Here is the version</p><br /><p>RASPBERRY<br /></p><div class="quotebox"><blockquote><p>oot@raspberrypi:/Dev/wolfssl/examples/client# ./client -v<br />client 3.6.8 NOTE: All files relative to wolfSSL home dir<br />-?&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Help, print this usage<br />-h &lt;host&gt;&nbsp; &nbsp;Host to connect to, default 127.0.0.1<br />-p &lt;num&gt;&nbsp; &nbsp; Port to connect on, not 0, default 11111<br />-v &lt;num&gt;&nbsp; &nbsp; SSL version [0-3], SSLv3(0) - TLS1.2(3)), default 3<br />-l &lt;str&gt;&nbsp; &nbsp; Cipher list<br />-c &lt;file&gt;&nbsp; &nbsp;Certificate file,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;default ./certs/client-cert.pem<br />-k &lt;file&gt;&nbsp; &nbsp;Key file,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;default ./certs/client-key.pem<br />-A &lt;file&gt;&nbsp; &nbsp;Certificate Authority file, default ./certs/ca-cert.pem<br />-Z &lt;num&gt;&nbsp; &nbsp; Minimum DH key bits,&nbsp; &nbsp; &nbsp; &nbsp; default 1024<br />-b &lt;num&gt;&nbsp; &nbsp; Benchmark &lt;num&gt; connections and print stats<br />-s&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Use pre Shared keys<br />-t&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Track wolfSSL memory use<br />-d&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Disable peer checks<br />-D&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Override Date Errors example<br />-g&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Send server HTTP GET<br />-u&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Use UDP DTLS, add -v 2 for DTLSv1 (default), -v 3 for DTLSv1.2<br />-m&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Match domain name in cert<br />-N&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Use Non-blocking sockets<br />-r&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Resume session<br />-w&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Wait for bidirectional shutdown<br />-f&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fewer packets/group messages<br />-x&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Disable client cert/key loading<br />-X&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Driven by eXternal test case<br />root@raspberrypi:/Dev/wolfssl/examples/client#</p></blockquote></div><p>MACOS<br /></p><div class="quotebox"><blockquote><p>MacBook-Pro:client codemaster$ ./client -v<br />client 3.6.8 NOTE: All files relative to wolfSSL home dir<br />-?&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Help, print this usage<br />-h &lt;host&gt;&nbsp; &nbsp;Host to connect to, default 127.0.0.1<br />-p &lt;num&gt;&nbsp; &nbsp; Port to connect on, not 0, default 11111<br />-v &lt;num&gt;&nbsp; &nbsp; SSL version [0-3], SSLv3(0) - TLS1.2(3)), default 3<br />-l &lt;str&gt;&nbsp; &nbsp; Cipher list<br />-c &lt;file&gt;&nbsp; &nbsp;Certificate file,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;default ./certs/client-cert.pem<br />-k &lt;file&gt;&nbsp; &nbsp;Key file,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;default ./certs/client-key.pem<br />-A &lt;file&gt;&nbsp; &nbsp;Certificate Authority file, default ./certs/ca-cert.pem<br />-Z &lt;num&gt;&nbsp; &nbsp; Minimum DH key bits,&nbsp; &nbsp; &nbsp; &nbsp; default 1024<br />-b &lt;num&gt;&nbsp; &nbsp; Benchmark &lt;num&gt; connections and print stats<br />-s&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Use pre Shared keys<br />-t&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Track wolfSSL memory use<br />-d&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Disable peer checks<br />-D&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Override Date Errors example<br />-g&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Send server HTTP GET<br />-u&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Use UDP DTLS, add -v 2 for DTLSv1 (default), -v 3 for DTLSv1.2<br />-m&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Match domain name in cert<br />-N&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Use Non-blocking sockets<br />-r&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Resume session<br />-w&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Wait for bidirectional shutdown<br />-f&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fewer packets/group messages<br />-x&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Disable client cert/key loading<br />-X&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Driven by eXternal test case</p></blockquote></div><p>Gitclonned and configured with:</p><p>./configure --enable-static --disable-shared</p><br /><br /><br /><p>Outputs:<br /></p><div class="quotebox"><blockquote><p>root@raspberrypi:/Dev/wolfssl/examples/client# ./client -h bitmarket.pl -p 443 -d -x<br />err = -313, revcd alert fatal error<br />wolfSSL error: SSL_connect failed</p><p>MacBook-Pro:client codemaster$ ./client -h bitmarket.pl -p 443 -d -x<br />SSL version is TLSv1.2<br />SSL cipher suite is TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256<br />Server response: HTTP/1.1 400 Bad Request<br />Server: cloudflare-nginx<br />Date: Mon, 28 Sep 2015 20:5</p></blockquote></div><p>Let me know what else is needed..</p>]]></description>
			<author><![CDATA[null@example.com (codemaster)]]></author>
			<pubDate>Mon, 28 Sep 2015 21:00:55 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2240.html#p2240</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] RaspberryPI err = -313]]></title>
			<link>https://www.wolfssl.com/forums/post2237.html#p2237</link>
			<description><![CDATA[<p>Hi,</p><p>Are you using the same version of wolfSSL on both Pi and OSX?&nbsp; wolfSSL &quot;3.6-2.8&quot; doesn&#039;t sound like one of our versions.</p><p>What options were used to compile wolfSSL on the Pi?</p><p>Thanks,<br />Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrisc)]]></author>
			<pubDate>Mon, 28 Sep 2015 16:40:07 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2237.html#p2237</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] RaspberryPI err = -313]]></title>
			<link>https://www.wolfssl.com/forums/post2236.html#p2236</link>
			<description><![CDATA[<p>Good morning guys,<br />just compiled WolfSSL in Raspberry PI and have this error msg while trying to connect to every server i choose.</p> <br /><br /><div class="quotebox"><blockquote><p>root@raspberrypi:/Dev/WOLF/wolfssl-3.6-2.8/examples/client# ./client -h&nbsp; bitmarket.pl&nbsp; -p 443<br />err = -313, revcd alert fatal error<br />wolfSSL error: SSL_connect failed<br />root@raspberrypi:/Dev/WOLF/wolfssl-3.6-2.8/examples/client# ./client -h&nbsp; bitmarket.pl&nbsp; -p 443 -x<br />err = -313, revcd alert fatal error<br />wolfSSL error: SSL_connect failed<br />root@raspberrypi:/Dev/WOLF/wolfssl-3.6-2.8/examples/client# ./client -h bitmarket.pl -p 443 -x -d<br />err = -313, revcd alert fatal error<br />wolfSSL error: SSL_connect failed<br />root@raspberrypi:/Dev/WOLF/wolfssl-3.6-2.8/examples/client# uname -a<br />Linux raspberrypi 3.18.11+ #781 PREEMPT Tue Apr 21 18:02:18 BST 2015 armv6l GNU/Linux<br />root@raspberrypi:/Dev/WOLF/wolfssl-3.6-2.8/examples/client#</p></blockquote></div><p>However, MACOSX works like acharm<br /></p><div class="quotebox"><blockquote><p>MacBook-Pro:client codemaster$ uname -a<br />Darwin MacBook-Pro.local 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64<br />MacBook-Pro:client codemaster$ ./client -h&nbsp; bitmarket.pl&nbsp; -p 443<br />err = -188, ASN no signer error to confirm failure<br />wolfSSL error: SSL_connect failed<br />MacBook-Pro:client codemaster$ ./client -h&nbsp; bitmarket.pl -p 443 -x -d<br />SSL version is TLSv1.2<br />SSL cipher suite is TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256<br />Server response: HTTP/1.1 400 Bad Request<br />Server: cloudflare-nginx<br />Date: Sun, 27 Sep 2015 08:2</p></blockquote></div><br /><p>Thank you for any input into this, i just moved out from OpenSSL Crap and WolfSSL is really making a diff if working.</p>]]></description>
			<author><![CDATA[null@example.com (codemaster)]]></author>
			<pubDate>Sun, 27 Sep 2015 08:32:11 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2236.html#p2236</guid>
		</item>
	</channel>
</rss>
