Hi, I'm trying to validate client certificates with the help of ring.adapter.jetty/run-server, and realize the key :ssl-client-cert is always nil for every request I send, even if I think I have passed the client certs correctly.
Both requests will be received without problems, but neither of them has value under :ssl-client-cert key (they are all nils).
Another thing is, even if I set :client-auth as :need in my server opts, my requests will still pass without setting :keystore/:keystore-pass and --cert client.p12.
I tried to do some digging around this issue, and found out I might not be the only person who is affected by this.
Hi, I'm trying to validate client certificates with the help of
ring.adapter.jetty/run-server
, and realize the key:ssl-client-cert
is alwaysnil
for every request I send, even if I think I have passed the client certs correctly.Server is started like the following:
I tried two ways to send requests:
[clj-http "3.9.0"]
librarycurl
as well. (server.pem
andclient.p12
are generated by following this post)Both requests will be received without problems, but neither of them has value under
:ssl-client-cert
key (they are allnil
s).Another thing is, even if I set
:client-auth
as:need
in my server opts, my requests will still pass without setting:keystore/:keystore-pass
and--cert client.p12
.I tried to do some digging around this issue, and found out I might not be the only person who is affected by this.
clj-http
lib.Could anyone take a look at this issue? I'm happy to provide more information if needed.
Jetty server is running on
openjdk 1.8.0_222
.