Skip to content

Commit 2408e9e

Browse files
WSL/linux fix posh-acme wrapper
1 parent 6896882 commit 2408e9e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/Certify.Server/Certify.Server.HubService/Properties/launchSettings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
},
3030
"publishAllPorts": true,
3131
"useSSL": true
32+
},
33+
"WSL": {
34+
"commandName": "WSL2",
35+
"launchUrl": "https://0.0.0.0:44361",
36+
"environmentVariables": {
37+
"ASPNETCORE_ENVIRONMENT": "Development",
38+
"ASPNETCORE_URLS": "https://0.0.0.0:44361",
39+
"CERTIFY_ENABLE_MANAGEMENT_HUB": "true"
40+
},
41+
"distributionName": ""
3242
}
3343
},
3444
"$schema": "https://json.schemastore.org/launchsettings.json"

src/Certify.Shared.Extensions/Scripts/DNS/PoshACME/Posh-ACME-Wrapper.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ try {
1515
# iwr https://tls13.1d.pw # TLS 1.3 test
1616

1717
# Load Assembly without using Add-Type to avoid locking assembly dll
18-
$assemblyBytes = [System.IO.File]::ReadAllBytes("$($PoshACMERoot)\..\..\..\BouncyCastle.Cryptography.dll")
18+
$bcPath = [IO.Path]::Combine($PoshACMERoot, '..', '..','..','BouncyCastle.Cryptography.dll')
19+
$assemblyBytes = [System.IO.File]::ReadAllBytes($bcPath)
1920
[System.Reflection.Assembly]::Load($assemblyBytes) | out-null
2021

2122
# Dot source the files (in the same manner as Posh-ACME would)

0 commit comments

Comments
 (0)