CAS 4.1.9, webflow encryption key, Invalid AES key length: 43 bytes

175 views
Skip to first unread message

Yan Zhou

unread,
Jan 6, 2017, 12:04:10 PM1/6/17
to CAS Community

Hi there, 


CAS Overlay 4.1.9,   I generated webflow encryption key below. 

 

java -jar json-web-key-generator-0.4-SNAPSHOT-jar-with-dependencies.jar -t oct -s 256


I can generate another TGC signing key that works fine, but Webflow signing key gives me this error.

 

SEVERE: Servlet.service() for servlet [cas] in context with path [/cas] threw exception [Request processing failed; nested exception is org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'viewLoginForm' of flow 'login'] with root cause

java.security.InvalidKeyException: Invalid AES key length: 43 bytes

        at com.sun.crypto.provider.AESCipher.engineGetKeySize(AESCipher.java:495)

 


webflow.encryption.key=LqWoZsHfEYQZ3KIzWiC_KE8iUoKXK48FgTiIDpTZs80

what am I missing?

Thx!
Yan

Yan Zhou

unread,
Jan 6, 2017, 1:36:50 PM1/6/17
to CAS Community
Figured out, the source code says 16 bytes. 

Yan

z mortazavi

unread,
Mar 1, 2017, 4:22:10 AM3/1/17
to CAS Community
hi
how do u fix your error?
help me please
Reply all
Reply to author
Forward
0 new messages