This page is retired and no longer updated. Project documentation and download links are moved to their new home: PowerShell PKI Module.
Mike Driest
Mike Driest 15.08.2016 15:32 (GMT+3) New-SelfSignedCertificateEx

Hi,

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.

Thank you,

Mike

Sam
Sam 06.07.2016 17:39 (GMT+3) Start guide

Hello,

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:

  • FQDN of the CA Server
  • Name of the CA
  • FQDN of the CA Server \ CA Name
  • Specifying no name
  • Piping it in to Get-IssuedRequest

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

 

Lokesh Jangir
Lokesh Jangir 16.06.2016 09:33 (GMT+3) New-SelfSignedCertificateEx

Hi,

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