Set-AuthenticodeSignature fails on Mac OS X
See original GitHub issueThe Cmdlet Set-AuthenticodeSignature fails with missing dll. This seems to be related to #1654
Steps to reproduce
Set-AuthenticodeSignature -Certificate $Certificate -FilePath $FilePath
Expected behavior
File should be signed.
Actual behavior
Set-AuthenticodeSignature -Certificate $Certificate -FilePath $FilePath
Set-AuthenticodeSignature : Unable to load DLL 'crypt32.dll': The specified module or one of its dependencies could not be found.
(Exception from HRESULT: 0x8007007E)
At line:1 char:1
+ Set-AuthenticodeSignature -Certificate $Certificate -FilePath $FilePath ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Set-AuthenticodeSignature], DllNotFoundException
+ FullyQualifiedErrorId : System.DllNotFoundException,Microsoft.PowerShell.Commands.SetAuthenticodeSignatureCommand
Environment data
$PSVersionTable
Name Value
---- -----
PSVersion 6.0.0-beta
PSEdition Core
BuildVersion 3.0.0.0
CLRVersion
GitCommitId v6.0.0-beta.2
OS Darwin 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Set-AuthenticodeSignature returns access to the path is ...
The problem for me was that the user which was signing the scripts was a different user than the one I had used...
Read more >security add-trusted-cert asks password twice in some cases
It looks like I'm getting the above error message because osascript hides the second password asking dialog. The cert always gets stored in...
Read more >Finding the Signer Certificate Thumbprint in Windows
Finding the Signer Certificate Thumbprint in Windows · Click on the Windows button and type PowerShell. Hit enter. · Type "Get-AuthenticodeSignature -FilePath '' ......
Read more >How To Sign PowerShell Script Using Domain Trusted CA ...
1. Make sure your HSM (.e.g, USB Token) containing the Code Signing certificate is plugged into your computer or laptop.2. Open Windows PowerShell....
Read more >Powershell Commands
Set-Alias sal Create or change an alias Get-AuthenticodeSignature Get the signature object associated with a file Set-AuthenticodeSignature Place a ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The issue is the same in beta.3
In RC.2 the Cmdlets
Set-AuthenticodeSignatureandGet-AuthenticodeSignatureare not available anymore on OS X, thus closing the issue. It would still be great, if those Cmdlets could be ported to OS X and *nix.