keystore

Microsoft RSA CSP key size

坚强是说给别人听的谎言 提交于 2019-12-11 02:49:46
问题 From what I can see, Microsoft's RSA CSP always generates identical bitlength pseudo prime numbers. So if the key size is 1024, the P and Q values seem to be (?) guaranteed to be 512 bits each? Does anyone know for sure if this, in fact, is the case? I'm building an interoperability module between my own RSA implementation and Microsoft's. In my case I have built in a small random variance between P & Q values so for 1024 bit key I could end up with one value being 506 bits and the other 518.

KeyStore, HttpClient, and HTTPS: Can someone explain this code to me?

跟風遠走 提交于 2019-12-11 02:09:33
问题 I'm trying to understand what's going on in this code. KeyStore trustStore = KeyStore.getInstance(KeyStore.getDefaultType()); FileInputStream instream = new FileInputStream(new File("my.keystore")); try { trustStore.load(instream, "nopassword".toCharArray()); } finally { instream.close(); } SSLSocketFactory socketFactory = new SSLSocketFactory(trustStore); Scheme sch = new Scheme("https", socketFactory, 443); httpclient.getConnectionManager().getSchemeRegistry().register(sch); My Questions:

How to create keystore with myserver.key after receiving crt from Certificate Authority

为君一笑 提交于 2019-12-11 02:05:32
问题 I created a private key and csr file with the following command openssl req -nodes -newkey rsa:2048 -sha1 -keyout myserver.key -out server.csr The two files outputted are myserver.key server.csr I uploaded the server.csr file to Network Solutions and got back 4 "crt" files. AddTrustExternalCARoot.crt OV_NetworkSolutionsOVServerCA2.crt OV_USERTrustRSACertificationAuthority.crt STAR.{mydomain}.CA.CRT How can I create a keystore out of the files I have and configure it in Tomcat 7 in the server

Make SSL client call in Tomcat using Tomcat's keystore

妖精的绣舞 提交于 2019-12-11 01:05:39
问题 I have a web app running in Tomcat that is making a web service call to another system. I need to secure this call with SSL and client authentication. The Tomcat I'm hosted in is already properly configured with a truststore and keystore specific to the environment, so I need to use those stores to secure my own call. This is where I'm stuck. How can I locate the keystore and truststore that Tomcat is configured with to make my own SSL call? Or better, generate a properly configured

Trying to rename a package in Android Studio but says file (com) already exists

删除回忆录丶 提交于 2019-12-10 23:44:03
问题 I created a new app in Android Studio, everything went fine, I created a signed apk, but I have an old app on Play Store published, I managed to locate the key.keystore for that old app, which i originally did in Eclipse two years ago, so after opening my old apk in Keystore Explorer, I was able to remember my old store password, alias and key password, so I went back into Android Studio, clicked Generate New Signed apk, I selected my old keystore path, filled in the info (store password,

Is it possible to import all contents of cacerts into a jssecacerts file?

橙三吉。 提交于 2019-12-10 21:35:57
问题 Using keytool , or some other method, is there an easy way to import all contents of cacerts into a jssecacerts file? Basically, I want to define my own jssecacerts but I want that jssecacerts to also contain all the trusted entries of the cacerts file. The reason for this is that I believe that when the jssecacerts file exists, the cacerts file contents are ignored. 回答1: I figured it out: %JRE_HOME%\bin\keytool.exe -importkeystore -destkeystore jssecacerts -deststoretype jks -srcstorepass

Export secret key from jck key store

主宰稳场 提交于 2019-12-10 21:19:06
问题 We have a jck keystore (jceks) format containing a secret key. It was generated using keytool command keytool -genseckey -alias mykey -keyalg AES -keysize 256 -storetype jceks -keystore mykeystore.jks We need to share this with another application and they seem to have limitations in working with jck store. They are asking for the key to be exported and supplied to them. We tried a few tools, but are not able to export the secret key. Is there a command or workaround to achieve this ? 回答1:

How to view and edit cacerts file?

别来无恙 提交于 2019-12-10 12:49:33
问题 Using RAD 8.5 with WAS 8.5 runtime, I am getting an exception on my console: The keystore located at "C:\IBM\Websphere85\jdk\jre\lib\security\cacerts" failed to load due to the following error: DerInputStream.getLength(): lengthTag=109, too big.. After searching for the error I got this link which suggests to edit the file and remove blank lines/extra characters. How do I edit the file? I am on windows environment and the file seems to be base64 encoded. 回答1: Here's a way to actually solve

KeyStore with BouncyCastleProvider: KeyStore integrity check failed

只谈情不闲聊 提交于 2019-12-10 12:41:46
问题 I want to use a self-signed signature for ssl connections. I'm following this post. My problem: After creating the Keystore my integrity-check fails. Keytool-Error: java.io.IOException: KeyStore integrity check failed. I'm still searching but maybe someone can save me some time. 回答1: Make sure you are using the right password to open the keystore. I was having this error and turns out I was still using the password from the example code in trusted.load() 回答2: I had the same problem where I

Keystore was tampered with or password was incorrect - on App already on Google Play

巧了我就是萌 提交于 2019-12-10 12:16:40
问题 I am trying to sign an app using the manual method found here http://developer.android.com/tools/publishing/app-signing.html#signing-manually Our previous external developers have sent me three keystore files that I need for this (not sure why they would require three??). When going through the process of trying to sign my app I am prompted with a keystore password which I do not know (I'm trying to get this from them). Is it possible for me to change this myself? I have the three keystore