You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am attempting to utilize PowerStig on a VM in Azure to generate MOFs from DISA-provided XCCDF files. However, I can't get the module to install successfully due to an authenticode signature error on VMware.VimAutomation.Sdk.
The command I'm running:
Install-Module -Name PowerStig -Scope CurrentUser
The error message:
The module 'VMware.VimAutomation.Sdk' cannot be installed or updated because the authenticode signature of the file 'VMware.VimAutomation.Sdk.cat' is not valid.
I have only tried this in both Azure Commercial and Azure Gov. I have tried this using the default commercial Windows 11 and Windows 2019 VM images with no modifications (other than enabling publicly accessible RDP, nothing fancy). I have also tried this with the built-in PowerShell as well as with 7.3.0. I have tried it both with and without running as Admin. Everything I try inside an Azure VM fails with much the same error (PowerShell Core is less verbose but it's still the same error). Oddly enough, I don't have this problem on my local laptop workstation.
To Reproduce
Create new VM in Azure using a Windows 11 Pro vanilla image from Microsoft. (Alternatively, use a vanilla Windows 2019 Datacenter image from Microsoft.)
Enable RDP and a public IP on that VM for easy access (I have not bothered to try this via Bastion).
Once the VM is up and running, RDP into the machine.
Right-click on the Start button and open up PowerShell. (Alternatively, install PowerShell 7.3.0 and open it up.)
Run the Install-Module.
Upon the first execution, it may ask to update PowerShellGet. If so, tell it y to update it. (It updates successfully.)
Next it will prompt about an untrusted repository. Tell it a for Yes to All.
Observe the authenticode signature error.
Expected behavior
I expect a successful installation of PowerStig with no errors.
Screenshots
These are screenshots of the errors as I see them in both Windows PowerShell as well as PowerShell Core 7.3.0. These screenshots are specifically from Windows 11 but Windows Server 2019 behaved the same way.
Additional context
I have ran this Install-Module command locally on a few different physical workstations and I don't have an issue. But I cannot get it to successfully run in an Azure VM where I want to do this work. These VMs are as clean and fresh as possible when I attempt to do this. As soon as I login for the first time, other than clicking through any OOBE popups, I do nothing else before trying to install this.
The text was updated successfully, but these errors were encountered:
We are hoping the cert issue is resolved with future iterations of that module. Currently even their latest version has an error related to its certificate.
Install-Package: Authenticode issuer 'CN="VMware, Inc.", O="VMware, Inc.", L=Palo Alto, S=California, C=US' of the new module 'VMware.vSphereDSC' with version '2.2.0.84'from root certificate authority
'CN=VeriSign Class 3 Public Primary Certification Authority - G5, OU="(c) 2006 VeriSign, Inc. - For authorized use only", OU=VeriSign Trust Network, O="VeriSign, Inc.", C=US' is not
matching with the authenticode issuer '[email protected], CN="VMware, Inc.", O="VMware, Inc.", L=Palo Alto, S=California, C=US' of the previously-installed module 'VMware.vSphereDSC'
with version '2.1.0.58'from root certificate authority 'CN=DigiCert Assured ID Root CA, OU=www.digicert.com, O=DigiCert Inc, C=US'.If you still want to install or update, use
-SkipPublisherCheck parameter.
Describe the bug
I am attempting to utilize PowerStig on a VM in Azure to generate MOFs from DISA-provided XCCDF files. However, I can't get the module to install successfully due to an authenticode signature error on VMware.VimAutomation.Sdk.
The command I'm running:
The error message:
I have only tried this in
bothAzure Commercialand Azure Gov. I have tried this using the default commercial Windows 11 and Windows 2019 VM images with no modifications (other than enabling publicly accessible RDP, nothing fancy). I have also tried this with the built-in PowerShell as well as with 7.3.0. I have tried it both with and without running as Admin. Everything I try inside an Azure VM fails with much the same error (PowerShell Core is less verbose but it's still the same error). Oddly enough, I don't have this problem on my local laptop workstation.To Reproduce
Install-Module
.PowerShellGet
. If so, tell ity
to update it. (It updates successfully.)a
for Yes to All.Expected behavior
I expect a successful installation of PowerStig with no errors.
Screenshots
These are screenshots of the errors as I see them in both Windows PowerShell as well as PowerShell Core 7.3.0. These screenshots are specifically from Windows 11 but Windows Server 2019 behaved the same way.
Additional context
I have ran this
Install-Module
command locally on a few different physical workstations and I don't have an issue. But I cannot get it to successfully run in an Azure VM where I want to do this work. These VMs are as clean and fresh as possible when I attempt to do this. As soon as I login for the first time, other than clicking through any OOBE popups, I do nothing else before trying to install this.The text was updated successfully, but these errors were encountered: