MangaReader and AcornSSL
Rick Murray (539) 13850 posts |
The MangaReader website seems to have reverted back to using SSL; however it isn’t working with AcornSSL. Are others seeing this too? Try this URL: https://www.mangareader.net/hyakumanjou-labyrinth/1 |
John WILLIAMS (8368) 495 posts |
Seemed to take me to something totally incomprehensible with jagged speech balloons and Japanese stuff. I seem to have AcornSSL 1.06 available here. What the implications of this are I leave to you to interpret. |
Martin Avison (27) 1494 posts |
Using AcornSSL v1.06 (03 Jun 2020) mbedTLS 2.16.7 I also see ‘Server: cloudfare’ in the returned headers. |
Steve Pampling (1551) 8172 posts |
That could be the origin of the problem. |
Rick Murray (539) 13850 posts |
Using what? It works with NetSurf, but that doesn’t use AcornSSL/URL.
Ah, you got further than I did. I’ll need to check my AcornSSL is the latest (if only it had unique version numbers…).
Oh. Crap. Appeasing that bloody CDN is a major pain.
And how does one do that? https://shadowcrypt.net/tools/cloudflare tells me that 104.22.41.215 is protected by Cloudflare, while 185.87.25.235 is not. |
Steve Pampling (1551) 8172 posts |
Ah, working with suppliers that use cloudflare and knowing from them the backdoor. I wanted to test and eliminate the cloudflare element since everyone was blaming internal “network” issues (as ever) and I wanted to test the whole chain via NHS net and also on a direct Internet connection. |
Kevin (224) 322 posts |
Using wget with the —no-check-certificate option I managed to download an HTML file Below the log: Resolving www.mangareader.net… 104.22.41.215, 104.22.40.215, 172.67.28.55 Last-modified header invalid — time-stamp ignored. |
Rick Murray (539) 13850 posts |
Ah, so now there are two issues to deal with:
Bloody Cloudflare… BTW: Probably won’t happen in a hurry. Pi is off (still forecasting thunderstorms (until Monday), and although it’s a sun/clouds kind of day, that can change in a mere quarter hour). It’s also the end of my holiday. Back to work on Monday. Jeez, that went quickly… |
Steve Pampling (1551) 8172 posts |
Different wording, same sentiments as my experience… |
Rick Murray (539) 13850 posts |
I was thinking about this earlier today while clearing bramble chaff, and I realised… it isn’t my problem. I don’t talk to AcornSSL, I talk to the URL fetcher. So the question is – does the URL fetcher support SNI and/or “accept all certs”. If so, is there a flag I’m missing? If not, why not? |
Rick Murray (539) 13850 posts |
Looking further on, the chain of command is: App → URL → HTTP → AcornSSL It appears as if SNI is supported by the HTTP part of the fetcher (HTTP connect.c in the function opensock); but all I’m getting from my test code is an “Unable to connect to remote host” error. Is there any way to get HTTP/AcornSSL to report why it failed? I have tried to replicate the same HTTP headers as NetSurf (within the understanding of how URL/HTTP messes with the headers itself); so I don’t know why this one is failing. |
Rick Murray (539) 13850 posts |
Note a surprise the HTTP client test fails. What is this rubbish?
I’ve replaced that with a horrid kludge to work around BASIC’s interpretation of CRs to mark string termination… ;-)
Using the latest CertData, and AcornSSL (1.06/2.16.7), the result is: *HTTP_client Got session handle 542343476 DNS record for <a href="http://www.mangareader.net">www.mangareader.net</a> is 104.22.41.215 Connected to host on port 443 GET / HTTP/1.1 Host: <a href="http://www.mangareader.net">www.mangareader.net</a> Accept: */* Accept-Encoding: gzip Accept-Language: en, *;q=0.1 DNT: 1 User-Agent: NetSurf/3.8 (RISC OS) Requesting page /.. Error block at data write: Address : 7 6 5 4 B A 9 8 F E D C 3 2 1 0 7 6 5 4 B A 9 8 F E D C 3 2 1 0 : ASCII Data 20002A24 : 00813F27 646E6148 6B616873 72652065 20726F72 61747328 33206574 39352C30 : '?Ŵ.Handshake error (state 30,59 20002A44 : 20002932 6E756F66 756F0064 6E00646E 6620746F 646E756F 20796E00 61776E75 : 2). found.ound.not found.ny unwa .. Failed writing 154 bytes; errno = 813F27 * Ah, there’s something in the dumped error block – Handshake error (state 30,592). Perhaps I need to patch SNI into the thing now… hmm… But this is low-level talking to AcornSSL, not via URL. |