Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedrichWeinmann committed Mar 21, 2024
1 parent 8aab49b commit 09848dc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
15 changes: 13 additions & 2 deletions Actions/certdeploy.action.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,19 @@
}

try {
$store.Add($certificate)
$store.Close()
if ($password) {
$store.Close()
$param = @{
FilePath = $fullFilePath
CertStoreLocation = "Cert:\LocalMachine\$($Configuration.Store)"
Password = $password | ConvertTo-SecureString -AsPlainText -Force
}
Import-PfxCertificate @param -ErrorAction Stop
}
else {
$store.Add($certificate)
$store.Close()
}
}
catch {
Write-PSFMessage -Level Warning -Message "Error writing certificate $($Configuration.FileName) to certificate store $($Configuration.Store)" -ErrorRecord $_
Expand Down
2 changes: 1 addition & 1 deletion VMDeploy.Guest/VMDeploy.Guest.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
RootModule = 'VMDeploy.Guest.psm1'

# Version number of this module.
ModuleVersion = '1.0.0'
ModuleVersion = '1.0.10'

# ID used to uniquely identify this module
GUID = '254b0808-8c89-47f9-b9fa-97e865a56d1e'
Expand Down
2 changes: 1 addition & 1 deletion VMDeploy.Guest/changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## ???
## 1.0.10 (2024-03-21)

+ New: Action: CertDeploy - deploy a certificate (such as a root CA cert) to a selected certificate store
+ New: Action: ScriptBlock - execute a custom scriptblock
Expand Down

0 comments on commit 09848dc

Please sign in to comment.