Questions tagged [keytool]

Key and Certificate Management Tool: manages a keystore (database) of cryptographic keys, X.509 certificate chains, and trusted certificates.

Keytool is a key and certificate management utility. It allows users to administer their own public/private key pairs and associated certificates for use in self-authentication (where the user authenticates himself/herself to other users/services) or data integrity and authentication services, using digital signatures. It also allows users to cache the public keys (in the form of certificates) of their communicating peers.

1325 questions
8
votes
2 answers

Java 7 keytool Elliptic Curve Encryption

I'm trying to create a keystore using keytool with a keyalg ECC. This should be possible according to Oracle. I quote: Area: Tools Synopsis: The keytool and jarsigner tools now support the ECC algorithm in keypair generation and jar signing. RFE:…
Bruno Lowagie
  • 75,994
  • 9
  • 109
  • 165
8
votes
4 answers

"Wrong version of key store" error. How can I create a version=1 keystore certificate?

I am having trouble using SSL, as I am getting the following error related to my keystore (self-created and self-signed using keytool per: http://developer.android.com/tools/publishing/app-signing.html): 08-14 20:55:23.044: W/System.err(5430):…
gymshoe
  • 7,495
  • 5
  • 20
  • 21
7
votes
1 answer

How to develop an Android App with google maps API on multiple computers?

I want to make an Android Application, that uses Google Maps. I have installed Eclipse, Android JDK and an AVD (Android Virtual Device). I followed this tutorial: http://developer.android.com/resources/tutorials/hello-world.html and made my first…
linnkb
  • 515
  • 3
  • 9
  • 24
7
votes
3 answers

Generating 128-bit keys with keytool

Is there a way to generate a 128-bit key pair suitable for encryption using Sun's keytool program? It seems that the algorithms available in http://java.sun.com/javase/6/docs/technotes/guides/security/StandardNames.html#KeyPairGenerator are either…
Chry Cheng
  • 3,378
  • 5
  • 47
  • 79
7
votes
5 answers

Parse a keystore file and get values of "Alias name" & "Expiry date"

I want to parse a keystore file and get only the value of "Alias name:" and expiry date that comes next to "until:" . Anything with awk / sed will work. Tried the below 2 commands that gives the value. But I want it in a single…
7
votes
1 answer

Java keytool : Importing PKCS12 to jks , getting error keystore password was incorrect

I have created PKCS12 file using private key and the public certificate using openssl. I am trying to import the PCKS12, but getting error keystore password was correct. I have added password in the command line argument as below: openssl pkcs12…
7
votes
1 answer

How to change .p12 password?

I have a .p12 file and I need to change its password. And this new password have to be "1234" I already tried to do this with Keytool : keytool -importkeystore -srckeystore authentification.p12 -srcstoretype PKCS12 -srcstorepass "2600807934-Auth"…
Lams
  • 105
  • 1
  • 1
  • 7
7
votes
2 answers

Apk signer entry does not contain a key

I am trying to sign an APK manually using APK signer using this code apksigner sign --ks D:\Android\SDK\keystores\release.keystore --ks-key-alias uploadcertificate --out app-release.apk app.apk but it's giving me an error saying that Failed to…
B0rn2C0de
  • 585
  • 1
  • 7
  • 22
7
votes
1 answer

Keytool list command shows incorrect keystore format

I'm creating a keystore in the pkcs12 format using command: > openssl pkcs12 -export -in -inkey -out mycert.p12 -name -caname Once created I' checking the created keystore: > keytool -list -keystore mycert.p12 Enter…
erkfel
  • 1,588
  • 2
  • 17
  • 29
7
votes
1 answer

How can I generate a key pair and insert it into a KeyStore programmatically (without using the Java KeyTool)?

I would like to generate a key pair and insert it into a Java KeyStore programmatically. I can use the command line to do exactly what I want, but how to do that using Java code? Here is the command line: keytool -genkeypair \ -dname…
felipeptcho
  • 1,377
  • 2
  • 9
  • 23
7
votes
6 answers

keytool error: java.io.FileNotFoundException: C:\cacerts (Access is denied)

I am on Windows 10 with JRE8 and the command I'm using is: C:\Program Files\Java\jre1.8.0_60\bin>keytool -keystore "C:\cacerts" -storepass changeit -importcert -file "C:\Users\MyUser\Desktop\sf.cer" -alias Symantec_Secure_Server_Class_3 Here's what…
7
votes
5 answers

Keytool create a trusted self signed certificate

I am trying to use the (java) keytool to create a self signed certificate but when I attempt to use it I get the following exception (see bottom for entire exception). ...<5 more exceptions above this> Caused by:…
sixtyfootersdude
  • 25,859
  • 43
  • 145
  • 213
7
votes
1 answer

How to set default language for java keytool?

I use Windows OS with English language and US keyboard setting. I use this command to generate keystore. It works fine. C:\java6\jre\bin\keytool -genkey -keyalg RSA -alias mykey -validity 3652 -keystore C:\mykeystore -storepass 111111111 <…
Tuan
  • 2,303
  • 2
  • 25
  • 37
7
votes
1 answer

Fixing debug.keystore to work with ADT 22 and Google Maps v1 API Key

After updating my Android SDK to revision 22.0.1 and updating the Eclipse ADT, I found that I could no longer install a debug build on a device. The console shows this error: Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES I found that I…
Kristopher Johnson
  • 81,409
  • 55
  • 245
  • 302
7
votes
2 answers

How to import a jks certificate in java trust store

How do I import a .jks file into the java security's truststore? All the tutorial I'm seeing is using a ".crt" file. However, I only have the ".jks" file which is also the keystore I generated using the keytool command. Currently, I'm following this…
Arci
  • 6,647
  • 20
  • 70
  • 98