keytool

JDK 7 changes keytool output

我是研究僧i 提交于 2019-11-28 10:27:12
I'm using keytool of JDK to generate the Google Maps API key fingerprint. While being rejected for several times, I realized that I've upgraded JDK to 1.7 recently. So I switch my dir to JDK6 (Thank god, the old version remains.), and repeated the same command: D:\.android>"C:\Program Files\Java\jre6\bin\keytool" -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android and Bang! It works. Turned out that JDK7 generated the SHA1 fingerprint instead of MD5, which leads to the rejection of my submission to Google. So I'm wondering why this happens for the new

Lost my debug.keystore due to Xamarin new installation. Can i recover it?

妖精的绣舞 提交于 2019-11-28 06:45:42
问题 I'm using for demo purpose an APK made by Xamarin and signed with the default debug.keystore. Due to new Xamarin installation the keystore are changed and now I cannot upgrade new version of the apk because I run into 'Application not Installed' error. For several reasons I don't want my users uninstall the previous app losing their data. I agree that I haven't to use a debug key for release (I've learned this lesson) but is there a way to recreate the previous debug.keystore by its signature

AndroidDebugKey Keystore was tampered with, or password was incorrect [duplicate]

江枫思渺然 提交于 2019-11-28 06:31:49
This question already has an answer here: Keytool Signing Problem: Keystore was tampered with, or password was incorrect 5 answers Whenever I enter in the terminal: keytool -list -alias androiddebugkey -keystore ~/.android/debug.keystore -storepass android -keypass android It asks me for a password. I've never set a password before. I've read somewhere else to put in "android" but I still receive the following error: keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect Also I am new to the Mac environment. Whenever I type in the password the cursor does not

Certificate chain not found, how to fix and publish to Google Play Store?

懵懂的女人 提交于 2019-11-28 04:20:28
ERROR MESSAGE : jarsigner: Certificate chain not found for: project_foo.<br/> project_foo must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain. QUESTION : How do I include a public key certificate chain to address the error? BACKGROUND : The App Developer has completed an Android app and delivered an unsigned APK called Foo.apk. My objective is to sign and zipalign the APK in preparation for uploading it to the Google Play store. My keystore is located at C:\Path\.keystore on a Windows machine. COMMAND LINE , my command: jarsigner

I have never set any passwords to my keystore and alias, so how are they created?

做~自己de王妃 提交于 2019-11-28 02:40:29
As I was going through some posts on the Internet learning more about signing your Android app , I got post like how to sign the app , and something about what if you have lost your keystore file or password. The question I am here to ask is that, I have never created a keystore, or its alias, or its password, so how on this earth can I forget it? I know that for Android we use the password android , so, if the password is by default android how can one forget it? (I'm sure there must be some other way to create new keystores). Finally, if android is the default password, what is the default

How to create a certificate with keytool?

五迷三道 提交于 2019-11-28 01:41:13
I've looked in 4 (yes, four) tutorials already and still don't get how to get this working. After setting a second HTTP listener configured for HTTPS in my Glassfish 4.1.1 server, I'm trying to create a certificate, so I don't get security errors in my browser. The problem is, that I just don't get keytool working proper; it just messes up and throws strange errors whatever I do. Per example, it doesn't find some of the commands that many guides recommend. I can guess that the tool changed in Java 8 or something else, I don't really know. Thing is: I want to create a certificate, export it to

IP address as hostname (CN) when creating a certificate? (HTTPS hostname wrong: should be <ipAddress>) [duplicate]

天大地大妈咪最大 提交于 2019-11-28 00:59:21
Possible Duplicate: How are SSL certificate server names resolved/Can I add alternative names using keytool? I created a certificate and set the CN to the IP address of my server which is in xxx.xxx.xxx.xxx format. But when I try to run my code in Java, I'm getting a HTTPS hostname wrong: should be <xxx.xxx.xxx.xx> error message. What could be wrong? I'm sure that I'm connecting to the correct IP address. However, I did not specify the port of the server on the certificate. Is the port required when supplying the value for CN? But I'm using the default port for https which is 8443. Also, I

keytool生成keystore

岁酱吖の 提交于 2019-11-28 00:13:18
在 密钥库 中生成 本地数字证书 :需要提供身份、加密算法、有效期等信息; keytool指令如下,产生的本地证书后缀名为: *.keystore keytool -genkeypair -keyalg RSA -keysize 1024 -sigalg SHA256withRSA -validity 365 -alias hillstone -storepass hillstone -keystore /tmp/hillstone.keystore 参数说明: -genkeypair : 产生密钥对; -keyalg : 加密算法,这里的RSA为非对称加密算法; -keysize : 密钥大小; -sigalg : 签名算法(私钥加密摘要),如:SHA256withRSA 、MD5withRSA等; -validity : 证书有效期,这里指定365天; -alias :别名 keystore : 指定密钥库的位置; -storepass : 密码,如果设置了该参数,需要在tomcat的setting设置相应的密码 来源: https://www.cnblogs.com/CoderZX/p/11382185.html

How to create a certificate chain using keytool?

我是研究僧i 提交于 2019-11-27 20:14:03
问题 I want to create certificate chain in java as follows: ca.mycompany.com |--asia.mycompany.com |--india.mycompany.com where ca.mycompany.com is a root certificate (self signed). I know this is possible with OpenSSL. But is it possible to to achieve this with keytool? If not, can I achieve this with Mozilla NSS library? 回答1: There is an example in the keytool documentation that shows how to do this: keytool -genkeypair -keystore root.jks -alias root -ext bc:c keytool -genkeypair -keystore ca

How to add certificate chain to keystore?

痴心易碎 提交于 2019-11-27 18:22:18
I have file with chain of certificates - certificate.cer: subject=/C... issuer=/C=US/O=VeriSign, Inc... -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- subject=/C=US/O=VeriSign, Inc... issuer=/C=US/O=VeriSign, Inc... -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- subject=/C=US/O=VeriSign, Inc... issuer=/C=US/O=VeriSign, Inc... -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- I need to add this chain of certificates to keystore. What I do: openssl x509 -outform der -in certificate.cer -out cert.der keytool -v -importcert -alias mykey -file cert.der -keypass <passwd