-
Notifications
You must be signed in to change notification settings - Fork 124
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
Extract method in SelfSigned #411
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK if travis agrees
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I guess
The plan is to move the extracted function away so that we can build There is quite a few places/projects that have very similar needs (fake certs, trust stores built on-the-fly,...). The long term effort would solve #89 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Travis said yes! |
tmf.init(keyStore) | ||
val tms: Array[TrustManager] = tmf.getTrustManagers | ||
val x509TrustManager: X509TrustManager = tms(0).asInstanceOf[X509TrustManager] | ||
|
||
val kmf: KeyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ignasi35 was the change from "SunX509" to KeyManagerFactory.getDefaultAlgorithm
intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moreover, is it significant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was intentional and I think it's not significant.
This is a noop change. extracts a method in preparation for a refactor that will eventually move this code to ssl-config.