What is a java keystore?

Loading

A Java Keystore (JKS) is a secure file container used by Java applications to store cryptographic keys, digital certificates, and trusted Certificate Authority (CA) certificates for SSL/TLS encryption.

As a Unix admin, you’ll manage it using the keytool utility. Here are the essential commands:

  • List contents: keytool -list -v -keystore keystore.jks

  • Import a certificate: keytool -importcert -alias mydomain -file cert.crt -keystore keystore.jks

  • Export a certificate: keytool -exportcert -alias mydomain -file cert.crt -keystore keystore.jks

  • Generate key pair: keytool -genkeypair -alias mydomain -keyalg RSA -keystore keystore.jks

Where in the world is Carmen San Diego?