juxt

steveb8n 2017-09-12T07:15:50.000351Z

Good morning gents, I’ve taken the next step in my Roll journey and need a little help

steveb8n 2017-09-12T07:16:30.000252Z

I’ve installed an ACM SSL cert and added the ARN to my config.edn, following the example

steveb8n 2017-09-12T07:17:15.000025Z

but I’m getting errors from the servlet container that indicate that the encrypted request is being passed through on port 8080

steveb8n 2017-09-12T07:18:06.000100Z

I don’t know EC2 well enough to figure out where the decryption occurs i.e. which part of my Roll config I got wrong.

steveb8n 2017-09-12T07:18:09.000215Z

Any suggestions?

steveb8n 2017-09-12T07:37:02.000350Z

FWIW here’s the error WARN org.eclipse.jetty.http.HttpParser - Illegal character 0x16 in state=START for buffer HeapByteBuffer@4c14e830[p=1,l=168,c=8192,r=167]={\x16<<<\x03\x01\x00\xA3\x01\x00\x00\x9f\x03\x03\x9d\x81\n\xCd\xDd\xF9\xCb...\x02\x04\x03\x03\x01\x03\x02\x03\x03\x02\x01\x02\x02\x02\x03>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}

dominicm 2017-09-12T08:09:28.000182Z

@steveb8n did you update the protocol?

dominicm 2017-09-12T08:09:38.000270Z

(I also notice the sample config is wrong in this)

steveb8n 2017-09-12T09:11:19.000062Z

yes here’s my config `{:listen 443 :forward ^:ref [:web-server :port] :protocol “HTTPS” :ssl-policy “ELBSecurityPolicy-2015-05" :certificate-arn “<elided>“}`

steveb8n 2017-09-12T09:11:41.000285Z

does that look right?

dominicm 2017-09-12T10:11:57.000115Z

@steveb8n looks exactly like ours.

steveb8n 2017-09-12T10:12:51.000346Z

odd isn’t it. I think this must be an EC2 config thing but I don’t know which part

steveb8n 2017-09-12T10:14:51.000195Z

it seems to be ELB -> Target Group -> EC2 Instances but where would 443 decrypt to 8080 in that chain?

steveb8n 2017-09-12T10:15:13.000345Z

before ELB makes the most sense I suppose

dominicm 2017-09-12T10:15:43.000146Z

ELB should do the decryption, yeah.