Skip to content

Error retreiving certificate templates as part of running audit #13

@ssparkgit

Description

@ssparkgit

When invoking PKIAudit it pulls back my CA information but after the misconfiguration section I get this error.

New-Object : Exception calling ".ctor" with "1" argument(s): "An invalid dn syntax has been specified.
"
At C:\temp\PSPKIAudit-main\PSPKI\3.7.2\Server\Get-CertificateTemplate.ps1:67 char:48
+ ... ach-Object {New-Object PKI.CertificateTemplates.CertificateTemplate $ ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException
    + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

I have made sure that 'Get-CertificateTemplate' pulls results within powershell. I have the AD and CS tools installed and imported running this on a Windows 2016 server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions