[英]Error adding SSL Support to a Jetty Server Clojure
I am trying to implement ssl in a jetty server; 我正在尝试在码头服务器中实现ssl; but the server never starts!!!
但是服务器永远不会启动!!!
I create my server certificate files and this is the code: 我创建我的服务器证书文件,这是代码:
(ns restserver.core
(:require [ring.adapter.jetty :as jetty]
[ring.util.response :refer [response])
(defn -main
"A very simple web server using Ring & Jetty"
[& args]
(jetty/run-jetty (-> app wrap-json-response)
{:port (Integer. "8123")
:join? false
:ssl? true
:ssl-port 9999
:keystore "sitepkcs12.keystore"
:key-password "qwerty"}))
(defroutes app ....
Do I need to do something more??? 我需要做更多的事情吗??? I cannot figure out what is wrong!!!
我不知道怎么了!
I run 我跑
boot run
It tries to start but then nothing 它尝试启动,但随后什么也没有
看来我必须将join选项更改为true,然后服务器才能运行!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.