code format

This commit is contained in:
yoan 2024-10-30 12:28:59 +08:00
parent 261c6f6956
commit b4599df6c6

View File

@ -206,7 +206,7 @@ Remove-Item -Path "$pfxPath" -Force
}
break;
case "binding_netsh":
case "binding_netsh":
{
const newData = produce(data, (draft) => {
draft.config ??= {};
@ -221,7 +221,7 @@ $port = "<your-binding-port>" # 绑定端口
$addr = $ipaddr + ":" + $port
#
$cert = Import-PfxCertificate -FilePath "$pfxPath" -CertStoreLocation Cert:\LocalMachine\My -Password (ConvertTo-SecureString -String "$pfxPassword" -AsPlainText -Force) -Exportable
$cert = Import-PfxCertificate -FilePath "$pfxPath" -CertStoreLocation Cert:\\LocalMachine\\My -Password (ConvertTo-SecureString -String "$pfxPassword" -AsPlainText -Force) -Exportable
# Thumbprint
$thumbprint = $cert.Thumbprint
#