Skip to content

Commit 31962c7

Browse files
committed
Attempt to enable OpenSSL legacy provider on Windows
1 parent 9d8e28a commit 31962c7

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/run_tests.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os: [ubuntu-latest, macos-latest, windows-2022]
16+
os: [ubuntu-latest, macos-latest, windows-latest]
1717
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1818
include:
1919
- os: macos-latest
@@ -35,6 +35,24 @@ jobs:
3535
nettle_version: nettle_3.8.1_release_20220727
3636

3737
steps:
38+
- name: Enable OpenSSL legacy provider (Windows)
39+
if: ${{ runner.os == 'Windows' }}
40+
shell: pwsh
41+
run: |
42+
@"
43+
openssl_conf = openssl_init
44+
[openssl_init]
45+
providers = provider_sect
46+
[provider_sect]
47+
default = default_sect
48+
legacy = legacy_sect
49+
[default_sect]
50+
activate = 1
51+
[legacy_sect]
52+
activate = 1
53+
"@ | Out-File -FilePath ($env:RUNNER_TEMP + "\openssl.cnf") -Encoding utf8
54+
echo "OPENSSL_CONF=$env:RUNNER_TEMP\openssl.cnf" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
55+
3856
- name: Checkout asyncssh
3957
uses: actions/checkout@v4
4058
with:

0 commit comments

Comments
 (0)