title: Spring CLI/Spring Cypher Issue/s Did you configure the keystore correctly
body: <p>Trying to do a project with spring and cyphering the password. In <a href="http://cloud.spring.io/spring-cloud-config/single/spring-cloud-config.html#_encryption_and_decryption" rel="nofollow noreferrer">http://cloud.spring.io/spring-cloud-config/single/spring-cloud-config.html#_encryption_and_decryption</a> </p>
  
  <p>There is at least one issue there as key-store is called keystore but I haven't found someplace without that same issue to base my work on.</p>
  
  <p>Only similar issue I found is 
  <a href="https://stackoverflow.com/questions/39256589/unable-to-decrypt-from-spring-config-server-cleint">unable to decrypt from spring config server / cleint</a>
  but there are no responses there.</p>
  
  <p>I have done the following 
  Installed Full-strength JCE
  Added this dependancy to the pom</p>
  
  <pre><code>&lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
  &lt;artifactId&gt;spring-security-rsa&lt;/artifactId&gt;
  </code></pre>
  
  <p>I have two concerns. First I am trying to get it to work in Spring CLI like this: </p>
  
  <p>1.- Create a key</p>
  
  <pre><code>keytool -genkeypair -alias mytestkey -keyalg RSA -dname "CN=Web Server,OU=Unit,O=Organization,L=City,S=State,C=US" -keypass letmein -keystore server.jks -storepass letmein
  </code></pre>
  
  <p>2.-Encrypt something as following works but I then will be able to decrypt it without using the password so I think that defeats the purpose.</p>
  
  <pre><code>spring encrypt mysecret --key @server.jks TEST
  </code></pre>
  
  <p>How are the commands for encrypting and decrypting suppose to be using the password?</p>
  
  <p>I haven't been able to get it to work on my project but I believe the issue is center around how I created the key. I have configured the following in case someone sees another mistake. </p>
  
  <p>Relevant part of my  boostrap.yml </p>
  
  <pre><code>encrypt:
    key-store:
    location: server.jks
    password: letmein
    alias: mytestkey
    secret: letmein     
  </code></pre>
  
  <p>Relevant part of my application.yml</p>
  
  <pre><code>test:'{cipher}EncryptedValue got by Step 2'
  </code></pre>
  
  <p>This gets me the following error </p>
  
  <pre><code>Caused by: java.lang.UnsupportedOperationException: No decryption for FailsafeTextEncryptor. Did you configure the keystore correctly?
  </code></pre>