jsse

Setting multiple truststore on the same JVM

谁说我不能喝 提交于 2019-12-28 04:09:06
问题 I have an Java application running on a weblogic server. The application has two distinct modules which use SSL to connect to external web services - let's say module A and module B. Module A - Built on Axis - Uses truststore A Moudle B - Built on Spring-ws - Uses truststore B. Module A is existing. Module B is being introduced. I need to be able to set the truststore dynamically in the JVM based on which module is being invoked. Due to some constraints I do not have the option - to create a

Keystore type: which one to use?

℡╲_俬逩灬. 提交于 2019-12-27 16:33:10
问题 By looking at the file java.security of my JRE , I see that the keystore type to use by default is set to JKS . Here, there is a list of the keystore types that can be used. Is there a recommended keystore type? What are the pros/cons of the different keystore types? 回答1: There are a few more types than what's listed in the standard name list you've linked to. You can find more in the cryptographic providers documentation. The most common are certainly JKS (the default) and PKCS12 (for PKCS

What versions of Java will support TLS1.1

六月ゝ 毕业季﹏ 提交于 2019-12-26 08:44:51
问题 What versions of Java will support TLS1.1 I just need the exact java version and update like JDK 7uXX Reason for this question I am facing an issue connecting TLS1.1 with Java 1.7 . In most of the document I have read its supports but we have to enabled it manually. Even though its not working after enabling. While googled I Got information like it will work only with java 7u95. FYI Java JDK does not enable TLS v1.1 and TLS v1.2 by default in clients: http://docs.oracle.com/javase/7/docs

What versions of Java will support TLS1.1

纵然是瞬间 提交于 2019-12-26 08:44:30
问题 What versions of Java will support TLS1.1 I just need the exact java version and update like JDK 7uXX Reason for this question I am facing an issue connecting TLS1.1 with Java 1.7 . In most of the document I have read its supports but we have to enabled it manually. Even though its not working after enabling. While googled I Got information like it will work only with java 7u95. FYI Java JDK does not enable TLS v1.1 and TLS v1.2 by default in clients: http://docs.oracle.com/javase/7/docs

What versions of Java will support TLS1.1

不羁的心 提交于 2019-12-26 08:44:09
问题 What versions of Java will support TLS1.1 I just need the exact java version and update like JDK 7uXX Reason for this question I am facing an issue connecting TLS1.1 with Java 1.7 . In most of the document I have read its supports but we have to enabled it manually. Even though its not working after enabling. While googled I Got information like it will work only with java 7u95. FYI Java JDK does not enable TLS v1.1 and TLS v1.2 by default in clients: http://docs.oracle.com/javase/7/docs

Does JSSE use a certificate in a PrivateKeyEntry as a trust anchor?

跟風遠走 提交于 2019-12-25 06:44:49
问题 If a key store containing one or more PrivateKeyEntry is specified as a trust store, will JSSE create a trust anchor from the end-entity certificate in each of those entries? In other words, is it enough to have a certificate under a PrivateKeyEntry if we have one keystore with both trusted and private entries? Or, must we also add that certificate as a TrustedCertificateEntry ? 回答1: It doesn't matter where certificate placed either under PrivateKeyEntry or under trustedCertEntry , JVM trusts

Fine grain X509 certificate checks and TrustManagerFactory initialization

我与影子孤独终老i 提交于 2019-12-24 07:13:03
问题 I am trying to configure a https client in my android application that would perform fine grain checking on the certificate chain received from server. More precisely I would like to check : if the chain contains a given CA certificate (custom CA) the value of the common name and the organization name of the end-of-chain certificate I though this could be done by initializing a TrustManagerFactory with properly constructed CertPathTrustManagerParameters but the 2nd line of this code snippet:

Getting this error: “javax.net.ssl.SSLHandshakeException: no cipher suites in common”

本小妞迷上赌 提交于 2019-12-23 01:46:16
问题 I have a client written in C# and server in JAVA. So, when I'm trying to connect I got error in server javax.net.ssl.SSLHandshakeException: no cipher suites in common and in C# "EOF or 0 bytes". [C#]: TcpClient tc = new TcpClient(server, 1337); using (sslStream = new SslStream(tc.GetStream())){ } [JAVA]: SSLServerSocketFactory ssocketFactory = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault(); SSLServerSocket server = (SSLServerSocket) ssocketFactory.createServerSocket(1337);

Java not sending client certificate

断了今生、忘了曾经 提交于 2019-12-22 08:04:13
问题 I'm using HttpClient 4.2.3 on Java 1.7 to connect to a remote server hosted by nginx. My organization uses PKI extensively, and both the remote and the client have certificates issued by a common CA. The server has a signing chain like the following: CN=Server 123, OU=Servers, OU=My Division, O=My Org, C=US CN=My Division CA, OU=My Division, O=My Org, C=US CN=My Org CA, O=My Org, C=US And the client has a signing chain like the following: CN=Client 456, OU=Servers, OU=My Division, O=My Org, C

Solutions to sign certificates

穿精又带淫゛_ 提交于 2019-12-20 05:53:28
问题 For a system with multiple application servers and multiple clients, I would like to introduce mutual authentication as well as other security protections provided by TLS. The servers and clients may be located on different networks as well as on the same network. Each entity (client or server) has its own keystore that stores its private/public key pair and a X.509 certificate that wraps the public key. But, at this point, the certificate is self-signed. So, it will not be verified by the