Skip to content

Commit

Permalink
Merge pull request #159 from razorpay/semgrep_issue_fix
Browse files Browse the repository at this point in the history
ssl issue fix
  • Loading branch information
swati31196 authored Feb 15, 2022
2 parents c48fc6e + 8ba7823 commit f421b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/razorpay/CustomTLSSocketFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class CustomTLSSocketFactory extends SSLSocketFactory {
private SSLSocketFactory internalSSLSocketFactory;

CustomTLSSocketFactory() throws KeyManagementException, NoSuchAlgorithmException {
SSLContext context = SSLContext.getInstance("TLS");
SSLContext context = SSLContext.getInstance("TLSv1.2");
context.init(null, null, null);
internalSSLSocketFactory = context.getSocketFactory();
}
Expand Down

0 comments on commit f421b94

Please sign in to comment.