Hello all

I found class CasConfigurationJasyptCipherExecutor , but didnt see how to 
enable Jasypt configuration

I added next configuration

cas.standalone.configurationSecurity.alg=PBEWithMD5AndTripleDES
cas.standalone.configurationSecurity.provider=BC
cas.standalone.configurationSecurity.psw=MySuperPassword


But when I changed it due to encypted value

cas.authn.jdbc.query[0].user={cipher}zWizos/nuSxm3Aj5XYPGJg==


I caught exception


16:27:50.604 [main] ERROR org.springframework.boot.SpringApplication - 
Application run failed
java.lang.IllegalStateException: Cannot decrypt: 
key=cas.authn.jdbc.query[0].user
        at 
org.springframework.cloud.bootstrap.encrypt.EnvironmentDecryptApplicationInitializer.doDecrypt(EnvironmentDecryptApplicationInitializer.java:238)
 ~[spring-cloud-context-2.1.0.RELEASE.jar!/:2.1.0.RELEASE]
        at 
org.springframework.cloud.bootstrap.encrypt.EnvironmentDecryptApplicationInitializer.decrypt(EnvironmentDecryptApplicationInitializer.java:169)
 ~[spring-cloud-context-2.1.0.RELEASE.jar!/:2.1.0.RELEASE]
        at 
org.springframework.cloud.bootstrap.encrypt.EnvironmentDecryptApplicationInitializer.initialize(EnvironmentDecryptApplicationInitializer.java:96)
 ~[spring-cloud-context-2.1.0.RELEASE.jar!/:2.1.0.RELEASE]
        at 
org.springframework.cloud.bootstrap.BootstrapApplicationListener$DelegatingEnvironmentDecryptApplicationInitializer.initialize(BootstrapApplicationListener.java:407)
 ~[spring-cloud-context-2.1.0.RELEASE.jar!/:2.1.0.RELEASE]
        at 
org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:649)
 [spring-boot-2.1.2.RELEASE.jar!/:2.1.2.RELEASE]
        at 
org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:373)
 [spring-boot-2.1.2.RELEASE.jar!/:2.1.2.RELEASE]
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:314) 
[spring-boot-2.1.2.RELEASE.jar!/:2.1.2.RELEASE]
        at 
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:139)
 [spring-boot-2.1.2.RELEASE.jar!/:2.1.2.RELEASE]
        at org.apereo.cas.web.CasWebApplication.main(CasWebApplication.java:71) 
[cas-server-webapp-init-6.0.3-SNAPSHOT.jar!/:6.0.3-SNAPSHOT]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:?]
        at 
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 ~[?:?]
        at 
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
        at 
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) 
[cas.war:?]
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) 
[cas.war:?]
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) 
[cas.war:?]
        at 
org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:58) 
[cas.war:?]
Caused by: java.lang.UnsupportedOperationException: No decryption for 
FailsafeTextEncryptor. Did you configure the keystore correctly?
        at 
org.springframework.cloud.bootstrap.encrypt.EncryptionBootstrapConfiguration$FailsafeTextEncryptor.decrypt(EncryptionBootstrapConfiguration.java:161)
 ~[spring-cloud-context-2.1.0.RELEASE.jar!/:2.1.0.RELEASE]
        at 
org.springframework.cloud.bootstrap.encrypt.EnvironmentDecryptApplicationInitializer.doDecrypt(EnvironmentDecryptApplicationInitializer.java:230)
 ~[spring-cloud-context-2.1.0.RELEASE.jar!/:2.1.0.RELEASE]
        ... 16 more

> Task :run FAILED



-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/96f228d8-edcd-4ab6-b943-df51e99621dd%40apereo.org.

Reply via email to