Skip to content

AdcsCertificationAuthority fails to install when CACommonName uses a dot #137

@alpharedline

Description

@alpharedline

When using the following configuration, taken from the exemple, and adding some fileds, a bug appears when the $CompanyName contains a dot (.) (ex: "MyCompany S.A."), whereas it does not fail on manual installation or by using the powershell command Install-AdcsCertificationAuthority

The bug consists into not triggering the installation of the CertificationAuthority, and reporting it as already present (when it is not): "Test-TargetResource: ADCS EnterpriseRootCA is installed and should be. Change not required."

After the install the "server manager" requieres to manually perform this install.

Configuration used:
$CompanyName = "My Company S. A."
AdcsCertificationAuthority CertificateAuthority
{
IsSingleInstance = 'Yes'
Ensure = 'Present'
Credential = $DomainCredential
CACommonName = "$($CompanyName) Certification Authority"
CAType = 'EnterpriseRootCA'
ValidityPeriod = 'Years'
ValidityPeriodUnits = '7'
DependsOn = '[WindowsFeature]ADCS-Cert-Authority'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions