Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hunchentoot SSL error in Clozure Common Lisp #148

Open
markklein opened this issue Oct 4, 2018 · 3 comments
Open

Hunchentoot SSL error in Clozure Common Lisp #148

markklein opened this issue Oct 4, 2018 · 3 comments

Comments

@markklein
Copy link

markklein commented Oct 4, 2018

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?

@stassats
Copy link
Member

stassats commented Oct 4, 2018

Does it work not in CCL?

@markklein
Copy link
Author

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.

@stassats
Copy link
Member

stassats commented Oct 5, 2018

So you're only able to run CCL?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants