2

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, nothing shows up on the browser, and hunchentoot throws the following error to the log window:

enter image description here

Unhandled execption 11, Exception occurred while executing foreign code

Any suggestions for how to fix this?

Rainer Joswig
  • 136,269
  • 10
  • 221
  • 346
Mark Klein
  • 97
  • 4
  • I’ve readof people who have used ssl in hunchentoot successfully in the past: https://stackoverflow.com/questions/50749373/hunchentoot-define-easy-handler-with-ssl – Mark Klein Oct 04 '18 at 13:04
  • I cannot reproduce this on Linux with the same version of CCL – coredump Oct 19 '18 at 09:05

0 Answers0