[Vm-dev] SSL error on windows 7

Cyril Ferlicot D cyril at ferlicot.me
Wed Apr 4 23:48:38 UTC 2018


Le 04/04/2018 à 18:36, Tobias Pape a écrit :
> I tried on windows 8.1 because it's the only one I have.
> 
> Can you get me the output from both connections for squeak, also?
> 
> Best regards -Tobias
> 

Hi Tobias,

Since I never used Squeak and since you gave only the code for Pharo I
had to search a little but at the end I think I found how to active the
logs :)

Connecting to https://google.com :

sqSetStringPropertySSL(2): google.com
sqConnectSSL: input token 0 bytes
sqConnectSSL: Input to InitSecCtxt is 0 bytes
AquireCredentialsHandle returned: 0
InitializeSecurityContext returned: 90312
Input Buffers:
        buf[0]: 2 (0 bytes) ptr=0
        buf[1]: 0 (0 bytes) ptr=0
        buf[2]: 0 (0 bytes) ptr=0
        buf[3]: 0 (0 bytes) ptr=0
Output Buffers:
        buf[0]: 2 (122 bytes) ptr=850af0
        buf[1]: 0 (0 bytes) ptr=0
sqCopyDescToken:
         type=2, size=122
         type=0, size=0
sqConnectSSL: input token 1430 bytes
sqConnectSSL: Input to InitSecCtxt is 1430 bytes
InitializeSecurityContext returned: 90312
Input Buffers:
        buf[0]: 2 (1430 bytes) ptr=9ecb10
        buf[1]: 5 (1334 bytes) ptr=0
        buf[2]: 0 (0 bytes) ptr=0
        buf[3]: 0 (0 bytes) ptr=0
Output Buffers:
        buf[0]: 2 (0 bytes) ptr=0
        buf[1]: 0 (0 bytes) ptr=0
sqCopyDescToken:
         type=2, size=0
         type=0, size=0
sqConnectSSL: Retaining 1334 token bytes
sqConnectSSL: input token 2666 bytes
sqConnectSSL: Input to InitSecCtxt is 4000 bytes
InitializeSecurityContext returned: 90312
Input Buffers:
        buf[0]: 2 (4000 bytes) ptr=9ecb10
        buf[1]: 5 (87 bytes) ptr=0
        buf[2]: 0 (0 bytes) ptr=0
        buf[3]: 0 (0 bytes) ptr=0
Output Buffers:
        buf[0]: 2 (0 bytes) ptr=0
        buf[1]: 0 (0 bytes) ptr=0
sqCopyDescToken:
         type=2, size=0
         type=0, size=0
sqConnectSSL: Retaining 87 token bytes
sqConnectSSL: input token 72 bytes
sqConnectSSL: Input to InitSecCtxt is 159 bytes
InitializeSecurityContext returned: 90312
Input Buffers:
        buf[0]: 2 (159 bytes) ptr=9ecb10
        buf[1]: 0 (0 bytes) ptr=0
        buf[2]: 0 (0 bytes) ptr=0
        buf[3]: 0 (0 bytes) ptr=0
Output Buffers:
        buf[0]: 2 (134 bytes) ptr=850af0
        buf[1]: 0 (0 bytes) ptr=0
sqCopyDescToken:
         type=2, size=134
         type=0, size=0
sqConnectSSL: input token 59 bytes
sqConnectSSL: Input to InitSecCtxt is 59 bytes
InitializeSecurityContext returned: 0
Input Buffers:
        buf[0]: 2 (59 bytes) ptr=9ecb10
        buf[1]: 0 (0 bytes) ptr=0
        buf[2]: 0 (0 bytes) ptr=0
        buf[3]: 0 (0 bytes) ptr=0
Output Buffers:
        buf[0]: 2 (0 bytes) ptr=0
        buf[1]: 0 (0 bytes) ptr=0
sqConnectSSL: Maximum message size is 16384 bytes
sqExtractPeerName: Peer name is google.com
sqEncryptSSL: Encrypting 134 bytes
Header: 5; Data: 134; Trailer: 36
sqDecryptSSL: Input data 677 bytes
sqDecryptSSL: Decrypting 677 bytes
buf[0]: 7 (5 bytes) ptr=9ecb10
buf[1]: 1 (648 bytes) ptr=9ecb15
buf[2]: 6 (24 bytes) ptr=9ecd9d
buf[3]: 0 (0 bytes) ptr=0
sqSetStringPropertySSL(2): www.google.fr
sqConnectSSL: input token 0 bytes
sqConnectSSL: Input to InitSecCtxt is 0 bytes
AquireCredentialsHandle returned: 0
InitializeSecurityContext returned: 90312
Input Buffers:
        buf[0]: 2 (0 bytes) ptr=0
        buf[1]: 0 (0 bytes) ptr=0
        buf[2]: 0 (0 bytes) ptr=0
        buf[3]: 0 (0 bytes) ptr=0
