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
3 answers

Python Requests and SSLContext

I'm trying to figure out how to specify an SSLContext with Request. I have two functions which in theory should do the same, however the one with Requests doesn't work. def func_OK(token): ctx =…
user5023028
  • 35
  • 1
  • 6
0
votes
1 answer

Java use SSLContext for HttpsURLConnection

Looking for an example to open HttpsURLConnection with SSLContext and restricted to TLSv1.2. The context is built using trust store and trust key and after I added the custom() call - the TLS setting seem to be changed to just "TLS" vs. "TLSv1.2" my…
0
votes
1 answer

The matching wildcard is strict, but no declaration can be found for element 'http:conduit'

Basically I want to set useHttpsURLConnectionDefaultSslSocketFactory(tlsClientParameters) to true to use HttpsURLConnection.setDefaultSSLSocketFactory to pass the custom truststore manager. For this reason, I'm having configuration in spring context…
0
votes
1 answer

How to create SSLContext from either of PEM/PKCS7/DER and private key?

I need to create a SSLContext for a Cloudflare Origin Certificate. A certificate and private key are provided. The certificate is provided in the following formats: PEM PKCS#7 DER The private key is provided in a single format, whose name is not…
spongebob
  • 8,370
  • 15
  • 50
  • 83
0
votes
0 answers

Adding SSLContext in CloseableHttpAsyncClient at Runtime

We have a generic application which delivers message to different POST endpoints. And we are using CloseableHttpAsyncClient for this purpose. Its been built/initialized as follows, private static CloseableHttpAsyncClient get() { …
sakura
  • 2,249
  • 2
  • 26
  • 39
0
votes
1 answer

How to retrieve keyManager details from SSLContext?

I would like to retrieve credentialMap belongs to keyManager from sslContext object. public static void main(String[] args) throws UnrecoverableKeyException, CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException,…
Swadeep Mohanty
  • 269
  • 1
  • 3
  • 13
0
votes
1 answer

How to store KeyStore for 2 different domains

I would like to store keystore for 2 different domains programatically. Below is the code to load keystore for domain A. I would like to do it for domain B. Both Keystore would be used in the same application. public static SSLContext…
Sarav
  • 245
  • 3
  • 12
0
votes
1 answer

Reuse SSLContext object in AWS Lambda Environment

I have a JAVA 8 AWS lambda function that has some pretty expensive setup when the container is first spun up. It must make calls to pull various credentials/cacerts. I would like to cache this set up (the output of which is an SSLContext object…
user8072194
0
votes
1 answer

Java UR-anomaly and DR-anomaly from pmd:DataflowAnomalyAnalysis sslContext

I would like some help understanding why am I getting both a UR-anomaly and DR-anomaly from pmd:DataflowAnomalyAnalysis when I am running SonarQube on a code trying to construct a Netty SslContext. The code works perfectly fine, but I am getting…
PatPanda
  • 3,644
  • 9
  • 58
  • 154
0
votes
0 answers

Java SSL exception with default SSLContext

Diving right into the code, here is a method I am using to create an SSLContext private static SSLContext createContext(String keystore_path, String truststore_path, String password) throws Exception { final KeyStore key_store =…
MarkoPaulo
  • 474
  • 4
  • 19
0
votes
0 answers

How to add signature algorithm from one provider to another provider used during SSL handshake in JAVA

As i am trying to add support for RSASSA-PSS algorithm for SSL handshake. This algorithm is provided by SunRsaSign provider, whereas same algorithm is missing in SunJSSE provider which is used as default provider during SSL handshake in Java…
0
votes
1 answer

How can I access a signer certificate from a java app in Websphere in order to load TrustMaterial into an SSLContext?

I want to create an HttpClient with a TrustStore that includes our signer certificate from the WebSphere NodeDefaultTrustStore. To do that have to either: get the certificate and create a TrustStore to load into a custom SSLContext using the…
0
votes
1 answer

Java 8 cannot force TLS for sslcontext creation?

I'd like to use TLS/TLSv1.2 for an ssl context: SSLContext context = SSLContext.getInstance("TLSv1.2"); context.init(new KeyManager[] { km }, new TrustManager[] { new MyTrustStore(keyStore) }, new SecureRandom()); System.out.println("PROTOCOL:…
breakline
  • 5,776
  • 8
  • 45
  • 84
0
votes
1 answer

Akka-HTTP server HTTPS Support

I found myself struggling to enable https support for our akka-http java application. The documentation page (https://doc.akka.io/docs/akka-http/current/server-side/server-https-support.html) should be helping, but for some reason in my case it does…
archie_by
  • 1,623
  • 2
  • 11
  • 10
0
votes
1 answer

error " svn:SSLv3 SSLContext not available on RAD 7.5

I am getting the error " SVN: SSLv3 SSLContext not available SVN: OPTIONS request failed on ('SVN URL') while trying to connect to SVN repository through RAD 7.5. I am using web sphere 7.0. I am able to remote desktop to the server and also can…
Preethi
  • 13
  • 1
  • 4