Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Ensure we get a 1024 bit RSA key (Fixes SpigotMC#1814)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thinkofname committed Mar 31, 2016
1 parent 7179dd4 commit b6b015f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion proxy/src/main/java/net/md_5/bungee/EncryptionUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ public class EncryptionUtil
{
try
{
keys = KeyPairGenerator.getInstance( "RSA" ).generateKeyPair();
KeyPairGenerator generator = KeyPairGenerator.getInstance( "RSA" );
generator.initialize( 1024 );
keys = generator.generateKeyPair();
} catch ( NoSuchAlgorithmException ex )
{
throw new ExceptionInInitializerError( ex );
Expand Down

0 comments on commit b6b015f

Please sign in to comment.