Java keytool

stlplace
Reading Time: < 1 minute

Keytool

The Most Common Java Keytool Keystore Commands

import

  • keytool -import -trustcacerts -alias root -file Thawte.crt -keystore keystore.jks (or cacerts)
    
    (keytool -keystore $CACERTS_STORE -storepass changeit -importcert -alias jfrog.root -file jfrog.root.cer -noprompt)
    
    

list

  • keytool -list -v -keystore $JAVA_HOME/jre/lib/security/cacerts

create

mulesoft

keytool -genkey -keyalg RSA -alias <key-alias> -keystore <keystore-name>.jks

sslshopper
keytool -genkey -keyalg RSA -alias mydomain -keystore keystore.jks  -keysize 2048

Install Spring STS on Mac

Drag the STS to the Application may not necessary, as it could not find the vFabric server (need to open the folder to let base_instance know)

Other setup for Maven (3.0.5)
home brew maven30 (stackoverflow thread)

Last but not least

Java dev blogs at Okta

%d bloggers like this: