Skip to content

Commit

Permalink
openzfs: Fix store scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
brian6932 committed Nov 6, 2023
1 parent 19d909c commit a7ab8d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bucket/openzfs.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"$cert = (Get-AuthenticodeSignature \"$dir/OpenZFS.cat\").SignerCertificate",
"if (!(Get-ChildItem Cert:/CurrentUser/TrustedPublisher -Recurse | Where-Object { $_.Thumbprint -eq $cert.Thumbprint })) {",
" Write-Host 'Cert not found, adding to trusted store...'",
" $store = [X509Store]::new([StoreName]::TrustedPublisher, [StoreLocation]::LocalMachine)",
" $store = [X509Store]::new([StoreName]::TrustedPublisher, [StoreLocation]::CurrentUser)",
" $store.Open([OpenFlags]::ReadWrite)",
" $store.Add($cert.Export([X509ContentType]::Cert))",
" $store.Close()",
Expand Down

0 comments on commit a7ab8d2

Please sign in to comment.