Skip to content

Commit 2b6ed83

Browse files
committed
Supports tls1.0
1 parent ab3a282 commit 2b6ed83

2 files changed

Lines changed: 51 additions & 39 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,18 @@ jobs:
7272
java-package: "jre"
7373
architecture: "aarch64"
7474

75+
# java.security 开放tls1 Windows
76+
- name: Enable tls1
77+
if: ${{ runner.os == 'Windows' }}
78+
run: |
79+
sed -i '' "s/\(^jdk.tls.disabledAlgorithms=\)\(.*\)\( TLSv1, TLSv1.1,\)\(.*\)/\1\2\4/" "${{ env.JAVA_HOME }}/conf/security/java.security"
80+
81+
# java.security 开放tls1 macOS
82+
- name: Enable tls1
83+
if: ${{ runner.os == 'macOS' }}
84+
run: |
85+
sed -i '' "s/\(^jdk.tls.disabledAlgorithms=\)\(.*\)\( TLSv1, TLSv1.1,\)\(.*\)/\1\2\4/" $JAVA_HOME/conf/security/java.security
86+
7587
# 复制jre Windows
7688
- name: Copy Jre for Windows
7789
if: ${{ runner.os == 'Windows' }}

.github/workflows/test.yml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
name: Test
2-
3-
on: [ push, pull_request ]
4-
5-
jobs:
6-
test:
7-
strategy:
8-
fail-fast: false
9-
matrix:
10-
include:
11-
- os: windows-latest
12-
- os: macos-latest
13-
runs-on: ${{ matrix.os }}
14-
steps:
15-
- name: Check out Git repository
16-
uses: actions/checkout@main
17-
18-
# 安装jre Windows
19-
- name: Install Jre for Windows
20-
uses: actions/setup-java@main
21-
with:
22-
java-version: "17"
23-
distribution: "temurin"
24-
java-package: "jre"
25-
26-
# java.security 开放tls1 Windows
27-
- name: Enable tls1
28-
if: ${{ runner.os == 'Windows' }}
29-
run: |
30-
sed -i '' "s/\(^jdk.tls.disabledAlgorithms=\)\(.*\)\( TLSv1, TLSv1.1,\)\(.*\)/\1\2\4/" "${{ env.JAVA_HOME }}/conf/security/java.security"
31-
cat "${{ env.JAVA_HOME }}/conf/security/java.security"
32-
33-
34-
# java.security 开放tls1 macOS
35-
- name: Enable tls1
36-
if: ${{ runner.os == 'macOS' }}
37-
run: |
38-
sed -i '' "s/\(^jdk.tls.disabledAlgorithms=\)\(.*\)\( TLSv1, TLSv1.1,\)\(.*\)/\1\2\4/" $JAVA_HOME/conf/security/java.security
39-
cat $JAVA_HOME/conf/security/java.security
1+
#name: Test
2+
#
3+
#on: [ push, pull_request ]
4+
#
5+
#jobs:
6+
# test:
7+
# strategy:
8+
# fail-fast: false
9+
# matrix:
10+
# include:
11+
# - os: windows-latest
12+
# - os: macos-latest
13+
# runs-on: ${{ matrix.os }}
14+
# steps:
15+
# - name: Check out Git repository
16+
# uses: actions/checkout@main
17+
#
18+
# # 安装jre Windows
19+
# - name: Install Jre for Windows
20+
# uses: actions/setup-java@main
21+
# with:
22+
# java-version: "17"
23+
# distribution: "temurin"
24+
# java-package: "jre"
25+
#
26+
# # java.security 开放tls1 Windows
27+
# - name: Enable tls1
28+
# if: ${{ runner.os == 'Windows' }}
29+
# run: |
30+
# sed -i '' "s/\(^jdk.tls.disabledAlgorithms=\)\(.*\)\( TLSv1, TLSv1.1,\)\(.*\)/\1\2\4/" "${{ env.JAVA_HOME }}/conf/security/java.security"
31+
# cat "${{ env.JAVA_HOME }}/conf/security/java.security"
32+
#
33+
#
34+
# # java.security 开放tls1 macOS
35+
# - name: Enable tls1
36+
# if: ${{ runner.os == 'macOS' }}
37+
# run: |
38+
# sed -i '' "s/\(^jdk.tls.disabledAlgorithms=\)\(.*\)\( TLSv1, TLSv1.1,\)\(.*\)/\1\2\4/" $JAVA_HOME/conf/security/java.security
39+
# cat $JAVA_HOME/conf/security/java.security

0 commit comments

Comments
 (0)