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

To support higher TLS Version #172

Open
vijayakumaroorappan opened this issue Apr 18, 2023 · 2 comments
Open

To support higher TLS Version #172

vijayakumaroorappan opened this issue Apr 18, 2023 · 2 comments
Labels
feature request A feature has been asked for or suggested by the community

Comments

@vijayakumaroorappan
Copy link

vijayakumaroorappan commented Apr 18, 2023

currently to get the jwk keys from discovery URL(https://login.microsoftonline.com/tenentID/discovery/v2.0/keys). It creates default URLConnection and TLS.
How we can create customized TLS connection. My server is disabled TLSv1 and TLSv1.1.
class:
public class UrlJwkProvider implements JwkProvider {
method:
private Map<String, Object> getJwks() throws SigningKeyNotFoundException {

URLConnection connection = (URLConnection) url.openConnection();

Something similar like this.
HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();

SSLContext sc = SSLContext.getInstance("TLSv1.2");
sc.init(null, null, new java.security.SecureRandom());

@vijayakumaroorappan vijayakumaroorappan added the feature request A feature has been asked for or suggested by the community label Apr 18, 2023
@shivaniy24
Copy link

Hi

how can I add multiple prtocols instead of just one ?
this SSLContext.getInstance("TLSv1.2") allows since protocol only.
I have a list SSLv3/TLSv1/TLSv1.1/TLSv1.2/TLSv1.3 which I want to be able to use instead of just one. Is that possible ?

@jimmyjames
Copy link
Contributor

Thanks for raising this; I don't believe this is currently possible but this is something we should look into adding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A feature has been asked for or suggested by the community
Projects
None yet
Development

No branches or pull requests

3 participants