[Klone-users] HTTPS question
thomas fossati
tho at koanlogic.com
Fri Nov 20 09:41:49 EST 2009
Hi Diana,
On Nov 20, 2009, at 2:03 PM, diakat 2000 wrote:
> there is no such entry in my Makefile.conf. That's curious.
indeed !
> I've tried out an empty klone project, it's the same.
> Could you tell me the necessary configure options, please?
a "KLONE_CONF_ARGS += --lib-openssl=/path/to/openssl/install/dir"
should work for non standard openssl installation paths ...
> Openssl is correctly installed. As I mentioned before, SSL check was
> successfull
> (I suppose, that openssl_psk is not necessary).
Yes, the PSK patched openssl is just an optional check.
Anyway, since I don't know where openssl resides on your build system
I've tried everything from scratch:
:::::: openssl side ::::::
$ wget http://www.openssl.org/source/openssl-0.9.8l.tar.gz
$ tar zxf openssl-0.9.8l.tar.gz && cd openssl-0.9.8l
$ ./config --prefix=/tmp/ossl-098l --openssldir=/tmp/ossl-098l/etc/
openssl shared
$ make
$ make install
:::::: klone side (PKIX settings and credentials unchanged) ::::::
$ cat Makefile
KLONE_VERSION = 2.2.1
KLONE_CONF_ARGS = --enable_debug
KLONE_CONF_ARGS += --enable_sup_fs
KLONE_CONF_ARGS += --lib-openssl=/Users/tho/tmp/ossl-098l
WEBAPP_DIR = $(CURDIR)/webapp
include klapp.mk
klapp.mk: ; wget -O $@ http://koanlogic.com/klone/klapp.mk
$ make
$ grep LIBOPENSSL klone-2.2.1/build/target/klone-core-2.2.1/
Makefile.conf
LIBOPENSSL_CFLAGS = -I/tmp/ossl-098l/include
LIBOPENSSL_LDFLAGS = -L/tmp/ossl-098l/lib -lssl -lcrypto
HAVE_LIBOPENSSL = 1
$ ./kloned -dF
and in another shell:
$ /tmp/ossl-908l/bin/openssl s_client -connect localhost:8000
[...]
GET / HTTP/1.0 <== to be typed very quickly :)
HTTP/1.0 200 OK
Server: klone/2.2.1
Date: Fri, 20 Nov 2009 14:28:00 GMT
Content-Type: text/html
Cache-Control: no-cache, must-revalidate
Expires: Mon, 1 Jan 1990 05:00:00 GMT
Pragma: no-cache
<html>
<head> <title>klapp</title> </head>
<body>
<h1>KLone app example</h1>
<blockquote>
<blockquote>
<i>
Hello from KLone
</i>
</blockquote>
</blockquote>
</body>
</html>
read:errno=0
As you see everything is quite sound. Could you please reproduce
these steps and see what happens ?
ciao, t.
More information about the klone-users
mailing list