403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /software/smsc smpp installer/software/winacme/Scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /software/smsc smpp installer/software/winacme/Scripts/ImportJKS.ps1
<#
.SYNOPSIS
Add a win-acme renewal to a Java keystore

Sample usage:

wacs.exe 
    --target manual 
    --host example.com
    --store none 
    --installation script 
    --script "Scripts\ImportJKS.ps1" 
    --scriptparameters "-pfxfile \"{CacheFile}\" -pfxpassword {CachePassword} -keystorefile \"C:\key store.jks\" -keystorepassword **** -keystorekeypassword ****"

#>

param(
	[Parameter(Mandatory=$true)]
	[string]
	$PfxFile,
	
	[Parameter(Mandatory=$true)]
	[string]
	$PfxPassword,

	[Parameter(Mandatory=$true)]
	[string]
	$KeyStoreFile,

	[Parameter(Mandatory=$true)]
	[string]
	$KeyStorePassword,
	
	[Parameter(Mandatory=$false)]
	[string]
	$KeyStoreKeyPassword
)

$keytoolpath = Join-Path -Path $env:JAVA_HOME -ChildPath bin\keytool.exe

Set-Alias keytool $keytoolpath

if ([string]::IsNullOrEmpty($KeyStoreKeyPassword)) 
{
    keytool `
        -v `
        -noprompt `
        -importkeystore `
        -srckeystore "$PfxFile" `
        -srcstoretype PKCS12 `
        -srcstorepass "$PfxPassword" `
        -destkeystore "$KeyStoreFile" `
        -deststorepass "$KeyStorePassword"
} 
else 
{
    keytool `
        -v `
        -noprompt `
        -importkeystore `
        -srckeystore "$PfxFile" `
        -srcstoretype PKCS12 `
        -srcstorepass "$PfxPassword" `
        -destkeystore "$KeyStoreFile" `
        -deststorepass "$KeyStorePassword" `
        -destkeypass "$KeyStoreKeyPassword"
}

Youez - 2016 - github.com/yon3zu
LinuXploit