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

SEC-2901: java.security.InvalidKeyException: Illegal key size #3118

Closed
spring-projects-issues opened this issue Mar 10, 2015 · 4 comments
Closed
Assignees
Labels
status: invalid An issue that we don't feel is valid type: bug A general bug type: jira An issue that was migrated from JIRA

Comments

@spring-projects-issues
Copy link

Zoltan Altfatter (Migrated from SEC-2901) said:

Using spring boot 1.2.1.RELEASE with Spring Security 4.0.0.RC1 and receive the following exception if I upgrade from jdk1.8.0_25.jdk to jdk1.8.0_31.jdk or jdk1.8.0_40.jdk

java.security.InvalidKeyException: Illegal key size
at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039)
at javax.crypto.Cipher.implInit(Cipher.java:805)
at javax.crypto.Cipher.chooseProvider(Cipher.java:864)
at javax.crypto.Cipher.init(Cipher.java:1396)
at javax.crypto.Cipher.init(Cipher.java:1327)
at org.springframework.security.crypto.encrypt.CipherUtils.initCipher(CipherUtils.java:105)
at org.springframework.security.crypto.encrypt.AesBytesEncryptor.encrypt(AesBytesEncryptor.java:65)
at org.springframework.security.crypto.encrypt.HexEncodingTextEncryptor.encrypt(HexEncodingTextEncryptor.java:36)
at com.elerna.socrates.login.passwordrecovery.ResetPasswordTokenHandlerImpl.encrypt(ResetPasswordTokenHandlerImpl.java:30)
at

@spring-projects-issues
Copy link
Author

Rob Winch said:

Can you try updating to 4.0.0.RC2?

@spring-projects-issues
Copy link
Author

Zoltan Altfatter said:

I get the same exception also with 4.0.0.RC2

@spring-projects-issues
Copy link
Author

Zoltan Altfatter said:

ah, I forgot I installed the JCE Unlimited Strength Jurisdiction Policy (http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html) into my jdk1.8.0_25.jdk
Doing the same on jdk1.8.0_40.jdk I don't get anymore the error.

@spring-projects-issues
Copy link
Author

Rob Winch said:

Thanks resolving as invalid per your previous comment

@spring-projects-issues spring-projects-issues added Resolved type: bug A general bug status: invalid An issue that we don't feel is valid type: jira An issue that was migrated from JIRA labels Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: invalid An issue that we don't feel is valid type: bug A general bug type: jira An issue that was migrated from JIRA
Projects
None yet
Development

No branches or pull requests

2 participants