HTTPS connection using tls1.2 in Java 6

environment

--Java 6 (old ...)

TLS1.2 Encrypted communication protocol with no confirmed vulnerabilities

It is also used for HTTPS communication. Vulnerabilities have been found in SSL3.0, TLS1.0, and TLS1.1. Since the protocol used for HTTPS communication can be limited, if the other party limits it to TLS1.2, this must also be supported.

Java 6 The free version has not been upgraded, so it is not supported ...

trial and error

When I googled, I found an article trying to do something similar on stackoverflow. I organized it myself and posted it on github. (Required bouncy castle)

https://github.com/a--i--r/TLSSocketFactory

TLSSocketFactory

Communication using HttpsURLConnection will be compatible with TLS1.2. I would be grateful if you could use it to support old programs.

Recommended Posts

HTTPS connection using tls1.2 in Java 6
Check https connection in Java
Try using RocksDB in Java
Encrypt using RSA cryptography in Java
I tried using JWT in Java
I tried using Elasticsearch API in Java
Try using the Stream API in Java
Map without using an array in java
Using JavaScript from Java in Rhino 2021 version
ERRORCODE = -4471 occurs in Java application using Db2.
Try using JSON format API in Java
Read Felica using RC-S380 (PaSoRi) in Java
Partization in Java
Rock-paper-scissors in Java
Pi in Java
FizzBuzz in Java
ChatWork4j for using the ChatWork API in Java
[Java] API creation using Jerjey (Jax-rs) in eclipse
Send email using Amazon SES SMTP in Java
Send push notifications using Notification Hubs in Java
Try using Sourcetrail (win version) in Java code
Try using GCP's Cloud Vision API in Java
Try using Sourcetrail (macOS version) in Java code
Match IP addresses using regular expressions in Java
Display "Hello World" in the browser using Java
Display "Hello World" in the browser using Java
Try using the COTOHA API parsing in Java
NLP4J [001b] Morphological analysis in Java (using kuromoji)
[java] sort in list
Read JSON in Java
Sorting using java comparator
Interpreter implementation in Java
Make Blackjack in Java
Convert JSON and YAML in Java (using Jackson and SnakeYAML)
I tried using a database connection in Android development
Rock-paper-scissors app in Java
Constraint programming in Java
Put java8 in centos7
JAVA DB connection method
NVL-ish guy in Java
Combine arrays in Java
"Hello World" in Java
Callable Interface in Java
I tried using Google Cloud Vision API in Java
Azure functions in java
Simple htmlspecialchars in Java
Scraping practice using Java ②
Boyer-Moore implementation in Java
Hello World in Java
webApi memorandum in java
Type determination in Java
Ping commands in Java
Various threads in java
Heapsort implementation (in java)
HTTPS connection with Java to the self-signed certificate server
ASCII art in Java
Compare Lists in Java
POST JSON in Java
Scraping practice using Java ①
How to convert A to a and a to A using AND and OR in Java
Express failure in Java