Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
station
YeeAmosFireAutoSysRoot
Commits
619349ea
Commit
619349ea
authored
Mar 25, 2024
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 使用安全的传输协议
SSLv2、SSLv23、SSLv3、TLSv1.0 和 TLSv1.1 协议包含使它们变得不安全的缺陷,不应该使用它们来传输敏感数据。 Links
https://docs.qq.com/sheet/DTkRSaWhSZXBlaldN?tab=000008&_t=1711087563249
(No.7)
parent
31d5ee39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
SSLClient.java
...in/java/com/yeejoin/amos/fas/business/util/SSLClient.java
+1
-1
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/util/SSLClient.java
View file @
619349ea
...
@@ -26,7 +26,7 @@ public class SSLClient extends DefaultHttpClient {
...
@@ -26,7 +26,7 @@ public class SSLClient extends DefaultHttpClient {
public
SSLClient
()
throws
Exception
{
public
SSLClient
()
throws
Exception
{
super
();
super
();
//传输协议需要根据自己的判断
//传输协议需要根据自己的判断
SSLContext
ctx
=
SSLContext
.
getInstance
(
"TLS"
);
SSLContext
ctx
=
SSLContext
.
getInstance
(
"TLS
v1.2
"
);
X509TrustManager
tm
=
new
X509TrustManager
()
{
X509TrustManager
tm
=
new
X509TrustManager
()
{
@Override
@Override
public
void
checkClientTrusted
(
X509Certificate
[]
chain
,
public
void
checkClientTrusted
(
X509Certificate
[]
chain
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment