Skip to content

Commit c85cd54

Browse files
committed
(fix) Uses Available KeyTool in any JRE Version
1 parent 0d29acc commit c85cd54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Get-Helpers.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,7 @@ function Set-JenkinsCertificate {
18621862
)
18631863

18641864
$KeyStore = "C:\ProgramData\Jenkins\.jenkins\keystore.jks"
1865-
$KeyTool = Convert-Path "C:\Program Files\Eclipse Adoptium\jre-11.*\bin\keytool.exe" # Using Temurin11jre package keytool
1865+
$KeyTool = Convert-Path "C:\Program Files\Eclipse Adoptium\jre-*.*\bin\keytool.exe" # Using Temurin11jre package keytool
18661866
$Passkey = [System.Net.NetworkCredential]::new(
18671867
"JksPassword",
18681868
(New-ServicePassword -AvailableCharacters @(48..57 + 65..90 + 97..122))

0 commit comments

Comments
 (0)