Import certificate as PrivateKeyEntry

You try to add certificate and expect that it will be private key – its confusion between two different things. Generally, when you create keystore (.jks) it include the private key inside. If its empty (deleted) you should generate bundle (.p12 file) from your key and certificates. In order to create new free key and … Read more

Does Java support Let’s Encrypt certificates?

[Update 2016-06-08: According to https://bugs.openjdk.java.net/browse/JDK-8154757 the IdenTrust CA will be included in Oracle Java 8u101.] [Update 2016-08-05: Java 8u101 has been released and does indeed include the IdenTrust CA: release notes] Does Java support Let’s Encrypt certificates? Yes. The Let’s Encrypt certificate is just a regular public key certificate. Java supports it (according to Let’s … Read more

How to handle a lost KeyStore password in Android?

Just encountered this problem myself – luckily I was able to find the password in some Gradle’s temporary file. Just in case anyone lands here: try looking for this file ..Project\.gradle\2.4\taskArtifacts\taskArtifacts.bin or .gradle/3.5/taskHistory/taskHistory.bin .gradle/5.1.1/executionHistory/executionHistory.bin .gradle/caches/5.1.1/executionHistory/executionHistory.bin .gradle/5.1.1/executionHistory/executionHistory.bin .gradle/3.5/taskHistory/taskHistory.bin .gradle/2.10/taskArtifacts/taskArtifacts.bin and search for storePassword It was there in cleartext. In general, if you do remember at least … Read more