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
8
votes
2 answers

SSL Context for older python version

I have a code as below : headers = {'content-type': 'ContentType.APPLICATION_XML'} uri = "www.client.url.com/hit-here/" clientCert = "path/to/cert/abc.crt" clientKey = "path/to/key/abc.key" PROTOCOL = ssl.PROTOCOL_TLSv1 context =…
NoobEditor
  • 15,563
  • 19
  • 81
  • 112
7
votes
1 answer

javax.net.ssl.SSLContext to io.netty.handler.ssl.SslContext

How should one convert javax.net.ssl.SSLContext to io.netty.handler.ssl.SslContext ? I have access to SSLContext but need to set SSlContext in my client library.
josh
  • 13,793
  • 12
  • 49
  • 58
6
votes
2 answers

NiFi bypass host name verification in SSL context service

I am trying to connect to a REST endpoint via the GetHTTP Processor in NiFi 1.5.0. The problem that I am faceing is, that the SSL certificate is issued to the domain but I only have direct access to the IP:Port address (company firewall). With that…
Letimogo
  • 542
  • 3
  • 13
5
votes
1 answer

How to set cipher suites with javax.net.ssl.SSLContext

In a spring boot application using java8, I am setting the underlying SSLConext of an httpClient connection as follows: import javax.net.ssl.SSLContext; SSLContext sslContext = SSLContext.getInstance("TLSv1.2"); sslContext.init(null, null,…
Ray S
  • 569
  • 1
  • 8
  • 18
4
votes
1 answer

Use hardware-backed keys in SSLContext

I'd like to use hardware backed keys for client-side mutual TLS on my Android. The key should be unlocked with biometrics. I have found how to generate hardware-backed keypairs on Android: KeyPairGenerator keyGenerator =…
4
votes
0 answers

python secure websocket with SSLContext not working

I made use websockets to get a websocket server. which is working perfectly fine. But now I want to use a secure connection using wss. here it says you can set the ssl keyword argument to a SSLContext to enable TLS. and that is what I have…
user2071938
  • 2,055
  • 6
  • 28
  • 60
4
votes
0 answers

How to check SSL certificates expiration dates loaded into the context in java

I would like to make REST web service that check the expiration date of the certificate SSL when my java application is running. Is it possible check the expiration date of the certificate loaded into the application context at runtime ? Thanks
Stefano
  • 1,439
  • 4
  • 23
  • 38
3
votes
1 answer

Cloudscraper returns AttributeError: 'SSLContext' object has no attribute 'orig_wrap_socket'

import cloudscraper import requests scraper = cloudscraper.create_scraper() # returns a CloudScraper instance # Or: scraper = cloudscraper.CloudScraper() # CloudScraper inherits from requests.Session print…
Rivered
  • 741
  • 7
  • 27
3
votes
1 answer

How to get the client's certificate in jetty server when doing authentication

After set an embedded Jetty server that requests client authentication by setting SslContextFactory.setNeedClientAuth(true), how can I get the client's certificate information when a client connect to jetty server for both cases, the authentication…
siaodi
  • 33
  • 5
3
votes
3 answers

javax.mail - force IMAP to use TLS1.2+ - "Received fatal alert: protocol_version"

I have problem with my app for reading mails over IMAP. App reads multiple imap accounts. App can connect to all servers except one that require to use TLS1.2 or TLS1.3. I have this code: System.out.println("SSLContext getProtocols(): " +…
martin
  • 1,707
  • 6
  • 34
  • 62
3
votes
1 answer

Getting Spring RestTemplate to use an in-memory pem cert (not on disk)

My Java/Spring program connects to Vault using a RestTemplate. My company's Operations team has a plan to provide a pem CA certificate to the application using an environment variable ($VAULT_CACERT). The Java program is not allowed to change any…
Mike W
  • 175
  • 1
  • 1
  • 6
3
votes
2 answers

SSLContextImpl is not initialized

Below are my configurations java version "1.8.0_101" Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode) Using Apache httpclient v4.4 to call the Restful service, The service URL has…
Shantanoo K
  • 765
  • 5
  • 15
  • 43
2
votes
0 answers

Ruby on Rails SMTP Settings 550 Sender verify failed

When sending my e-mail I get 550 Sender verify failed (Net::SMTPFatalError) This is what my smtp_setting looks like: config.action_mailer.delivery_method = :smtp config.action_mailer.default_url_options = { host: 'MIIP' } …
faa_q
  • 21
  • 1
2
votes
1 answer

build io.netty.handler.ssl.SslContext with just a .key and a .crt

I have a question regarding how to build a Netty io.netty.handler.ssl.SslContext with just a .key (dot key) file and a .crt (dot crt) file. To emphasize, I am looking for help to build a io.netty.handler.ssl.SslContext, not…
PatPanda
  • 3,644
  • 9
  • 58
  • 154
2
votes
2 answers

SSLHandshakeException: Received fatal alert: access_denied

Getting sslhandshake exception with access denied error while invoking a GET call using spring boot Rest Template. I am developing a java client to GET metrics from prometheus server. Creating a RestTemplate with basic authentication and sslContext…
1
2 3 4 5 6 7