This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-11-02
Channels
- # announcements (1)
- # babashka (19)
- # beginners (85)
- # calva (1)
- # cider (23)
- # clara (19)
- # clj-kondo (28)
- # clojars (4)
- # clojure (60)
- # clojure-australia (8)
- # clojure-dev (14)
- # clojure-europe (117)
- # clojure-nl (3)
- # clojure-uk (11)
- # clojurescript (68)
- # conjure (2)
- # core-async (39)
- # cryogen (11)
- # cursive (7)
- # data-science (1)
- # datomic (9)
- # emacs (10)
- # etaoin (1)
- # events (1)
- # fulcro (1)
- # helix (10)
- # jobs (4)
- # kaocha (2)
- # keechma (3)
- # leiningen (1)
- # malli (6)
- # pathom (15)
- # pedestal (10)
- # re-frame (5)
- # reitit (1)
- # remote-jobs (1)
- # rum (3)
- # shadow-cljs (18)
- # tools-deps (30)
- # vim (6)
I don’t understand how to get https working and I can’t find any sample code. My understanding is that this is a minimal configuration:
(def service-map
(let [home (System/getProperty "user.home")
jks (str home "/_certifiable_certs/localhost-1d070e4/dev-server.jks")]
{::http/routes routes
::http/type :jetty
::http/port 8890
;; Development-only keystore created using Bruce Hauman's Certifiable.
;;
::http/container-options {:ssl? true
:ssl-port 443
:keystore jks
:key-password "password"}}))
but attempting to start the server using this service map results in
Execution error (BindException) at (Net.java:-2).
Permission denied
what am I missing here…?changing the :ssl-port to literally anything gives me the same exception (edit: anything below 1024 I guess)
Thanks @ddeaguiar I didn’t know that 🙂