Apr 9, 2024

JKS

Show content

$ keytool -v -list -keystore test.jks

Generate aes key

$ keytool -genseckey -alias aes-key-1 -keyalg aes -keysize 128 -storetype jceks -keystore ks.jks
$ keytool -genseckey -alias aes-key-2 -keyalg aes -keysize 128 -storetype pkcs12 -keystore ks.p12

Import the pkcs12 into jks

$ keytool -importkeystore -srckeystore aes-ks.p12 -destkeystore aes-ks.jks -srcstoretype pkcs12 -alias aes-key-2

Import jks into pkcs12

$ keytool -importkeystore -srckeystore aes-ks.jks -destkeystore aes-ks.p12 -srcstoretype jceks -alias aes-key-1

Delete key from keystore by alias

$ keytool -delete -alias aes-key-2 -keystore aes-ks.jks

Apr 2, 2024

DNS

Name request to a specific Domain Name Server

$ dig @8.8.8.8 www.google.com

Kubernetes

kubectl installation $ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl...