> On 2 Apr 2018, at 22:13, Cyril Ferlicot D. <cyril.ferli...@gmail.com> wrote:
> 
> Hi!
> 
> I have some trouble with SSL in Pharo 7.
> 
> If I execute this code:
> 
> ZnClient new url: 'https://google.com'; get.
> 
> I get a result.
> 
> If I execute this code:
> 
> ZnClient new url: 'https://github.com'; get.
> 
> I get this error: Error: SSL Exception: connect failed [code:-5]

Well, it works for me on macOS and Ubuntu with [version] 'Pharo7.0' 
'Pharo-7.0+alpha.build.660.sha.2eb9bd2f41e7b0bd8f9f4190906910f83c178ab1 (32 
Bit)'

Both socket(stream) code as well as SSL plugin code is different between the 3 
main platforms. SSL plugin code also depends on your OS's libraries. It is 
complex and messy.

Maybe other Windows user can help, I don't know. I can't try on Windows 7, 
sorry.

Did it work before ?

> I tried with both stable and latest vm.
> 
> This is very troublesome because I cannot load some projects on this
> computer :(
> 
> I am on windows 7.
> 
> Here are the details and the stack:
> 
> Image
> -----
> E:\Pharo\images\Pharo 7.0 (development version)-22\Pharo 7.0
> (development version)-22.image
> Pharo7.0alpha
> Build information:
> Pharo-7.0+alpha.build.749.sha.039a4b6f0d61ba99778349c4cff2c4e8d5ff9227
> (32 Bit)
> Unnamed
> 
> Virtual Machine
> ---------------
> C:\Users\JeCisC\Documents\Pharo\vms\70-x86\Pharo.exe
> CoInterpreter VMMaker.oscog-eem.2359 uuid:
> b3273e3e-dd9d-4819-a928-7034e1cf412c Mar 16 2018
> StackToRegisterMappingCogit VMMaker.oscog-eem.2359 uuid:
> b3273e3e-dd9d-4819-a928-7034e1cf412c Mar 16 2018
> VM: 201803161038 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $
> Date: Fri Mar 16 11:38:09 2018 +0100 $ Plugins: 201803161038
> https://github.com/OpenSmalltalk/opensmalltalk-vm.git $
> 
> Win32 built on Mar 16 2018 11:02:19 GMT Compiler: 6.4.0
> VMMaker versionString VM: 201803161038
> https://github.com/OpenSmalltalk/opensmalltalk-vm.git $ Date: Fri Mar 16
> 11:38:09 2018 +0100 $ Plugins: 201803161038
> https://github.com/OpenSmalltalk/opensmalltalk-vm.git $
> CoInterpreter VMMaker.oscog-eem.2359 uuid:
> b3273e3e-dd9d-4819-a928-7034e1cf412c Mar 16 2018
> StackToRegisterMappingCogit VMMaker.oscog-eem.2359 uuid:
> b3273e3e-dd9d-4819-a928-7034e1cf412c Mar 16 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
> 
> 
> ==============================================================
> 
> ZdcSecureSocketStream(Object)>>error:
> ZdcSecureSocketStream>>sslException:code:
> ZdcSecureSocketStream>>connect
> ZnClient>>setupTLSTo:
> ZnClient>>newConnectionTo:
> ZnClient>>getConnectionAndExecute
> ZnClient>>executeWithRedirectsRemaining:
> [ self executeWithRedirectsRemaining: self maxNumberOfRedirects ] in
> ZnClient>>executeWithRetriesRemaining: in Block: [ self
> executeWithRedirectsRemaining: self maxNumb...etc...
> BlockClosure>>on:do:
> ZnClient>>executeWithRetriesRemaining:
> [ self executeWithRetriesRemaining: self numberOfRetries ] in [ [ self
> executeWithRetriesRemaining: self numberOfRetries ]
>       on: Error
>       do: self ifFailBlock ] in ZnClient>>executeWithTimeout in Block: [ self
> executeWithRetriesRemaining: self numberOfR...etc...
> BlockClosure>>on:do:
> [ [ self executeWithRetriesRemaining: self numberOfRetries ]
>       on: Error
>       do: self ifFailBlock ] in ZnClient>>executeWithTimeout in Block: [ [
> self executeWithRetriesRemaining: self numberO...etc...
> [ ^ block value ] in ZnClient>>withTimeoutDo: in Block: [ ^ block value ]
> [ activeProcess psValueAt: index put: anObject.
> aBlock value ] in ZnConnectionTimeout(DynamicVariable)>>value:during: in
> Block: [ activeProcess psValueAt: index put: anObject....
> BlockClosure>>ensure:
> ZnConnectionTimeout(DynamicVariable)>>value:during:
> ZnConnectionTimeout class(DynamicVariable class)>>value:during:
> ZnClient>>withTimeoutDo:
> ZnClient>>executeWithTimeout
> [ result := self executeWithTimeout ] in ZnClient>>execute in Block: [
> result := self executeWithTimeout ]
> [ ^ block value ] in ZnClient>>withProgressDo: in Block: [ ^ block value ]
> [ activeProcess psValueAt: index put: anObject.
> aBlock value ] in ZnSignalProgress(DynamicVariable)>>value:during: in
> Block: [ activeProcess psValueAt: index put: anObject....
> BlockClosure>>ensure:
> ZnSignalProgress(DynamicVariable)>>value:during:
> ZnSignalProgress class(DynamicVariable class)>>value:during:
> ZnClient>>withProgressDo:
> ZnClient>>execute
> ZnClient>>get
> UndefinedObject>>DoIt
> 
> 
> 
> -- 
> Cyril Ferlicot
> https://ferlicot.fr
> 


Reply via email to