Skip to content

Commit 069e2aa

Browse files
committed
Https: use defaults secureRandom
1 parent 5cbd78d commit 069e2aa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

jooby/src/main/java/io/jooby/internal/SslPkcs12Provider.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import javax.net.ssl.SSLContext;
1414
import java.io.InputStream;
1515
import java.security.KeyStore;
16-
import java.security.SecureRandom;
1716

1817
public class SslPkcs12Provider implements SslContextProvider {
1918

@@ -30,7 +29,7 @@ public class SslPkcs12Provider implements SslContextProvider {
3029
kmf.init(store, options.getPassword().toCharArray());
3130
KeyManager[] kms = kmf.getKeyManagers();
3231
SSLContext context = SSLContext.getInstance("TLS");
33-
context.init(kms, null, SecureRandom.getInstanceStrong());
32+
context.init(kms, null, null);
3433
return context;
3534
} catch (Exception x) {
3635
throw SneakyThrows.propagate(x);

0 commit comments

Comments
 (0)