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

No results in company network with TLS interception #194

Closed
frimtec opened this issue Apr 3, 2023 · 6 comments
Closed

No results in company network with TLS interception #194

frimtec opened this issue Apr 3, 2023 · 6 comments
Labels
bug Something isn't working
Milestone

Comments

@frimtec
Copy link

frimtec commented Apr 3, 2023

In our company we have a TLS interception.
Therefore mcs can't connect to the backend as of a certificate issue.
The result is just empty result, but no error is displayed.

How can the certificate truststore can be configured?
Setting it via -Djavax.net.ssl.trustStrore=company-ca.jks seems not to work.

@mthmulders
Copy link
Owner

Hi @frimtec, thanks for reporting this!

The result is just empty result, but no error is displayed.

Oh, that's not nice. It should at least give you a clue as to why it didn't work.

How can the certificate truststore can be configured?

I'll have to investigate. I distribute MCS as a native executable - it probably requires some fiddling to pass a custom truststore.

@mthmulders mthmulders added the bug Something isn't working label Apr 3, 2023
@mthmulders mthmulders added this to the 0.3.2 milestone Apr 10, 2023
mthmulders added a commit that referenced this issue Apr 13, 2023
This includes for example TLS-related errors, as
reported in #194 - hence the test case.
mthmulders added a commit that referenced this issue Apr 13, 2023
This includes for example TLS-related errors, as
reported in #194 - hence the test case.
@mthmulders
Copy link
Owner

The latest early-access build should have this problem addressed - at least MCS should show you what went wrong. @frimtec, could you please verify that you get a meaningful error message with that build?

@frimtec
Copy link
Author

frimtec commented Apr 14, 2023

Hi @mthmulders

Thanks, now I see an error message:

frim@:/c/Develop/tools/mcs-0.3.2-SNAPSHOT-windows-x86_64/bin> ./mcs.exe search jpse
Searching for jpse...
java.net.ConnectException

@mthmulders
Copy link
Owner

Thanks for confirming, @frimtec. I've enhanced the display of the error message a bit.

For now, I will close this issue, as #199 at least ensures you'll get some kind of error message. In the meantime, I'll figure out how to work with custom trust stores - that work is tracked in #195. That will probably take a bit more time. I'll make sure to ship a release with this improvement in error handling shortly!

@mthmulders
Copy link
Owner

@all-contributors please add @frimtec for bug.

Copy link
Contributor

@mthmulders

I've put up a pull request to add @frimtec! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants