Comments on this page are supposed to improve article content and no technical support is provided. For technical questions, please visit project home page at: GitHub
pablo
pablo 13.03.2019 16:30 (GMT+2) Start guide

Hola buen dia.

Estuve probando su toturial pero no funciono , no es claro donde ubicar el archivo, si hay que descomprimirlo ? agradezco su informacion

Bill Voltmer
Bill Voltmer 07.03.2019 21:57 (GMT+2) New-SelfSignedCertificateEx

Vadims,

Adding the following command to my script resolved the problem with Example 1.

  • import-module PSPKI

Thanks,

Bill

Bill Voltmer
Bill Voltmer 07.03.2019 00:18 (GMT+2) New-SelfSignedCertificateEx

Hello Vadims,

The commands of PSPKI seem to be inaccessible after installation on Windows 10 build 1803 with added RSAT.


After trusting PowerShell Gallery with

> Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted

and installing with

> Install-Module -Name PSPKI

Running New-SelfsignedCertificateEx per Example 1

>  New-SelfsignedCertificateEx -Subject "CN=Test Code Signing" -EKU "Code Signing" -KeySpec "Signature" `
 -KeyUsage "DigitalSignature" -FriendlyName "Test code signing" -NotAfter $((Get-Date).AddYears(5))

The following error is returned

New-SelfsignedCertificateEx : The term 'New-SelfsignedCertificateEx' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1
+ New-SelfsignedCertificateEx -Subject "CN=Test Code Signing" -EKU "Cod ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (New-SelfsignedCertificateEx:String) [], CommandNotFoundE
   xception
    + FullyQualifiedErrorId : CommandNotFoundException

The file New-SelfSignedCertificateEx.ps1 is located here:  C:\Program Files\WindowsPowerShell\Modules\PSPKI\3.4.1.0\Client


Any pointers would be much appreciated.

Thanks,

Bill

Viktor
Viktor 08.02.2019 16:06 (GMT+2) Get-IssuedRequest

Could you please help?

Get-CertificationAuthority | Get-Issuedrequest -ID 938,939
Get-RequestRow : Произошла ошибка при перечислении элементов коллекции: Значение не попадает в ожидаемый диапазон..
C:\Program Files\WindowsPowerShell\Modules\PSPKI\3.4.1.0\Server\Get-AdcsDatabaseRow.ps1:79 знак:25
+                         Get-RequestRow `
+                         ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (SysadminsLV.PKI...+<GetView>d__36:<GetView>d__36) [Get-RequestRow], RuntimeException
    + FullyQualifiedErrorId : BadEnumeration,Get-RequestRow

Marco Denicolai
Marco Denicolai 02.02.2019 12:12 (GMT+2) New-SelfSignedCertificateEx

Thanks Vadims! It worked!