Re: [Pharo-users] How to use HTTPS (SSL) with Zinc

2017-06-24 Thread Sven Van Caekenberghe
> On 24 Jun 2017, at 10:03, Attila Magyar wrote: > > Sven Van Caekenberghe-2 wrote >> (In regular mail, I don't see you code snippet, I copy it here). > > > Hmm, maybe because of the raw text tags. Is this visible? > > Transcript >show: 'Hello world'; >cr. Yes, that we can see in t

Re: [Pharo-users] How to use HTTPS (SSL) with Zinc

2017-06-24 Thread Attila Magyar
Gofer it smalltalkhubUser: 'zeroflag' project: 'Teapot'; configuration; loadDevelopment. -- View this message in context: http://forum.world.st/How-to-use-HTTPS-SSL-with-Zinc-tp4952461p4952507.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Re: [Pharo-users] How to use HTTPS (SSL) with Zinc

2017-06-24 Thread horrido
Okay, I should've asked, how do I get the development version? horrido wrote > Are you referring to ConfigurationOfTeapot? I presume it's not loaded by > your instruction: > > Gofer it > smalltalkhubUser: 'zeroflag' project: 'Teapot'; > configuration; > loadStable. > > So how do I

Re: [Pharo-users] How to use HTTPS (SSL) with Zinc

2017-06-24 Thread horrido
Are you referring to ConfigurationOfTeapot? I presume it's not loaded by your instruction: Gofer it smalltalkhubUser: 'zeroflag' project: 'Teapot'; configuration; loadStable. So how do I load it? Attila Magyar wrote > Teapot uses ZnServer defaultServerClass by default, but you can

Re: [Pharo-users] How to use HTTPS (SSL) with Zinc

2017-06-24 Thread Attila Magyar
Sven Van Caekenberghe-2 wrote > (In regular mail, I don't see you code snippet, I copy it here). Hmm, maybe because of the raw text tags. Is this visible? Transcript show: 'Hello world'; cr. -- View this message in context: http://forum.world.st/How-to-use-HTTPS-SSL-with-Zinc-tp49

Re: [Pharo-users] How to use HTTPS (SSL) with Zinc

2017-06-24 Thread Sven Van Caekenberghe
> On 24 Jun 2017, at 09:26, Attila Magyar wrote: > > Teapot uses ZnServer defaultServerClass by default, but you can configure > Teapot to use other kind of ZnServers like this. > > > > This is available only in the latest development version. That's very nice. Thanks for the reply, Attila.

Re: [Pharo-users] How to use HTTPS (SSL) with Zinc

2017-06-24 Thread Attila Magyar
Teapot uses ZnServer defaultServerClass by default, but you can configure Teapot to use other kind of ZnServers like this. This is available only in the latest development version. -- View this message in context: http://forum.world.st/How-to-use-HTTPS-SSL-with-Zinc-tp4952461p4952501.html Se

Re: [Pharo-users] How to use HTTPS (SSL) with Zinc

2017-06-23 Thread horrido
Okay, I think I understand. There are two server instances, one for http and one for https. How do I get Teapot to use the one for https??? horrido wrote > I discovered that I skipped an important step in creating the SSL cert. > HTTPS is now working. However, for some reason, it's not finding my

Re: [Pharo-users] How to use HTTPS (SSL) with Zinc

2017-06-23 Thread horrido
I discovered that I skipped an important step in creating the SSL cert. HTTPS is now working. However, for some reason, it's not finding my Teapot routes. The route that worked in http://localhost:1701/login, for example, no longer works in https://localhost:1443/login. I'm investigating... --

Re: [Pharo-users] How to use HTTPS (SSL) with Zinc

2017-06-23 Thread horrido
This is on my Raspberry Pi running the latest Raspbian. I'm using Pharo 5.0. The browser is Firefox. Sven Van Caekenberghe-2 wrote >> On 23 Jun 2017, at 23:39, horrido < > horrido.hobbies@ > > wrote: >> >> I get an "SSL Exception: accept failed [code:-5]" error. Is it because I >> have >> a

Re: [Pharo-users] How to use HTTPS (SSL) with Zinc

2017-06-23 Thread Sven Van Caekenberghe
> On 23 Jun 2017, at 23:39, horrido wrote: > > I get an "SSL Exception: accept failed [code:-5]" error. Is it because I have > a self-signed cert? > > Apparently, it's failing on: > > result := self sslSession accept: in from: 1 to: count into: out. Platform ? Pharo version ? It also depends

Re: [Pharo-users] How to use HTTPS (SSL) with Zinc

2017-06-23 Thread horrido
I get an "SSL Exception: accept failed [code:-5]" error. Is it because I have a self-signed cert? Apparently, it's failing on: result := self sslSession accept: in from: 1 to: count into: out. Sven Van Caekenberghe-2 wrote > Hi, > >> On 23 Jun 2017, at 20:41, horrido < > horrido.hobbies@ >

Re: [Pharo-users] How to use HTTPS (SSL) with Zinc

2017-06-23 Thread Sven Van Caekenberghe
Hi, > On 23 Jun 2017, at 20:41, horrido wrote: > > Okay, so I have my nice little Teapot app, but I'd like to run it as HTTPS. > As far as I can understand, to do this I must go through Zinc. However, the > docs on the web seem rather out of date. For example, I do not have > ZnZincServerAdapter