1,321 questions
1 vote
0 answers
68 views
Why does a PKCS12 truststore generated with OpenSSL (-nokeys) not work in Java, but keytool-generated one does?
I am trying to configure SSL in my Java (Thrift) client. (mTLS) I need a truststore that contains my CA certificate, so that the client can trust the server certificate. First I'm try to use openssl ...
0 votes
1 answer
84 views
keytool Unable to locate a Java Runtime
I'm trying to set a Google Auth platform client ID for Android for my Flutter application in order to use google_sign_in. For that, I need to get the SHA-1 certificate fingerprint. The command ...
0 votes
0 answers
165 views
Java Keystore Private Key validity date requirement
I am a little confused when dealing with java keystores. When I create an empty keystore like this: keytool.exe -genkeypair -keysize 4096 -alias tomcat -keyalg RSA -sigalg SHA256withRSA a validity of ...
2 votes
2 answers
645 views
DDEV mkcert -install fails or hangs when JAVA_HOME misconfigured
I'm trying to setup my local env using ddev and I'm having trouble with keytool. I've been googling around (And also asked ChatGPT) but I can't find the solution. The problem I have is that when I use ...
0 votes
0 answers
253 views
Micronaut Http Client PKIX and trustAnchors Cerificate errors
I am using Windows OS, developing in IntelliJ IDE, using JDK 22 and Micronaut. I am trying to integrate with an application that requires a custom trusted root CA certificate, and this started to ...
0 votes
0 answers
781 views
apksigner error : Failed to load signer "signer #1" java.io.IOException: Invalid keystore format
When I use this command to sign an apk file : apksigner sign --ks debug.keystore --ks-key-alias androiddebugkey MyApp.apk, and i got this error as follow: [tag:tag-name]Failed to load signer "...
1 vote
1 answer
1k views
How to convert file to keystore format
I am doing a react-native application. The issue is, the previous keystore is in .txt format. How can I change it into .keystore file? I already tried these changing the file format manually using ...
4 votes
1 answer
8k views
Unable to add certs to cacerts with eclipse-temurin JDK image
We currently use the openJDK alpine image in our Docker builds for our Java Sprint Boot applications that run in a container in a Kubernetes cluster. During the docker build we add 2 trusted certs to ...
0 votes
0 answers
59 views
How do I generate a SunEC Key?
I am trying to generate a key using the EC algorithm. I tried to do it like this... keytool -genkeypair -keystore src/test/resources/org/jgleason/auth/client-ec.p12 -storetype PKCS12 -storepass ...
2 votes
3 answers
1k views
What is the keyPassword I am supposed to use for signing a React Native project?
I have made an app project in React Native, and I want to build its apk. I am following the official documentation as shown here https://reactnative.dev/docs/signed-apk-android. It says that I must ...
0 votes
0 answers
85 views
Access password stored with keytool using PHP in a secure way?
What I gathered online is that to use/access a password that I saved using keytool, I need to do the following. Use keytool to export the private key Use openssl to convert the PKCS12 file to a PEM ...
0 votes
0 answers
531 views
How to get my APK signing certificate recognized by Android without uploading APK to PlayStore?
I want to sign an Android APK for personal/internal use, which will not be uploaded to Play Store. When I try to install my app, even if "Install from Unknown sources" is enabled Google Play ...
0 votes
1 answer
820 views
How to check certificate already installed in keystore by `Powershell`?
I want to automatically install the certificate when its not installed. I can check it manually: keytool -list -keystore $Cacerts_trustStore -alias myCertAlias But I want to use this function: #Check ...
0 votes
1 answer
2k views
How to set up an SSL certificate for Tomcat in Ubuntu
I am using https://zerossl.com for the certificate, they provide me these files: ca_bundle.crt certficate.crt private.key Then I run these commands To generate a p12 file openssl pkcs12 -export -in ...
2 votes
0 answers
86 views
Sign Flutter Application - Key Tool
Good time. I have encountered a problem in signing my application in CMD and Key Tool. After entering information such as name and password, after confirming the information and typing the word "...