title: delete a cert from a truststore when the alias has unusual characters (?)
body: <p>Using keytool from the command-line, I added a new cert to a store.  But the anger-inducing window manager that I find myself currently stuck with manages to fail at cut-and-paste, and replaced one of the characters of the alias with a ? character.  How do I change or delete that alias?</p>
  
  <pre><code>keytool -list -keystore truststore
  Enter keystore password:  
  
  Keystore type: JKS
  Keystore provider: SUN
  
  Your keystore contains 4 entries
  
  hail.ucc.nau.edu:8636-cert-1?, Dec 1, 2017, trustedCertEntry,
  </code></pre>
  
  <p>.....</p>
  
  <pre><code>keytool -delete -keystore truststore -alias 'hail.ucc.nau.edu:8636-cert-1?'
  Enter keystore password:  
  keytool error: java.lang.Exception: Alias &lt;hail.ucc.nau.edu:8636-cert-1?&gt; does not exist
  </code></pre>
  
  <p>.....</p>
  
  <pre><code>keytool -delete -keystore truststore -alias 'hail.ucc.nau.edu:8636-cert-1\?'
  Enter keystore password:  
  keytool error: java.lang.Exception: Alias &lt;hail.ucc.nau.edu:8636-cert-1\?&gt; does not exist
  </code></pre>
  
  <p>.....</p>
  
  <pre><code>keytool -delete -keystore truststore -alias 'hail.ucc.nau.edu:8636-cert-1'
  Enter keystore password:  
  keytool error: java.lang.Exception: Alias &lt;hail.ucc.nau.edu:8636-cert-1&gt; does not exist
  </code></pre>
  
  <p>Thanks for any assistance,</p>
  
  <pre><code> - rob.
  </code></pre>