Re: [Chicken-users] Spiffy SSL Connection handshake error
On Mon, Dec 05, 2011 at 11:05:31AM +0100, Christian Kellermann wrote: > This message is generated by spiffy's exception handler in spiffy.scm > line 562. > > However I could run your test program below without errors on a 64 > bit linux machine running > > openssl . version: 1.5.1 > spiffy ... version: 4.12 > > with chicken master Version 4.7.4 (rev d439343) > > Which version did you use to try this? > > Maybe Peter has a better understanding of what's going on. The SSL egg is a mess I don't fully understand either. The code the OP pasted looks correct, so you're right about checking the versions. Cheers, Peter -- http://sjamaan.ath.cx -- "The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music." -- Donald Knuth ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Spiffy SSL Connection handshake error
* Vok Vojwo [111205 10:43]: > I got the following error while trying to use Spiffy with SSL: > > primordial: Connection handshake error: "argument is not a port" This message is generated by spiffy's exception handler in spiffy.scm line 562. However I could run your test program below without errors on a 64 bit linux machine running openssl . version: 1.5.1 spiffy ... version: 4.12 with chicken master Version 4.7.4 (rev d439343) Which version did you use to try this? Maybe Peter has a better understanding of what's going on. Kind regards, Christian -- Who can (make) the muddy water (clear)? Let it be still, and it will gradually become clear. Who can secure the condition of rest? Let movement go on, and the condition of rest will gradually arise. -- Lao Tse. ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Spiffy SSL Connection handshake error
I got the following error while trying to use Spiffy with SSL: primordial: Connection handshake error: "argument is not a port" This is my simple test program: #! /usr/local/bin/csi -s (use spiffy openssl) (server-port 8000) (access-log (current-error-port)) (debug-log (current-error-port)) (let ((listener (ssl-listen (server-port (ssl-load-certificate-chain! listener "server.crt") (ssl-load-private-key! listener "server.key") (accept-loop listener ssl-accept)) #| (let ((listener (tcp-listen (server-port (accept-loop listener tcp-accept)) |# The TCP version works fine. I created the key and certificates with the following Makefile: all: server.key server.crt clean: -rm server.key server.csr server.crt server.key: openssl genrsa -out $@ 1024 server.csr: server.key openssl req -new -batch \ -key $< -out $@ \ -subj /CN=`hostname -f` server.crt: server.csr server.key openssl x509 -req -days 365 \ -in $(filter %.csr,$^) \ -signkey $(filter %.key,$^) \ -out $@ Does anybody know who generates the error message? It does not seem to be an exception. I have no idea where I should look for the error. ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users