-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On real 68k hardware certain connections are being dropped during SSL handshake #11
Comments
@Futaura Can you please try to reproduce this issue on your real m68k hardware system? |
How do I revert to AmiSSL 3, to test this? |
@jens-maus Unfortunately, AmigaKit still have my real m68k hardware :-( @jerseywurzel Simply using an older version of YAM or the old v3 OpenSSL tool will use the AmiSSL v3 library |
Not that it probably helps much, but this works correctly using AmiSSL 68k under emulation on OS4. I do know that with AmiSSL v3, old style DH ciphers were heavily CPU intensive on my 68060, which made HTTPS connections really slow (hence DH was disabled by default in IBrowse). |
@Futaura |
@jerseywurzel No - you should have both the v3 and v4 libs installed already (check AmiSSL:Libs/AmiSSL). The installer will have overwritten the v3 OpenSSL tool though, so you need to download that to test the OpenSSL tool with v3. |
@Futaura |
I use here a real Amiga 2000 with a Blizzard 2060 at 50MHz and OS 3.9 with MiamiDX.
|
@jerseywurzel No, this means more or less the same, the peer (mail server) has closed the connection. I am really more and more convinced that all these modern encryption algorithms require more processing power than all these obsolete real 68k processors can provide. |
@Weber-Frank This is very interesting Frank. Can you please say which TCP/IP stack you are using and which internet connection do you have? Perhaps this is also related to the TCP/IP stack type or internet connection speed or something like this. Because I am surprise that the test connection works for you. |
i do the same with the yahoo server.
I do the same again an try to log in (of course with a wrong password).
It seems all is working correct here on a 68060. :-) |
@jens-maus btw. i do the same again with the correkt password and get:
|
Sorry i forget to say my connection speed. |
I use Miami, I have fibre broadband with up to 50mb download speeds |
@jerseywurzel Ok, thanks for this information. I am, however, still curious why @Weber-Frank isn't having any issues with his A2000/060 while your A1200/060 installation shows this issue? Which operating system versions are you guys using and also please state the exact Miami version you are using. |
@Futaura Could it be that this issue is somehow related to #8 ? What do you think? @jerseywurzel @Weber-Frank Can you guys please try to execute |
I mocked up a tiny program which reads stdin line by line and outputs each line immediately again to stdout prefixed by the elapsed time since program start. This makes it possible for us to monitor the time spent until the desired output is created. If you have the PIPE command installed (don't confuse it with the PIPE: handler) you should be able to call it like this: Otherwise you have to open two shell windows. In the first one enter this: And in the second one enter this: The output will then look like this:
Perhaps this tool will expose how much time is spent during the individual steps. |
A quick test that @jens-maus asked for shows errno54. Question: @futuaura showed on IBrowse website, how to disable TSLv2 and v3 using Setenv. Would that be a possibility? |
@Futaura see above comment |
@jens-maus
but the delay is in reality after the line |
@jerseywurzel I think the environment vars you refer to have been completely removed from AmiSSL v4, so no those shouldn't be a factor. Of course, AmiSSL v3 will still read them as before. |
I really wish I had my A1200 mobo back right now... I'm wondering if it could be something as "simple" as a MTU related issue or some other TCP setting in MiamiDx, especially as not all MiamiDx appear to have this issue. Having the MTU set incorrectly can certainly break SSL connections, as I had that problem in the past. IBrowse seems to be running fine now on a 060 with MiamiDx. |
Here is new version of tsstdin. The time calculation should be correct now. It was wrong to unsigned integers used by clib2. |
Ok, I have tried to revert to AmiSSL3, by renaming OpenSSL latest version, so it |
@jens-maus In all cases, I stopped bntest after 25-30 minutes because it was taking so long. The command it got up to is: test BN_kronecker\n |
@jerseywurzel Ok, thank you for your test. So please go ahead and do the tests once more with the following openssl execution:
And please provide execution times and if the connection succeeded. |
@ALL: Any news? Please run the tests again with the command of my last comment. I really want to push out a new AmiSSLv4 version soon and need this information. |
It would be prudent to wait for results from @Weber-Frank too - will be interesting to see how those test versions compare considering he is using optimised mathieee libs. Don't want to slow AmiSSL down on such a system - instead it would be better to recommend the MMULib math libs or HSMathLibs, etc, if they turn out to be faster than other solutions. At some point it would be good to come up with a good benchmark tool, which I'm happy to do. Obviously, emulation is not good for this, so we really need to get results from others too to get a true picture. |
@jens-maus @Futaura |
@jerseywurzel Please don't alter anything in your system configuration until you've completed Jens' tests. Probably the easiest way to check for MMULib is to see if mmu.library is resident in memory, using Scout or similar. Maybe checking the version of 68060.library also. |
@jens-maus |
@Futaura |
@jens-maus I want to run the tests but your new librarys are not loaded. |
@Weber-Frank Install the amisslmaster.library from the archives - any one will do (no need to switch this between different tests as they are identical). |
@Futaura Hups, sorry i forget to install the amisslmaster.library. thanks for the hint.
Here my results with the command:
That's all. |
Here my results with the 68060 amissl_v110d.library:
As you can see nearly exactly the same results from amissl_v110e.library noasm. |
Forget to say: the openssl tool from the 68060 archive has no timeout, i get the cusor right after the OK sign. |
@Futaura |
@jerseywurzel I wasn't aware the 1260 had a RAMSPEED jumper (the 1230 did). I wouldn't like to explain where the jumper is on your board as it could be a different version to the one I'm seeing in manuals online. However, I think the MAPROM jumper is located beside the SIMM socket, on the left. |
@jerseywurzel Do you use any of the associated MMULib debug tools, like MyGuardianAngel for example? This would slow your system down for sure, but not sure if it would explain why your test results are so much slower than @Weber-Frank. |
Good idea. It is hardly noticeable when MuForce runs but when MyGuardianAngel runs it is really to notice. |
I don't knowingly have them running, although I have mulib installed. |
@jens-maus |
@jens-maus fyi, that was me |
Hi Oliver,
On 19/01/2020, you wrote:
@Weber-Frank @jerseywurzel It would be useful if you could both post the output of "OpenSSL
speed rsa". Any AmiSSL 4.x version will do, but be sure to use the OpenSSL command from 4.2
or older (seeing as the 4.3 one crashes).
I'm using OpenSSL 1.1.0g, hope that is ok? It seems to be from AmiSSL4.2
It takes a very long time to run - I left it overnight and itt was still running. Is that right?
Bye for now,
--
Russell
If you lend someone £320 and never see that person again it was probably well worth it.
weather:
Partly Cloudy : 5.00 C, 41.00 F
Winds : East 8.06 MPH, 12.97 KPH, 7.00 Knots
Jersey Airport (EGJJ), United Kingdom
Partly Cloudy : 6.00 C, 42.80 F
Winds : Variable 12.66 MPH, 20.37 KPH, 11.00 Knots
Jersey Airport (EGJJ), United Kingdom
|
Sorry, no. I deleted my previous message soon after posting it, as I remembered the speed command was broken! Not to worry, I will have AmiSSL 4.4 ready soon and it has a fix for 68060 specifically, bringing a major speed boost to some areas. Unfortunately, previous AmiSSL v4 versions have been using some instructions that were removed on the 68060, which was causing a major performance issue. |
Fixed in ff6c5f9 |
In a recent YAM issue ticket (see jens-maus/yam#651) a user is reporting connection problems with his real A1200/68060 system. After some investigation it seems that not YAM can be blamed, but the problem already appear if he is using the
openssl
command-line tool to initiate a test connection via the following command sequence:After execution of the command the openssl command doesn't switch to interactive connection mode and the POP3 server doesn't report with plain text
+OK
that the connection succeeded. Looking at the debug output one can see that after outputting the certificate chain it actually output somewrite:errno=32
error which means "Broken pipe":As said,
errno=32
stands for "Broken pipe" and could easily mean the mail server had already canceled/dropped the connection to to waiting to long for a response. The current suspicion is that due to unknown reasons certain cipher/certificate digest calculations might take to long so that the server drops connection and the openssl tries to continue communication with the server, but fails of course.Some debugging are required and thus we should generate a openssl command line binary with more debugging output between the certificate output and the successive write commands. In addition, some timing information have to be added to be able to verify if some calculations are really taking to long.
The text was updated successfully, but these errors were encountered: