question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set-AuthenticodeSignature fails on Mac OS X

See original GitHub issue

The 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:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ffeldhauscommented, Jun 28, 2017

The issue is the same in beta.3

0reactions
ffeldhauscommented, Jan 2, 2018

In RC.2 the Cmdlets Set-AuthenticodeSignature and Get-AuthenticodeSignature are 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found