keystore

Keytool Options

KEYTOOL OPTIONS
DESCRIPTION

-delete

deletes an entry from the keystore

-exportcert

exports a certificate from a keystore

-genkeypair

generates a key pair

-genseckey

generates a secret key pair

-gencert

generates a certificate from a certificate request

-importcert

import a certificate or a certificate chain to keystore

-importpass

imports a password

-importkeystore

imports one or all entries from another keystore to a keystore

-keypasswd

changes the key password of an entry in keystore

-list

lists entries in a keystore

-printcert

prints the content of a certificate

-printcertreq

prints the content of a certificate request

-printcrl

prints the content of a crl file

-storepasswd

changes the store password of a keystore

get cert from domain

  • check crt file

add crt into Java keystore

[!TIP] imarslo: get remote server certs

generate a certificate

create java keystore from cert file

using -noprompt -trustcacerts will skip manual input yes for Trust this certificate

  • verify

append to existing java keystore

remove alias

import an entire keystore into another keystore

  • import only single alias from keystore to another keystore

export items to cert file

history: This command was named -export in previous releases.

This old name is still supported in this release and will be supported in future releases, but for clarify the new name, -exportcert, is preferred going forward.

Last updated