Great work on the PowerShell PKI module! I ran into an error with New-SelfsignedCertificateEx when I tried to use -Path C:\test\ssl.pfx, -Password, -Exportable, and -StoreLocation "LocalMachine" similar to Example # 2. It seems you have to omit -StoreLocation in order to be able to export a cert to a path. I need to store a cert in the Local Machine store with it marked as exportable, and need to export it to a password protected PFX file.
Is there any more setup then installing the module and what is listed above? I've tried eveything and cannot get any output from Get-CertificationAuthority
Ive treid every permeatation off the CA servers name.... as in:
When I specifying nothing it says Network Path not found.... when I specify the FQDN or CA name it doesn't error but it doesnt return anything.. even with " | FL * " at the end or piped into another command
I am using this command to generate self signed certificate -
New-SelfsignedCertificateEx -Subject "CN=Test" -EKU "Code Signing" -FriendlyName "Test" -StoreLocation LocalMachine
it works fine and generates certificate silently. It doesn't give any output as 'New-SelfsignedCertificate' does. Is there any way to capture output of this command so that we can store it's thumbprint, otherwise automation is really difficult if there are multiple certificates available with the same subject and friendly name.
Thanks, Lokesh Jangir
© 2008 - 2020 - Sysadmins LV. All rights reserved