Posts Java add aes key to keystore
Post
Cancel

Java add aes key to keystore

  • For store type jceks with keysize 256
1
$ keytool -genseckey -keystore keystore.jck -storetype jceks -storepass changeitplease -keyalg AES -keysize 256 -alias app1_aes_encryption_key -keypass changeitplease
  • For store type p12 with keysize 512
1
$ keytool -genseckey -keystore keyStore.p12 -storetype pkcs12 -storepass 'changeitplease' -keyalg aes -keysize 512 -alias app1_aes_encryption_key -keypass 'changeitplease'
This post is licensed under CC BY 4.0 by the author.