Questions tagged [sslcontext]

According to IBM Knowledge Center,

The SSLContext is an engine class for an implementation of a secure socket protocol. An instance of this class acts as a factory for SSL socket factories and SSL engines. An SSLContext holds all of the state information shared across all objects created under that context. For example, session state is associated with the SSLContext when it is negotiated through the handshake protocol by sockets created by socket factories provided by the context. These cached sessions can be reused and shared by other sockets created under the same context.

Each instance is configured through its init method with the keys, certificate chains, and trusted root CA certificates that it needs to perform authentication. This configuration is provided in the form of key and trust managers. These managers provide support for the authentication and key agreement aspects of the cipher suites supported by the context.

94 questions
0
votes
0 answers

Can javax.net.ssl.SSLContext / SSLSocketFactory be stored in a static field?

Are javax.net.ssl.SSLContext and javax.net.ssl.SSLSocketFactory safe to store in a static field of the class that uses it? Can I use the one object for everything? I'm using it in a TAI in WebSphere Liberty Profile.
Westy
  • 707
  • 2
  • 10
  • 23
0
votes
1 answer

OS X Keychain access prompt on SSL handshake

I am trying to implement a socket secured with SSL in server mode. The certificate used needs to be self-signed, generated programmatically once and stored into the Keychain. For socket functionality I use CocoaAsyncSocket…
giedrius
  • 1
  • 1
0
votes
1 answer

Unable to connect to RabbitMQ server using TLSv1.2 from Java 7

I have a RabbitMQ server (RabbitMQ version 3.6.0 with Erlang OTP 18.1) which supports only TLSv1.2 and the cipher {ecdhe_ecdsa,aes_256_cbc,sha384}. I am trying to connect to it from a Java client using AMQP. The source code looks as follows: final…
0
votes
1 answer

How to enable https with org.jboss.resteasy.plugins.server.netty.NettyJaxrsServer?

I have encountered a problem when I try to set up a https server with resteasy-netty4 (http service is OK) resteasy version 3.0.16.Final java version 1.8 By searching from stackoverflow and google, I got some solutions, such as Simple Java Https…
Vincent
  • 13
  • 5
1 2 3 4 5 6
7