Java: Difference between revisions

From Halfface
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Java information
Java information


To list keys in java keystore.
=To list keys in java keystore.=
  /usr/java/jre1.6.0_03/bin/keytool --list --keystore /usr/java/jre1.6.0_03/lib/security/cacerts
  /usr/java/jre1.6.0_03/bin/keytool --list --keystore /usr/java/jre1.6.0_03/lib/security/cacerts


Import key in java keystore.
=Import key in java keystore.=
  openssl x509 -outform der -in certificate.pem -out certificate.der
  openssl x509 -outform der -in certificate.pem -out certificate.der
  keytool -import -alias your-alias -keystore cacerts -file certificate.der
  keytool -import -alias your-alias -keystore cacerts -file certificate.der


List content of der.
=List content of der.=
  openssl x509 -in BPClass3RootCA.cer -inform der -noout -text
  openssl x509 -in BPClass3RootCA.cer -inform der -noout -text
=show jar file signing==
jarsigner -verify -verbose -certs file.jar

Revision as of 10:59, 22 October 2015

Java information

To list keys in java keystore.

/usr/java/jre1.6.0_03/bin/keytool --list --keystore /usr/java/jre1.6.0_03/lib/security/cacerts

Import key in java keystore.

openssl x509 -outform der -in certificate.pem -out certificate.der
keytool -import -alias your-alias -keystore cacerts -file certificate.der

List content of der.

openssl x509 -in BPClass3RootCA.cer -inform der -noout -text

show jar file signing=

jarsigner -verify -verbose -certs file.jar