1
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

updated at

keytoolでJavaの証明書を登録する時にハマった事

やりたい事

jmeterでSSLサイトにリクエストを投げたい。

ハマった事

keytool.exeの使い方が分からず、アクセス権限がありません等エラーとなった。

解決コマンド

証明書配置パス:C:\crt
証明書名:testcrt.crt
keytool.exe -import -alias testcrt -file "C:\crt\testcrt.crt" -keystore "C:\Program Files\Java\jre1.8.0_101\lib\security\cacerts"

確認方法

keytool.exe -list -keystore "C:\Program Files\Java\jre1.8.0_101\lib\security\cacerts" | find "testcrt"
証明書名を含めたフルパスが必要などで、悩みました・・・

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
1
Help us understand the problem. What are the problem?