Skip to content

Instantly share code, notes, and snippets.

View p-karanthaker's full-sized avatar
🎯
Focusing

Karan Thaker p-karanthaker

🎯
Focusing
View GitHub Profile
@p-karanthaker
p-karanthaker / keystore-base64.txt
Last active October 7, 2020 10:19
Base64 encode an entire keystore to store within Hashicorp Vault kv store
Creating a keystore with a keypair:
keytool -genkeypair -alias boguscert -storepass storePassword -keypass secretPassword -keystore emptyStore.keystore -dname "CN=Developer, OU=Department, L=City, ST=State, C=CA"
Deleting a keypair to make an empty keystore:
keytool -delete -alias boguscert -storepass storePassword -keystore emptyStore.keystore
Listing the keystore:
keytool -list -keystore emptyStore.keystore -storepass storePassword
Base64 encode the keystore (this can be stored within Vault):

Keybase proof

I hereby claim:

  • I am p-karanthaker on github.
  • I am karant (https://keybase.io/karant) on keybase.
  • I have a public key whose fingerprint is AA7C 507B 439B EF98 866F 20D3 1B45 81A1 65E1 4D64

To claim this, I am signing this object: