jenkinsci / jenkinsci/syslog-java-client
How to set ciphersuite for a SSLContext object?
- Dominant language
- Java
- Stars
- 91
- Forks
- 71
- PR merge metrics
- No merged PRs in 30d
Description
We are trying to set only those ciphers required for us in client hello , so trying to set ciphers in context object as shown in below code but our changes are not reflecting still client uses default ciphers only, can you suggest ways to set ciphers to context and client should offer only those ciphers in request?
public SSLContext getContext() {
String[] cipherSuites = Arrays.asList("Ciphers");// required Ciphers list
SSLContext context = SSLContext.getInstance("TLSv1.2", "SunJSSE");
context.init(keyManagerFactory.getKeyManagers(), trustMgrFactory.getTrustManagers(),
SecureRandom.getInstance("DEFAULT", provider));
context.getDefaultSSLParameters().setCipherSuites(cipherSuites);
}
Contributor guide
Assessment
This issue has not been assessed yet.