Can I prevent a digital signature warning when starting a Java application from the command line?

Is there a way to prevent the warning message “Digitally signed cannot be verified” when starting a Java application from the command line?

I am looking for a command line solution that will allow such an application to run on a continuous integration server, so I need a solution that does not require manual intervention.

In addition, I would prefer not to disable this warning for any application, as this could be a security risk.

I’m not sure what helps, but I know the meaning of the name, publisher, and from fields of the signature.

screenshot of java digital signature warning

Just make sure that I do not ask how to sign this application.

update 1

, keytool , - , , .

keytool -importcert -file my.cer -alias alf2 -storepass changeme -noprompt

keystore, , ?

2

, Windows 7 Java 6: keytool -importcert -file my.cer -keystore "%USERPROFILE%\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs" -storepass "" -noprompt -v

, Sun , .

, , , , , keytool , 6 . . Sun

+3
5

trusted.certs - (). keytool, "cacert", CA Java. cacert XP ( Java): C:\Program Files\Java\jre6\lib\security

:

: changeit

+2

:

  • , . " " , , , , . ( , JAR .)

  • JVM " ". , JVM , .

+1

/, .

: "", "".

+1

, Windows XP keytool , , - . .

0

, , mypolicy.policy, java.home/lib/security , , java.security(, , java.policy )

-1

Source: https://habr.com/ru/post/1765597/


All Articles