hunchentoot
hunchentoot copied to clipboard
Hunchentoot SSL error in Clozure Common Lisp
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:
Any suggestions for how to fix this?
Does it work not in CCL?
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.
So you're only able to run CCL?