keystore

Cannot generate key in Android keystore

余生颓废 提交于 2019-11-30 12:17:26
问题 We are currently experiencing an issue where sometimes when a user installes our app, the app tries to access and generate a key in the keystore but the keystore throws this exception: Caused by: java.lang.IllegalStateException: could not generate key in keystore at android.security.AndroidKeyPairGenerator.generateKeyPair(AndroidKeyPairGenerator.java:100) at java.security.KeyPairGenerator$KeyPairGeneratorImpl.generateKeyPair(KeyPairGenerator.java:275) We think it has to do with the unlock

cannot find keytool on a mac

匆匆过客 提交于 2019-11-30 11:49:26
I am trying to find my keytool so that I can make keys to sign my app and to register for the google maps api I'm beginning to think that I don't actually have it on my machine If anyone could help point me in the right direction that would be great If you are using Eclipse under Mac OS X you just need to Select File -> Export -> select Android -> Export Android Application -> click next -> select your project -> click next -> here you just chose Create new keystore Reefwing To answer the original question, on my Mac, keytool is found at /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk

Android 9 - KeyStore exception android.os.ServiceSpecificException

烈酒焚心 提交于 2019-11-30 10:48:30
问题 If I run this code on Android 9, I receive the follow exception: private static KeyStore.PrivateKeyEntry getPrivateKeyEntry(String alias) { try { KeyStore ks = KeyStore .getInstance(SecurityConstants.KEYSTORE_PROVIDER_ANDROID_KEYSTORE); ks.load(null); KeyStore.Entry entry = ks.getEntry(alias, null); if (entry == null) { Log.w(TAG, "No key found under alias: " + alias); Log.w(TAG, "Exiting signData()..."); return null; } if (!(entry instanceof KeyStore.PrivateKeyEntry)) { Log.w(TAG, "Not an

Document databases/Key-value stores for use with .Net projects [closed]

Deadly 提交于 2019-11-30 10:12:09
Are there any document databases and/or key-value stores (something like Project Voldemort, MongoDB, etc.) that work well with .Net projects? Most of the options I've looked at so far seem to be more geared towards the non-Microsoft/Java/open-source technologies and I was wondering if anyone had any experience/recommendations with such solutions for the Microsoft stack. ShuggyCoUk CouchDB is well regarded and accessible via .Net albeit not that pleasant to install on windows still. Thrift api compatible servers like cassandra will talk .Net Tokyo Cabinet can be simply accessed by the

Connecting to SoftHSM java

半城伤御伤魂 提交于 2019-11-30 09:35:14
Code: String pkcs11cfg = "pkcs11.cfg"; Provider p = new SunPKCS11(pkcs11cfg); Security.addProvider(p); KeyStore ks = KeyStore.getInstance("PKCS11", p); ks.load(null, pin); System.out.println(ks.size()); // prints 0 cfg: name = pkcs11Test library = /usr/local/lib/libsofthsm.so slot = 1 The problem is that I have some key pairs, I added them with pkcs11-tool. The version of softhsm is 1.2.1 Why there aren't any aliases in the KeyStore? How to fix this? We will release SoftHSM 1.3.0 soon. It has support for certificates and is tested with Java. SoftHSM.java: import java.io.*; import java.math.*;

The Webserver I talk to updated its SSL cert and now my app can't talk to it

允我心安 提交于 2019-11-30 09:06:55
问题 The webserver updated its SSL cert to a new verisign signed cert and my java app can no longer connect. I am using java 5 with a date on the cert file Nov 2006 in /usr/java/jre/lib/security I get javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150) at

Where does Eclipse hide the keystore?

柔情痞子 提交于 2019-11-30 08:33:42
I'm surprisingly frustrated by this, and I suspect the answer is simple. I have compiled and signed my android app using the Export Wizard, as described here in the section 'Compile and sign with Eclipse ADT'. I would like to backup the keystore and have it handy for future app updates, but I can't figure out for the life of me where the keystore is saved. I of course can use Eclipse to go through the process, but if something happens to my computer I'll be pretty screwed. Does anyone know where it is stored? It doesn't hide it. One of the first steps of the export (where you create or use

I'm having trouble getting SHA1 certificate with keytool

江枫思渺然 提交于 2019-11-30 08:27:50
I'm trying to find the SHA1 hash of my signature key store on macos sierra using the following comand: keytool -exportcert -alias androiddebugkey -keystore $HOME/.android/debug.keystore -list -v -storepass android The result looks like below: Alias ​​name: androiddebugkey Date of creation: Oct 25, 2017 Input Type: PrivateKeyEntry Length of certificate chain: 1 Certificate [1]: keytool error: java.util.IllegalFormatConversionException: d != java.lang.String java.util.IllegalFormatConversionException: d != java.lang.String at java.base/java.util.Formatter$FormatSpecifier.failConversion(Formatter

JMeter 4 - can't execute jmeter-server in windows 7

懵懂的女人 提交于 2019-11-30 08:12:36
问题 I download latest JMeter 4, As part of Remote Testing To run JMeter in remote node, start the JMeter server component on all machines you wish to run on by running the JMETER_HOME/bin/jmeter-server (unix) or JMETER_HOME/bin/jmeter-server.bat (windows) script. I try to execute jmeter-server.bat in windows 7 and got the following error: Server failed to start: java.rmi.server.ExportException: Listen failed on port: 0; nested exception is: java.io.FileNotFoundException: rmi_keystore.jks (The

Tomcat HTTPS keystore certificate

∥☆過路亽.° 提交于 2019-11-30 06:45:04
Ran into another problem using SSL and Tomcat: I've configured a keystore which contains a key and a certificate (the server certificate I wish to present to the clients connecting to the site). I've done the same for the truststore (I'm going to need client authentication). The problem I have now is that when I connect to my Tomcat instance via HTTPS, the certificate presented to me (the server certificate) is not my actual server certificate, but rather the key in the JKS keystore. Using -Djavax.net.debug=ssl reveals that it's presenting the correct CA for client authentication, but not the