最終更新:2017-08-02 (水) 16:02:29 (2430d)
keytool
Top / keytool
http://docs.oracle.com/javase/jp/6/technotes/tools/windows/keytool.html
扱う情報
- キーストアのすべてのエントリ (鍵および信頼できる証明書) は、一意の「別名」を介してアクセスされます。
鍵
証明書
Android
- 署名に必要な鍵の生成と管理を行う
使い方
user@ubuntu:~$ keytool Key and Certificate Management Tool Commands: -certreq Generates a certificate request -changealias Changes an entry's alias -delete Deletes an entry -exportcert Exports certificate -genkeypair Generates a key pair -genseckey Generates a secret key -gencert Generates certificate from a certificate request -importcert Imports a certificate or a certificate chain -importkeystore Imports one or all entries from another keystore -keypasswd Changes the key password of an entry -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 Use "keytool -command_name -help" for usage of command_name
Java/キーストア
- Linux:デフォルトだとLinux/~/.keystore
中身の確認
- keytool -keystore /path/to/.jks -list
キーストアのパスワードを入力してください:
表示
- Check a stand-alone certificate
keytool -printcert -v -file mydomain.crt
- Check which certificates are in a Java keystore
keytool -list -v -keystore keystore.jks
- Check a particular keystore entry using an alias
keytool -list -v -keystore keystore.jks -alias mydomain