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
2
votes
1 answer

How do I make sure that the client is using (or able to use) TLS v1.2 while visiting some pages of an application?

I am working on a credit card support module on a Java-based Web application, for security, we want to have the users use TLS v1.2 supported browsers while viewing the credit card pages How do I make sure they are compatible? Note: We don't want…
Kashif Ibrahim
  • 183
  • 1
  • 8
2
votes
2 answers

CloseableHttpClient doesn't use sslcontext

I use PoolingHttpClientconnectionManager and i need specific sslcontext on each request. By default CloseableHttpClient use manager's sslcontext, but i need sslcontext from .setSSLContext(context). How resolve this problem? I need connection pool…
Shirvan
  • 33
  • 4
2
votes
1 answer

CFStream with TLS

Is it possible to communicate on a CFStream with TLS 1.2? If yes, what is the best way? Setting a SSLContext or setting the CFReadStreamSetProperty? Unfortunately I cannot find any example for this.
Lupurus
  • 3,618
  • 2
  • 29
  • 59
2
votes
1 answer

How to get the ssl_version of a Ruby SSLContext object

I am working on OpenSSL's SSLContext right now and created a Ruby OpenSSL object like this: 0> ssl_object = OpenSSL::SSL::SSLContext.new("TLSv1_2_client") => # which created an instance of the SSLContext object.…
theGreenCabbage
  • 5,197
  • 19
  • 79
  • 169
2
votes
2 answers

Is there any way to use SSLContext with ServerSocketChannel?

I have an application which I need to use ServerSocketChannel and SocketChannel within, but SSLContext gives me ServerSocketFactory which gives ServerSocket and accepts connections in Sockets.Any solutions? Thanks
Alireza Mohamadi
  • 751
  • 1
  • 6
  • 22
1
vote
0 answers

Specify SNI server_hostname when performing request with asyncio/aiohttp

Hello fellow developers ! I'm stuck in a corner case and I'm starting to be out of hairs to pull... Here is the plot : load-balancer.example.com:443 (TCP passthrough) /\ / \ …
AsyncBrain
  • 11
  • 3
1
vote
0 answers

Java SSLContext setup not working, SunCertPathBuilderException

I have a working stunnel setup and am trying to use the same pem file containing the client certificate and client key and the server trust X509Certificate in a .crt file. I consistently get this exception when it tries to write the first heartbeat…
Olddave
  • 397
  • 1
  • 2
  • 12
1
vote
1 answer

Error setting custom trust store for Eureka Discovery client by overriding DiscoveryClient.DiscoveryClientOptionalArgs

I am upgrading a spring-boot project from an old version (2.2.9.RELEASE + Spring Cloud HOXTON.SR12) to v2.6.1 + Spring Cloud 2021.0.0 The issue I am currently hitting is with Trust Store enabled Eureka clients. In my old version, all eureka…
nick_j_white
  • 534
  • 6
  • 27
1
vote
2 answers

Conversion of SSLContext from Java to Kotlin

I was trying to replicate this process of self-signed certificate process (link: https://www.baeldung.com/okhttp-self-signed-cert) in an android app that is using Kotlin. The problem is the implementation in the link I've provided is in Java and I…
Reb
  • 13
  • 2
1
vote
0 answers

"Remote host terminated the handshake" SSL error when connecting to local TCP server

I'm running a local TCP server in C++ on Windows via OpenSSL and Windows sockets. I'm running the client in Java using SSL sockets. For most users this setup is working, however, some users run into the following Java exception upon attempting the…
BullyWiiPlaza
  • 17,329
  • 10
  • 113
  • 185
1
vote
2 answers

How to force java SSLContext to use TLSv1.1

How do I get a jersey client to use TLSv1.1? I'm trying to force a com.sun.jersey.client.urlconnection.HTTPSProperties (jersey client code eventually goes to this class) to use TLSv1.1 (or TLSv1) to write test code that confirms a server's…
1
vote
1 answer

Initializing SSLContext with KeyManager and TrustManager as null is harmful? Does it still do sslhandshakes?

I am very new to work in SSL Certificates, in java. By default java8 does TLSv1.2, but for some reasons, the app that i work on needs to set SSLcontext to TLSv1.2 explicitly. Here i found a steps clear. But it requires an array of KeyManager and…
Jalandar R
  • 11
  • 3
1
vote
1 answer

Configure Spring Boot's with custom SSLContext programmatically (for mTLS)

Problem Programmatically configure Spring Boot's to use my custom SSLContext. And use for mTLS. Context Spring's documentation provides only one, clear way how to configure SSL (via…
Mr.Robot
  • 397
  • 8
  • 21
1
vote
1 answer

Can we use same webclient for diff ssl contexts?

I have a need to call different services with different ssl contexts. Do I need to use diff webclients for this or is there a way I can use just one?
1
vote
0 answers

Use two different custom KeyStore in Scala

I'm developing an application in Scala language having 2 interfaces. For the first the app behavies as a server, for the second one behavies as a client. I want HTTPS secure connection (mutual authentication) in both sides. Now, I've tried to split…
Riccardo Califano
  • 1,317
  • 3
  • 10
  • 19