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

TrustManager does not verify certificate or hostname #2

Open
wsargent opened this issue Sep 28, 2014 · 4 comments
Open

TrustManager does not verify certificate or hostname #2

wsargent opened this issue Sep 28, 2014 · 4 comments

Comments

@wsargent
Copy link

I reviewed the code and noticed you have a TrustManager that does not validate the remote certificate -- let me know if you'd like me to submit a PR to configure it.

@sclasen
Copy link
Owner

sclasen commented Sep 28, 2014

Hey Will, I am assuming you are referring to the SSL object here

https://github.com/sclasen/akka-zk-cluster-seed/blob/master/src/main/scala/akka/cluster/seed/ExhibitorClient.scala#L80

That only is used if the validateCerts param is false in the exhibitor client.

https://github.com/sclasen/akka-zk-cluster-seed/blob/master/src/main/scala/akka/cluster/seed/ExhibitorClient.scala#L60-L62

So afaik, sprays default SSL stuff kicks in if validateCerts is true, and the SSL object is used if not.

If you saw this and this approach is broken, please PR 👍

@wsargent
Copy link
Author

@sclasen
Copy link
Owner

sclasen commented Sep 29, 2014

Aha, great then PR please!

On Sun, Sep 28, 2014 at 5:50 PM, Will Sargent [email protected]
wrote:

Spray's default SSLEngine support doesn't enable hostname verification --
see
https://github.com/spray/spray/blob/master/spray-io/src/main/scala/spray/io/SslTlsSupport.scala
and http://tersesystems.com/2014/03/23/fixing-hostname-verification/


Reply to this email directly or view it on GitHub
#2 (comment)
.

@lustefaniak
Copy link
Contributor

rajcspsg pushed a commit to rajcspsg/akka-zk-cluster-seed that referenced this issue Dec 11, 2020
…ka_ver_2.6 to master

* commit 'ff64ff739e905268034a71f7f3c9e2de48070f18':
  CAP-1050 update akka version to 2.6.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants