hunchentoot icon indicating copy to clipboard operation
hunchentoot copied to clipboard

Hunchentoot SSL error in Clozure Common Lisp

Open markklein opened this issue 6 years ago • 3 comments

I tried to get an SSL version of hunchentoot running, on clozure common lisp 1.11.1 running on a MacBook Pro with OS 10.13.6

I started by creating certificates in the /tmp directory, as follows:

openssl req -new -x509 -nodes -out server.crt -keyout server.key

Here is my lisp code:

(ql:quickload "hunchentoot")

(in-package hunchentoot)

(define-easy-handler (test-ssl :uri "/secure") () (setf (content-type*) "text/plain") "SECURED PAGE")

(defvar ssl-acceptor (make-instance 'easy-ssl-acceptor :port 7777 :ssl-privatekey-file #P"/tmp/server.key" :ssl-certificate-file #P"/tmp/server.crt"))

(start ssl-acceptor)

When I try to access https://localhost:7777/secure from my browser, the system throws an error in the log window:

screen shot 2018-10-04 at 5 21 59 pm

Any suggestions for how to fix this?

markklein avatar Oct 04 '18 08:10 markklein

Does it work not in CCL?

stassats avatar Oct 04 '18 12:10 stassats

Does it work not in CCL?

I've seen posts saying they enabled SSL in hunchentoot from a few years ago, but I don't know whether it still works or not.

markklein avatar Oct 05 '18 06:10 markklein

So you're only able to run CCL?

stassats avatar Oct 05 '18 11:10 stassats