title: Adding certificate in .cer format into to .bks keystore
body: <p>I need to add certificate in .cer format to into BKS key store</p>
  
  <p>It was described on SO here</p>
  
  <p><a href="https://stackoverflow.com/questions/21284466/how-to-convert-cer-to-bks">How to convert .cer to BKS</a></p>
  
  <p>I did next, create a dir and put inside next files :</p>
  
  <ul>
  <li>keytool.exe</li>
  <li>bcprov-ext-jdk15on-1.46.jar</li>
  <li>Root_CA.cer</li>
  </ul>
  
  <p>Next opening Windows PowerShell and put this command(just replacing to my data)</p>
  
  <pre><code>.\keytool -importcert -v -trustcacerts -file "path_to_cert/interm_ca.cer"
  -alias IntermediateCA -keystore "path_to_your_app/res/raw/myKeystore.bks"
  -provider org.bouncycastle.jce.provider.BouncyCastleProvider
  -providerpath "path_to_bouncycastle/bcprov-jdk16-145.jar" -storetype BKS
  -storepass mysecret
  </code></pre>
  
  <p>Next clicking Enter and nothing happen </p>
  
  <p>Nor message of error neither something else</p>
  
  <p>Just goes to next line</p>
  
  <p>What am I doing wrong? </p>
  
  <p>Fell free to ask</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>if I type command without <code>.\</code> - sings </p>
  
  <p>like this <code>keytool -importcert -v -trustcac.........</code> , so I get this error</p>
  
  <blockquote>
    <p>keytool : The term 'keytool' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
    and try again.
    At line:1 char:1
    + keytool -importcert -v -trustcacerts -file "C:\Users\alexey.t\Downloa ...
    + ~~~~~~~
        + CategoryInfo          : ObjectNotFound: (keytool:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException</p>
    
    <p>Suggestion [3,General]: The command keytool was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command, instead type: ".\keytool". See "get-help about_Command_Precedence" for more details.</p>
  </blockquote>
  
  <hr>
  
  <p>also I tried do like this </p>
  
  <pre><code> PS C:\&gt; C:\Users\alexey.t\Downloads\ElAl_certificates\keytool -importcert -v -trustcacerts .......
  </code></pre>
  
  <hr>
  
  <p>and this </p>
  
  <pre><code>PS C:&gt; C:\Users\alexey.t\Downloads\ElAl_certificates\keytool.exe -importcert -v -trustcacerts
  </code></pre>
  
  <p>nothing changed</p>