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
7
votes
2 answers

Keytool does not ask password (using Facebook lib with android)

I run the script below like Facebook said. There is no compiling problem. The problem is it never gives me a password question after process finished and according to facebook documentation it means my keystore path is incorrect. But debug.keystore…
Mustafa Güven
  • 15,526
  • 11
  • 63
  • 83
7
votes
2 answers

generate key and certificate using keytool

I want to generate a self signed trusted certificate and a csr and sign the csr with trusted certificate created. I am trying it with keytool. In the first step of creating a trusted certificate using the below command keytool -genkey -alias…
Lolly
  • 34,250
  • 42
  • 115
  • 150
7
votes
3 answers

StartSSL class 1 certificate not accepted by browser (Weblogic 10.0.1)

I have requested a class 1 certificate from StartSSL and installed it in Weblogic 10.0.1 (see screenshots). The browsers (Chrome & IE9 on Windows 7, IE8 on XPSP3) still give a certificate error (see screenshots). I think the StartSSL root…
Steven Devijver
  • 2,553
  • 1
  • 22
  • 22
7
votes
2 answers

Keytool with custom algorithms

I'm trying to create key storage using Keytool with my algorithms. I've made up custom java.security.provider with extended classes of SignatureSPI, MessagedigestSPI and KeyPairGeneratorSPI, and staticly installed it. Problem I encountered is when…
6
votes
1 answer

KeyStore get key without password

I need to know if its possible to retrieve a key from a KeyStore without providing the 'storepass'. The documentation here says that "When retrieving information from the keystore, the password is optional; if no password is given, the integrity of…
Nishant
  • 161
  • 1
  • 2
  • 10
6
votes
5 answers

keytool certificate generation appeats to hang in command line

Im having a potential issue, or possibly a lack of patience, using keytool in the command line. Ive created a keyStore successfully and i also generated a certificate request successfully. But when I attempt to generate the certificate from the…
meriley
  • 1,831
  • 3
  • 20
  • 33
6
votes
1 answer

Using Client SSL in a Ruby on Rails App

I'm working on an app for a client that requires an SSL connection with an API. I've been provided with three files; a trust root certificate (.cer) file, an intermediate certificate (.cer) file and a signed response file. The instructions I've been…
jkale
  • 83
  • 3
  • 8
6
votes
0 answers

Is OpenSSL V3.0.0 compatible with V1.1.1

I needed to create a jave keystore and so I downloaded the latest version of openssl but kept getting: keytool error: java.io.IOException: keystore password was incorrect As well as windows telling me I had the wrong password if I tried to import…
Nicholas
  • 73
  • 1
  • 7
6
votes
1 answer

How to remove warnings from “keytool” command in bash

How can I remove the warning from the output of keytool -v -alias sssa -list -keystore /var/tmp/certs -storepass passwd | grep 'until' | head -1 | grep -v Warning Warning: The JKS keystore uses a proprietary format. It is recommended to migrate to…
apoonkun
  • 71
  • 1
  • 3
6
votes
2 answers

OpenJDK keytool password

I am trying to register a corporate certificate for https connection in OpenJDK I ran the following command in OpenJDK verion 8. It asked me to enter in the password. The default password for Oracle JDK is "changeit", but it doesn't work with…
Jae Kim
  • 137
  • 1
  • 2
  • 6
6
votes
1 answer

How to Export certificate key to PEM format?

My keystore is deleted, and I try to chat with Google playstore developer and I ask that my keystore app be reset, then they sent instructions like this: Alternatively, you can use the following command line to generate a new key: keytool…
creat15
  • 165
  • 1
  • 2
  • 12
6
votes
0 answers

How to avoid java Security Information popup?

Problem - Java security information popup appears when applet based application loads in the browser. When I check "Always trust content from the publisher" and click run, the application runs and certificate is added to java user trusted…
Nishant
  • 1,142
  • 1
  • 9
  • 27
6
votes
1 answer

certificate chain not found

I am signing the jar file. The certificate provided by VeriSign. It provide 2 certificates: aplha-primary.cer and aplha-secoandary.cer I generate the keystore file using the following commands: keytool -importcert -v -alias -primary -keystore…
dharmendra
  • 423
  • 1
  • 5
  • 12
6
votes
4 answers

Visual Studio's AndroidApkSigner does not find key in keystore

I am getting this error when creating an APK within Visual Studio: Failed to load signer "signer #1": C:\...\googleplay.keystore entry "googleplay" does not contain a key I am a longtime ASP.NET developer who is familiar with Visual Studio but…
Eric
  • 654
  • 5
  • 16
6
votes
0 answers

Difference between keytool and openssl?

We can generate certificate through keytool like this keytool -genkey -alias initcert -keyalg RSA -keystore keycloak.jks -validity 365 -keysize 2048 and through openssl also like this Openssl req -x509 -nodes -days 365 -newkey rsa:2048…
Subodh Joshi
  • 12,717
  • 29
  • 108
  • 202