Your template for generating the certificate request is missing the Exportable = True setting. I spent hours trying to figure out what was going wrong. It came down to the request not stating that the public key would be exportable later on. Here is what you should have for a template file:
Please ignore previous post. I needed to setup execution policy.
Thanks a lot.
it looks like you have edited my script and break signature. Re-download the script and run the command:
this command will not execute the script, but attach contained functions to a PowerShell session (this operation is known as dot-sourcing). Therefore you should type dot, space and path to a file.
Thank you for doing great job. when i try to run the script i am getting following error:
PS C:\> .\OpsMgrCertMgmt.ps1
File C:\OpsMgrCertMgmt.ps1 cannot be loaded. The contents of file C:\OpsMgrCertMgmt.ps1 may have been tampered because
the hash of the file does not match the hash stored in the digital signature. The script will not execute on the system
. Please see "get-help about_signing" for more details..
At line:1 char:21
+ .\OpsMgrCertMgmt.ps1 <<<<
+ CategoryInfo : NotSpecified: (:) , PSSecurityException
+ FullyQualifiedErrorId : RuntimeException
© 2008 - 2019 - Sysadmins LV. All rights reserved