keytool

javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present

给你一囗甜甜゛ 提交于 2019-12-19 04:36:25
问题 Basically, I have a Test server (Linux based) with a public IP bot no public hostname. So I am trying to create ssl certificates for it using IP address. So that my Java application can access another application using the IP address: For example like: https://210.10.10.10:8443/abc I followed below post: How are SSL certificate server names resolved/Can I add alternative names using keytool? I did try both the ways as suggested to avoid this exception but non is working. I am getting the same

javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present

若如初见. 提交于 2019-12-19 04:36:01
问题 Basically, I have a Test server (Linux based) with a public IP bot no public hostname. So I am trying to create ssl certificates for it using IP address. So that my Java application can access another application using the IP address: For example like: https://210.10.10.10:8443/abc I followed below post: How are SSL certificate server names resolved/Can I add alternative names using keytool? I did try both the ways as suggested to avoid this exception but non is working. I am getting the same

Keystore does not work on Java 9

前提是你 提交于 2019-12-19 03:36:35
问题 I've converted a JKS keystore to the P12 format using portecle, but it probably didn't go well. The keystore works with Java 8 (various versions), but with Java 9 (OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode), I'm getting java.io.IOException: Invalid keystore format at sun.security.provider.JavaKeyStore.engineLoad(java.base@9-internal/JavaKeyStore.java:659) at sun.security.util.KeyStoreDelegator.engineLoad(java.base@9-internal/KeyStoreDelegator.java

Problem running my signed, release keystore in Eclipse

本秂侑毒 提交于 2019-12-18 19:21:30
问题 I am unable to run my signed, release keystore in Eclipse: I get the error: Keystore was tampered with, or password was incorrect How can I resolve this? Here is the error: Here is me successfully signing the keystore: 回答1: In Windows->Preferences->Android->Build you can just change your DEBUG KEYSTORE. The Keystore you specify there, is not for signing an app for release, but just for debugging. Like the default debug keystore, the custom debug keystore needs to have the following: Keystore

Imported certificate to Java keystore, JVM ignores the new cert

故事扮演 提交于 2019-12-18 12:13:36
问题 I'm trying to get an application running on top of Tomcat 6 to connect to an LDAP server over SSL. I imported certificate of the server to keystore using: C:\Program Files\Java\jdk1.6.0_32\jre\lib\security>keytool -importcert -trustcacerts -file mycert -alias ca_alias -keystore "c:\Program Files\Java\jdk1.6.0_32\jre\lib\security\cacerts" When I start Tomcat with SSL debugging turned on, according to logs Tomcat is using the correct certificate file: trustStore is: C:\Program Files\Java\jdk1.6

Keytool's -storepass vs. -keypass — Why 2 passwords?

谁说胖子不能爱 提交于 2019-12-18 12:13:20
问题 I understand that the -keypass option is for "the password for the key" and that the -storepass option is for "a password for the keystore". I don't understand, however, why two passwords are needed. What scenarios are there for requiring 2 passwords: One for the store (file, in my case) and one for the key. 回答1: This is due to how Java handles keystores so it's not an Android specific issue. The reason though is because access to a store such as adding/viewing trust relationships is a

TOMCAT SSL Error: Alias name does not identify a key entry

爱⌒轻易说出口 提交于 2019-12-18 12:09:14
问题 I am trying to configure Tomcat 6 using SSL with a certificate provided to us (by someone). My SSL experience only spans a few days, but I still have to configure the darn thing. I was provided a certificate (downloaded from IE) in DER format. Next I created a keystore: keytool -import -alias btIEgen -file MyCompany.der -keystore b2b.keystore Say I used "password" for password I configured this in Tomcat's server.xml in the SSL section: <Connector port="8443" protocol="HTTP/1.1" SSLEnabled=

Adding certificate to keystore using java code

流过昼夜 提交于 2019-12-18 10:16:24
问题 I'm trying to establish a https connection using the server's .cer certificate file. I am able to manually get the certificate file using a browser and put it into the keystore using keytool. I can then access the keystore using java code, obtain the certificate i added to the keystore and connect to the server. I now however want to implement even the process of getting the certificate file and adding it to my keystore using java code and without using keytool or browser to get certificate.

keytool -genkey runs in a loop to generate .keystore file

空扰寡人 提交于 2019-12-18 08:26:02
问题 I invoked this on cmd: keytool -genpair -v - keystore myrelease.keystore -keyalg RSA - keysize 2048 -validity 1000 The tool runs, asks the questions, and then loops again to the questions. It doesn´t generate the .keystore. Please help. I can´t pass that loop to generate my .keystore. I´ve given all permisions to java/bin folder, also changed the folder to C:/ but still runs in a loop after the last question. I type "y" and "yes" to confirm the .keystore creation but doesn´t generate one.

“Wrong version of key store” error. How can I create a version=1 keystore certificate?

此生再无相见时 提交于 2019-12-18 04:54:07
问题 I am having trouble using SSL, as I am getting the following error related to my keystore (self-created and self-signed using keytool per: http://developer.android.com/tools/publishing/app-signing.html): 08-14 20:55:23.044: W/System.err(5430): java.io.IOException: Wrong version of key store. 08-14 20:55:23.060: W/System.err(5430): at org.bouncycastle.jce.provider.JDKKeyStore.engineLoad(JDKKeyStore.java:812) ... The error thrown in the JDKKeyStore.java class arises in the following code: