<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Siehe auch <a href="https://serverfault.com/questions/387857/stunnel-connection-issue-140943f2-ssl3-read-bytessslv3-alert-unexpected-messag">https://serverfault.com/questions/387857/stunnel-connection-issue-140943f2-ssl3-read-bytessslv3-alert-unexpected-messag</a><br><br><div id="AppleMailSignature" dir="ltr">Viele Grüße,<div>Andreas</div></div><div dir="ltr"><br>Am 22.06.2019 um 14:32 schrieb Claas H. Köhler <<a href="mailto:claashk@web.de">claashk@web.de</a>>:<br><br></div><blockquote type="cite"><div dir="ltr"><span>Hallo,</span><br><span></span><br><span>heute hatte ich wieder etwas Zeit, mich dem Problem zu widmen. Dazu habe</span><br><span>ich auf Vorschlag von Matthias die Zeilen</span><br><span></span><br><span>curl_easy_setopt(_api.curl, CURLOPT_SSL_VERIFYPEER, 0L);</span><br><span>curl_easy_setopt(_api.curl, CURLOPT_SSL_VERIFYHOST, 0L);</span><br><span></span><br><span>in /src/api/Volkszaehler.cpp eingefügt und im höchsten debug level getestet. Das Resultat ist die gleiche Fehlermeldung wie bei Joerg:</span><br><span></span><br><span>[Jun 22 12:23:51][chn1] CURL: Connected to our.home (192.168.178.5) port</span><br><span>443 (#0)</span><br><span>[Jun 22 12:23:51][chn0] CURL: Sent '^A' bytes</span><br><span>[Jun 22 12:23:51][chn1] CURL: ALPN, offering http/1.1</span><br><span>[Jun 22 12:23:51][chn1] CURL: Sent 5 bytes..</span><br><span>[Jun 22 12:23:51][chn1] CURL: Sent '^V^C^A' bytes</span><br><span>[Jun 22 12:23:51][chn1] CURL: TLSv1.2 (OUT), TLS handshake, Client hello</span><br><span>(1):</span><br><span>[Jun 22 12:23:51][chn1] CURL: Sent 203 bytes..</span><br><span>[Jun 22 12:23:51][chn1] CURL: Sent '^A' bytes</span><br><span>[Jun 22 12:23:51][chn0] CURL: Received 5 bytes</span><br><span>[Jun 22 12:23:51][chn0] CURL: Received '^U^C^C' bytes</span><br><span>[Jun 22 12:23:51][chn0] CURL: TLSv1.2 (IN), TLS alert, Server hello (2):</span><br><span>[Jun 22 12:23:51][chn0] CURL: Received 2 bytes</span><br><span>[Jun 22 12:23:51][chn0] CURL: Received '^B</span><br><span>' bytes</span><br><span>[Jun 22 12:23:51][chn0] CURL: error:140943F2:SSL</span><br><span>routines:ssl3_read_bytes:sslv3 alert unexpected message</span><br><span>[Jun 22 12:23:51][chn0] CURL: stopped the pause stream!</span><br><span></span><br><span>Gibt es dafür schon einen Bug report ?</span><br><span></span><br><span>Viele Grüße</span><br><span>Claas</span><br><span></span><br><span></span><br><span>On 6/12/19 9:43 PM, Joerg Krohn wrote:</span><br><blockquote type="cite"><span>Hi,</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>ich habe das gleiche Problem schon seit langem, deswegen hab ich wieder</span><br></blockquote><blockquote type="cite"><span>auf http umgestellt.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Anbei jedoch die Meldungen, die bei mir mit https auftreten.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><blockquote type="cite"><span>Kannst du mal ein log File schicken? (vzlogger.log) Prinzipiell</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>sollte das gehen (aber es gibt viele Fallstricke).</span><br></blockquote></blockquote><blockquote type="cite"><span>debug level 15</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:45][chn0] CURL:   Trying 87.230.93.240...</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:45][chn0] CURL: TCP_NODELAY set</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:45][chn0] CURL: Connected to <a href="http://vs02.gh26.net">vs02.gh26.net</a> (87.230.93.240) port 440 (#0)</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:45][chn0] CURL: ALPN, offering http/1.1</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:45][chn0] CURL: Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:48][chn0] CURL: successfully set certificate verify locations:</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:48][chn0] CURL:   CAfile: /etc/ssl/certs/ca-certificates.crt</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:48][chn0] CURL: TLSv1.2 (OUT), TLS header, Certificate Status (22):</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:48][chn0] CURL: Sent 5 bytes..</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:48][chn0] CURL: Sent '^V^C^A^B' bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:48][chn0] CURL: TLSv1.2 (OUT), TLS handshake, Hello request (0):</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:48][chn0] CURL: Sent 512 bytes..</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:48][chn0] CURL: Sent '' bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:48][chn0] CURL: Received 5 bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:48][chn0] CURL: Received '^V^C^C' bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:48][chn0] CURL: TLSv1.2 (IN), TLS handshake, Server hello (2):</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:48][chn0] CURL: Received 108 bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:48][chn0] CURL: Received '^B' bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:48][chn0] CURL: Received 5 bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:48][chn0] CURL: TLSv1.2 (IN), TLS handshake, Certificate (11):</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:48][chn0] CURL: Received 2554 bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:48][chn0] CURL: Received '^K' bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:48][chn0] CURL: Received 5 bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:49][chn0] CURL: Received '^V^C^C^AM' bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:49][chn0] CURL: TLSv1.2 (IN), TLS handshake, Server key exchange (12):</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:49][chn0] CURL: Received 333 bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:49][chn0] CURL: Received '^L' bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:49][chn0] CURL: Received 5 bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:49][chn0] CURL: Received '^V^C^C' bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:49][chn0] CURL: TLSv1.2 (IN), TLS handshake, Server finished (14):</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:49][chn0] CURL: Received 4 bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:49][chn0] CURL: Received '^N' bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:49][chn0] CURL: Sent 5 bytes..</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: Sent '^V^C^C' bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: TLSv1.2 (OUT), TLS handshake, Client key exchange (16):</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: Sent 70 bytes..</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: Sent '^P' bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: Sent 5 bytes..</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: Sent '^T^C^C' bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: TLSv1.2 (OUT), TLS change cipher, Client hello (1):</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: Sent 1 bytes..</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: Sent '^A' bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: Sent 5 bytes..</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: Sent '^V^C^C' bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: TLSv1.2 (OUT), TLS handshake, Finished (20):</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: Sent 16 bytes..</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: Sent '^T' bytes</span><br></blockquote><blockquote type="cite"><span>CURL: Received 5 bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: Received '^U^C^C' bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: TLSv1.2 (IN), TLS alert, Server hello (2):</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: Received 2 bytes</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: Received '^B</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: error:140943F2:SSL routines:ssl3_read_bytes:sslv3 alert unexpected message</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: Curl_http_done: called premature == 1</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: stopped the pause stream!</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:50][chn0] CURL: Closing connection 0</span><br></blockquote><blockquote type="cite"><span>[Jun 12 21:27:51][chn0] CURL: SSL connect error</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><blockquote type="cite"><span>Schick bitte auch mal von dem curl Aufruf der funktioniert eine „curl</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>-V“ Ausgabe. Und der manuelle curl Aufruf klappt auch von dem Rechner</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>(rpi?) aus, auf dem vzlogger läuft, oder?</span><br></blockquote></blockquote><blockquote type="cite"><span>curl vom RPI geht, hier die Ausgabe:</span><br></blockquote><blockquote type="cite"><span>curl <a href="https://vs02.gh26.net:440/middleware.php/channel/a5ca4660-d345-11e1-8224-b7f4802b7543.json">https://vs02.gh26.net:440/middleware.php/channel/a5ca4660-d345-11e1-8224-b7f4802b7543.json</a></span><br></blockquote><blockquote type="cite"><span>{</span><br></blockquote><blockquote type="cite"><span>         "version": "0.3",</span><br></blockquote><blockquote type="cite"><span>         "entity": {</span><br></blockquote><blockquote type="cite"><span>                 "uuid": "a5ca4660-d345-11e1-8224-b7f4802b7543",</span><br></blockquote><blockquote type="cite"><span>                 "type": "electric meter",</span><br></blockquote><blockquote type="cite"><span>                 "cost": 0.00019766,</span><br></blockquote><blockquote type="cite"><span>                 "description": "RWE WP",</span><br></blockquote><blockquote type="cite"><span>                 "public": true,</span><br></blockquote><blockquote type="cite"><span>                 "resolution": 1,</span><br></blockquote><blockquote type="cite"><span>                 "title": "Strom Zaehler WP"</span><br></blockquote><blockquote type="cite"><span>         },</span><br></blockquote><blockquote type="cite"><span>[..]</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>curl -V</span><br></blockquote><blockquote type="cite"><span>curl 7.52.1 (arm-unknown-linux-gnueabihf) libcurl/7.52.1 OpenSSL/1.0.2q zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3</span><br></blockquote><blockquote type="cite"><span>Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp</span><br></blockquote><blockquote type="cite"><span>Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM</span><br></blockquote><blockquote type="cite"><span>NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Viele Grüße</span><br></blockquote><blockquote type="cite"><span>Jörg</span><br></blockquote><span></span><br><span></span><br></div></blockquote></body></html>