Re: How to use HTTPS (SSL) with Zinc
Posted by
horrido on
Jun 24, 2017; 8:57am
URL: https://forum.world.st/How-to-use-HTTPS-SSL-with-Zinc-tp4952461p4952506.html
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 load it?
Attila Magyar wrote
Teapot uses ZnServer defaultServerClass by default, but you can configure Teapot to use other kind of ZnServers like this.
secureServer := (ZnSecureServer on: 1443)
certificate: '/path/to/keypair';
logToTranscript;
yourself.
teapot := Teapot configure: { #znServer -> secureServer }.
teapot
GET: '/test' -> 'secure';
start.
This is available only in the latest development version.