Output Buffers:
        buf[0]: 2 (125 bytes) ptr=864458
        buf[1]: 0 (0 bytes) ptr=0
sqCopyDescToken:
         type=2, size=125
         type=0, size=0
sqConnectSSL: input token 1430 bytes
sqConnectSSL: Input to InitSecCtxt is 1430 bytes
InitializeSecurityContext returned: 90312
Input Buffers:
        buf[0]: 2 (1430 bytes) ptr=9edf88
        buf[1]: 5 (1334 bytes) ptr=0
        buf[2]: 0 (0 bytes) ptr=0
        buf[3]: 0 (0 bytes) ptr=0
Output Buffers:
        buf[0]: 2 (0 bytes) ptr=0
        buf[1]: 0 (0 bytes) ptr=0
sqCopyDescToken:
         type=2, size=0
         type=0, size=0
sqConnectSSL: Retaining 1334 token bytes
sqConnectSSL: input token 2666 bytes
sqConnectSSL: Input to InitSecCtxt is 4000 bytes
InitializeSecurityContext returned: 90312
Input Buffers:
        buf[0]: 2 (4000 bytes) ptr=9edf88
        buf[1]: 5 (87 bytes) ptr=0
        buf[2]: 0 (0 bytes) ptr=0
        buf[3]: 0 (0 bytes) ptr=0
Output Buffers:
        buf[0]: 2 (0 bytes) ptr=0
        buf[1]: 0 (0 bytes) ptr=0
sqCopyDescToken:
         type=2, size=0
         type=0, size=0
sqConnectSSL: Retaining 87 token bytes
sqConnectSSL: input token 73 bytes
sqConnectSSL: Input to InitSecCtxt is 160 bytes
InitializeSecurityContext returned: 90312
Input Buffers:
        buf[0]: 2 (160 bytes) ptr=9edf88
        buf[1]: 0 (0 bytes) ptr=0
        buf[2]: 0 (0 bytes) ptr=0
        buf[3]: 0 (0 bytes) ptr=0
Output Buffers:
        buf[0]: 2 (134 bytes) ptr=864458
        buf[1]: 0 (0 bytes) ptr=0
sqCopyDescToken:
         type=2, size=134
         type=0, size=0
sqConnectSSL: input token 59 bytes
sqConnectSSL: Input to InitSecCtxt is 59 bytes
InitializeSecurityContext returned: 0
Input Buffers:
        buf[0]: 2 (59 bytes) ptr=9edf88
        buf[1]: 0 (0 bytes) ptr=0
        buf[2]: 0 (0 bytes) ptr=0
        buf[3]: 0 (0 bytes) ptr=0
Output Buffers:
        buf[0]: 2 (0 bytes) ptr=0
        buf[1]: 0 (0 bytes) ptr=0
sqConnectSSL: Maximum message size is 16384 bytes
sqExtractPeerName: Peer name is www.google.fr
sqEncryptSSL: Encrypting 177 bytes
Header: 5; Data: 177; Trailer: 36
sqDecryptSSL: Input data 1429 bytes
sqDecryptSSL: Decrypting 1429 bytes
buf[0]: 7 (5 bytes) ptr=9edf88
buf[1]: 1 (1389 bytes) ptr=9edf8d
buf[2]: 6 (35 bytes) ptr=9ee4fa
buf[3]: 0 (0 bytes) ptr=0
sqDecryptSSL: Input data 4096 bytes
sqDecryptSSL: Decrypting 4096 bytes
buf[0]: 7 (5 bytes) ptr=9edf88
buf[1]: 1 (1389 bytes) ptr=9edf8d
buf[2]: 6 (2702 bytes) ptr=9ee4fa
buf[3]: 5 (2667 bytes) ptr=9ee51d
sqCopyExtraData: Retaining 2667 bytes
sqDecryptSSL: Input data 0 bytes
sqDecryptSSL: Decrypting 2667 bytes
buf[0]: 7 (5 bytes) ptr=9edf88
buf[1]: 1 (1389 bytes) ptr=9edf8d
buf[2]: 6 (1273 bytes) ptr=9ee4fa
buf[3]: 5 (1238 bytes) ptr=9ee51d
sqCopyExtraData: Retaining 1238 bytes
sqDecryptSSL: Input data 0 bytes
sqDecryptSSL: Decrypting 1238 bytes
buf[0]: 4 (127 bytes) ptr=9edf88
buf[1]: 4 (127 bytes) ptr=0
buf[2]: 0 (0 bytes) ptr=0
buf[3]: 0 (0 bytes) ptr=0
sqCopyExtra: Encountered SECBUFFER_MISSING; retaining 1238 bytes
sqDecryptSSL: Input data 164 bytes
sqDecryptSSL: Decrypting 1402 bytes
buf[0]: 7 (5 bytes) ptr=9edf88
buf[1]: 1 (1326 bytes) ptr=9edf8d
buf[2]: 6 (71 bytes) ptr=9ee4bb
buf[3]: 5 (37 bytes) ptr=9ee4dd
sqCopyExtraData: Retaining 37 bytes
sqDecryptSSL: Input data 0 bytes
sqDecryptSSL: Decrypting 37 bytes
buf[0]: 7 (5 bytes) ptr=9edf88
buf[1]: 1 (5 bytes) ptr=9edf8d
buf[2]: 6 (27 bytes) ptr=9edf92
buf[3]: 0 (0 bytes) ptr=0


