Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mTLS does not appear to be working #2273

Open
staffier opened this issue Mar 7, 2023 · 4 comments
Open

mTLS does not appear to be working #2273

staffier opened this issue Mar 7, 2023 · 4 comments

Comments

@staffier
Copy link

staffier commented Mar 7, 2023

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

@staffier
Copy link
Author

staffier commented Mar 7, 2023

This could perhaps be similar to what was documented here:
#1926

@ptrthomas
Copy link
Member

@staffier any idea if this is the same as #2270 ?

@staffier
Copy link
Author

staffier commented Aug 9, 2023

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.

@ptrthomas
Copy link
Member

@staffier ah ok, no that's fine, I was just trying my luck !

@ptrthomas ptrthomas added the bug label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants