hunchentoot define-easy-handler with ssl?

后端 未结 2 927
自闭症患者
自闭症患者 2021-01-13 23:51

I use define-easy-handler all the time. I now have a freshly minted ssl certificate and associated pem files, but can\'t figure out what the ssl equivalent of d-e-h is.

2条回答
  •  甜味超标
    2021-01-13 23:52

    This is not a function of the handlers but of the acceptor. All you need to do is use an easy-ssl-acceptor instead of an easy-acceptor for starting your server:

    (hunchentoot:start (make-instance 'hunchentoot:easy-ssl-acceptor :port 4242))
    

提交回复
热议问题