Connecting to https://github.com :

sqSetStringPropertySSL(2): github.com
sqConnectSSL: input token 0 bytes
sqConnectSSL: Input to InitSecCtxt is 0 bytes
AquireCredentialsHandle returned: 0
InitializeSecurityContext returned: 90312
Input Buffers:
        buf[0]: 2 (0 bytes) ptr=0
        buf[1]: 0 (0 bytes) ptr=0
        buf[2]: 0 (0 bytes) ptr=0
        buf[3]: 0 (0 bytes) ptr=0
Output Buffers:
        buf[0]: 2 (122 bytes) ptr=b12be8
        buf[1]: 0 (0 bytes) ptr=0
sqCopyDescToken:
         type=2, size=122
         type=0, size=0
sqConnectSSL: input token 7 bytes
sqConnectSSL: Input to InitSecCtxt is 7 bytes
InitializeSecurityContext returned: 80090302
Input Buffers:
        buf[0]: 2 (7 bytes) ptr=3cb48
        buf[1]: 0 (0 bytes) ptr=0
        buf[2]: 0 (0 bytes) ptr=0
        buf[3]: 0 (0 bytes) ptr=0
Output Buffers:
        buf[0]: 2 (0 bytes) ptr=0
        buf[1]: 0 (0 bytes) ptr=0
Unexpected return code 2148074242
sqSetStringPropertySSL(2): github.com
sqConnectSSL: input token 0 bytes
sqConnectSSL: Input to InitSecCtxt is 0 bytes
AquireCredentialsHandle returned: 0
InitializeSecurityContext returned: 90312
Input Buffers:
        buf[0]: 2 (0 bytes) ptr=0
        buf[1]: 0 (0 bytes) ptr=0
        buf[2]: 0 (0 bytes) ptr=0
        buf[3]: 0 (0 bytes) ptr=0
Output Buffers:
        buf[0]: 2 (122 bytes) ptr=b12be8
        buf[1]: 0 (0 bytes) ptr=0
sqCopyDescToken:
         type=2, size=122
         type=0, size=0


Note also that I do not get the same error on Squeak. Here I get:

ConnectionClosed: Connection closed while waiting for data.

Here is the details of what I used:

Image
-----
C:\Users\JeCisC\Downloads\squeak.cog.spur_win32x86_201804032021\Squeak5.1-16549-32bit.image
Squeak5.1
latest update: #16549
Current Change Set: Unnamed1
Image format 6521 (32 bit)

Virtual Machine
---------------
C:\Users\JeCisC\Downloads\squeak.cog.spur_win32x86_201804032021\SqueakConsole.exe
Croquet Closure Cog[Spur] VM [CoInterpreterPrimitives
VMMaker.oscog-eem.2361]
Win32 built on Apr  3 2018 20:27:42 GMT Compiler: 6.4.0
platform sources revision VM: 201804032021
https://github.com/OpenSmalltalk/opensmalltalk-vm.git $ Date: Tue Apr 3
13:21:02 2018 -0700 $ CommitHash: 0ce1378 $ Plugins: 201804032021
https://github.com/OpenSmalltalk/opensmalltalk-vm.git $
CoInterpreter VMMaker.oscog-eem.2361 uuid:
7ca2f89a-de70-422f-b92b-54f91ac4e47b Apr  3 2018
StackToRegisterMappingCogit VMMaker.oscog-eem.2361 uuid:
7ca2f89a-de70-422f-b92b-54f91ac4e47b Apr  3 2018

Operating System/Hardware
-------------------------
Win32 6.1 IX86

Operating System Details
------------------------
Operating System: Windows 7 Professional N (Build 7601 Service Pack 1)
	SP major version: 1
	SP minor version: 0
	Suite mask: 100
	Product type: 1



-- 
Cyril Ferlicot
https://ferlicot.fr



More information about the Vm-dev mailing list