karate
karate copied to clipboard
mTLS does not appear to be working
I've setup a Karate client & server using two key/cert pairs to test X509/mTLS authentication. The client side looks like this:
* configure ssl = { keyStore: 'server-keystore.p12', keyStorePassword: 'karate-mock', keyStoreType: 'pkcs12' }
...and the server is launched using a different key/cert combo:
* karate.start({ mock: 'server.feature', port: 8080, ssl: true, key: 'x-server-keystore-key.pem', cert: 'x-server-keystore-cert.pem' })
My expectation was a handshake error, given the mis-match ("server-keystore" vs. "x-server-keystore"), but instead the client and server communicate just fine.
Sample project is attached, and apologies in advance if this is all just user error & a bad setup! KarateTroubleshooting.zip
This could perhaps be similar to what was documented here: https://github.com/karatelabs/karate/issues/1926
@staffier any idea if this is the same as https://github.com/karatelabs/karate/issues/2270 ?
Pretty sure I tested this out again when 2270 was fixed and still ran into this issue, so I don't think so, but I can try to recreate things again later today and let you know.
@staffier ah ok, no that's fine, I was just trying my luck !