Perl Nopaste Service

Download: Here New: Here

Nopaste from: Tue Apr 16 09:28:16 2019

Expires on: Tue Apr 23 09:28:16 2019

From: Andre (212.204.98.20)

Code language: Plain

Description: JAVA Selfsigned JAR Warning

Code:

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
# server:
keytool -selfcert -storetype PKCS12 -validity 3650 -keysize 2048 -genkey -alias myalias
keytool -export -alias myalias -file myalias.crt

jar cf icons.jar -C icons .
jarsigner -storepass mypass -digestalg SHA1 -tsa http://timestamp.digicert.com icons.jar myalias
jarsigner -verify -verbose -certs icons.jar

# restart application server completly
# copy myalias.crt on windows-client

# import cert on windows-client:
keytool -importcert -file myalias.crt
keytool -importcert -file myalias.crt -keystore C:\Users\<username>\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs

systemcontrol > java > security > manage security > import > myalias.crt
systemcontrol > java > clear cache
firefox > clear cache

start application again