diff --git a/PowerRemoteDesktop_Server/PowerRemoteDesktop_Server.psd1 b/PowerRemoteDesktop_Server/PowerRemoteDesktop_Server.psd1 index 4d96f64..f2c2a9c 100644 Binary files a/PowerRemoteDesktop_Server/PowerRemoteDesktop_Server.psd1 and b/PowerRemoteDesktop_Server/PowerRemoteDesktop_Server.psd1 differ diff --git a/PowerRemoteDesktop_Server/PowerRemoteDesktop_Server.psm1 b/PowerRemoteDesktop_Server/PowerRemoteDesktop_Server.psm1 index 92ed706..2004b42 100644 --- a/PowerRemoteDesktop_Server/PowerRemoteDesktop_Server.psm1 +++ b/PowerRemoteDesktop_Server/PowerRemoteDesktop_Server.psm1 @@ -83,7 +83,7 @@ Add-Type @" } "@ -$global:PowerRemoteDesktopVersion = "3.1.0" +$global:PowerRemoteDesktopVersion = "3.1.2" $global:HostSyncHash = [HashTable]::Synchronized(@{ host = $host @@ -2802,14 +2802,9 @@ function Invoke-RemoteDesktopServer [int] $ListenPort = 2801, [SecureString] $SecurePassword = $null, - [string] $Password = "", - - [ValidateFile()] - [String] $CertificateFile = $null, - - [ValidateBase64String()] + [string] $Password = "", + [String] $CertificateFile = $null, [string] $EncodedCertificate = "", - [switch] $UseTLSv1_3, [switch] $DisableVerbosity, [ClipboardMode] $Clipboard = [ClipboardMode]::Both, @@ -2850,11 +2845,15 @@ function Invoke-RemoteDesktopServer if ($CertificateFile -or $EncodedCertificate) { $Certificate = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 - try { if ($CertificateFile) { + if(-not (Test-Path -Path $CertificateFile)) + { + throw [System.IO.FileNotFoundException]::new() + } + $Certificate = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 $CertificateFile, $CertificatePassword } else diff --git a/PowerRemoteDesktop_Viewer/PowerRemoteDesktop_Viewer.psd1 b/PowerRemoteDesktop_Viewer/PowerRemoteDesktop_Viewer.psd1 index ec21e57..e3c853d 100644 Binary files a/PowerRemoteDesktop_Viewer/PowerRemoteDesktop_Viewer.psd1 and b/PowerRemoteDesktop_Viewer/PowerRemoteDesktop_Viewer.psd1 differ diff --git a/PowerRemoteDesktop_Viewer/PowerRemoteDesktop_Viewer.psm1 b/PowerRemoteDesktop_Viewer/PowerRemoteDesktop_Viewer.psm1 index bb2e836..8035676 100644 --- a/PowerRemoteDesktop_Viewer/PowerRemoteDesktop_Viewer.psm1 +++ b/PowerRemoteDesktop_Viewer/PowerRemoteDesktop_Viewer.psm1 @@ -51,7 +51,7 @@ Add-Type @" } "@ -$global:PowerRemoteDesktopVersion = "3.1.0" +$global:PowerRemoteDesktopVersion = "3.1.2" $global:HostSyncHash = [HashTable]::Synchronized(@{ host = $host diff --git a/README.md b/README.md index bc183ea..861eac0 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Tested on: * **Windows 10** * **Windows 11** -Current version: **3.0 Stable** +Current version: **3.1.2 Stable** ## Performance