diff --git a/CHANGELOG.md b/CHANGELOG.md index 1abfb69..97988c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # PSGemini ChangeLog -## Version 1.0.1 +## Version 1.0.2 and 1.0.1 If `$env:PSGeminiTOFUPath` was not defined, certificates could not be reliably added or removed. This has been corrected by checking for null or undefined values. ## Version 1.0.0 diff --git a/NEWS b/NEWS index 21598b3..0aa38aa 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,4 @@ -VERSION 1.0.1 +VERSIONS 1.0.2 and 1.0.1 Fixed certificate store issues that slipped past the cracks. VERSION 1.0.0 diff --git a/PSGemini.psd1 b/PSGemini.psd1 index fe4d15c..f67b231 100644 --- a/PSGemini.psd1 +++ b/PSGemini.psd1 @@ -4,7 +4,7 @@ RootModule = 'src/PSGemini.psm1' # Version number of this module. -ModuleVersion = '1.0.1' +ModuleVersion = '1.0.2' # Supported PSEditions CompatiblePSEditions = @('Core', 'Desktop') diff --git a/src/PSGemini.psm1 b/src/PSGemini.psm1 index 650c41c..c8062d3 100644 --- a/src/PSGemini.psm1 +++ b/src/PSGemini.psm1 @@ -514,7 +514,7 @@ Function Get-PSGeminiKnownCertificates { ) Write-Debug "Looking for a certificate for $HostName." - $env:PSGeminiTOFUPath ??= (Join-Path -Path $env:HOME -ChildPath '.PSGemini_known_hosts.csv') + $env:PSGeminiTOFUPath ??= (Join-Path -Path $HOME -ChildPath '.PSGemini_known_hosts.csv') If (Test-Path -Path $env:PSGeminiTOFUPath -PathType Leaf) { Write-Debug "Found a certificate store at ${env:PSGeminiTOFUPath}." @@ -558,7 +558,7 @@ Function Add-PSGeminiKnownCertificate { Write-Verbose "Memorizing certificate for $HostName with fingerprint $Fingerprint and expiration date $ExpirationDate." - $env:PSGeminiTOFUPath ??= (Join-Path -Path $env:HOME -ChildPath '.PSGemini_known_hosts.csv') + $env:PSGeminiTOFUPath ??= (Join-Path -Path $HOME -ChildPath '.PSGemini_known_hosts.csv') Export-CSV -Path $env:PSGeminiTOFUPath -Append -Delimiter ',' -InputObject ([PSCustomObject]@{ HostName = $HostName Fingerprint = $Fingerprint @@ -579,7 +579,7 @@ Function Remove-PSGeminiKnownCertificate { [String] $Fingerprint ) - $env:PSGeminiTOFUPath ??= (Join-Path -Path $env:HOME -ChildPath '.PSGemini_known_hosts.csv') + $env:PSGeminiTOFUPath ??= (Join-Path -Path $HOME -ChildPath '.PSGemini_known_hosts.csv') If (-Not (Test-Path -Path $env:PSGeminiTOFUPath -PathType Leaf)) { Return $null