Note that there are some explanatory texts on larger screens.

plurals
  1. POCan I prevent digital signature warning when I start a java application from command line?
    primarykey
    data
    text
    <p>Is there any way to prevent the "The application's digital signature cannot be verified" warning message from appearing when you run a Java application from the command line?</p> <p>I'm looking for a <strong>command line solution</strong> that would allow to start an application like this on a continuous integration server, so I need a solution that would not require manual intervention.</p> <p>Also, I would prefer not to disable this warning for <em>any</em> application because this could be a security risk.</p> <p>Not sure if helps but I do know the values of "name", "publisher" and "from" fields of the signature.</p> <p><img src="https://i.stack.imgur.com/Wb41A.png" alt="screenshot of java digital signature warning"></p> <p>Just be sure, I'm not asking about how to sign this application. </p> <h1>update 1</h1> <p>I suppose that the solution is to use <code>keytool</code> to import the certificate from the command line but for some reason it does fail to import it properly because it does not appear in control panel applet after this and the application still requires it.</p> <p><code>keytool -importcert -file my.cer -alias alf2 -storepass changeme -noprompt</code></p> <p><strong>Is it something related to the the default <code>keystore</code>, how can I assure I'm importing into the right keystore?</strong></p> <h1>update 2</h1> <p>After lot of research on the net I made some progress, worked at least on <code>Windows 7</code> with <code>Java 6</code>: <code>keytool -importcert -file my.cer -keystore "%USERPROFILE%\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs" -storepass "" -noprompt -v</code></p> <p>I looks that Sun failed to specify in the documentation the real location of the default keystore and the fact that the default password is blank.</p> <p>But this is not the end, because when this run on the automation user account it failed, it failed because this user did not had an keystore yet and because the command line tool <code>keytool</code> is not able to create a keystore with an empty password, requesting at least 6 characters. <a href="http://forums.sun.com/thread.jspa?threadID=5289660" rel="nofollow noreferrer">see Sun's forum tread...</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload