New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xAdcsCertificateAuthority: CertFilePassword invalid type #36

DanGarcia595 opened this Issue Nov 28, 2017 · 0 comments


None yet
2 participants

DanGarcia595 commented Nov 28, 2017

Details of the scenario you tried and the problem that is occurring:
When installing using a pfx file, the pscredential object is passed to the variable CertFilePassword.
According to the Install-AdcsCertificationAuthority docmentation here, this parameter must be a SecureString

The DSC configuration that is using the resource (as detailed as possible):
The configuration looks something like:
xADCSCertificationAuthority CA
Ensure = 'Present'
Credential = $Cred
CAType = 'EnterpriseSubordinateCA'
CertFile = $PFXFile
CertFilePassword = $PFXPassword
DependsOn = '[WindowsFeature]ADCS-Cert-Authority'
Version of the Operating System and PowerShell the DSC Target Node is running:
Windows Server 2012 R2
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
using the dev branch

I'd like to make a pull request and mimic the logic used by the PfxImport module here line 299

DanGarcia595 added a commit to DanGarcia595/xAdcsDeployment that referenced this issue Nov 28, 2017

Resolved PowerShell#36
Passing incorrect type PSCredential to parameter CertFilePassword (should be Secure String)

@PlagueHO PlagueHO closed this in #37 Dec 8, 2017

PlagueHO added a commit that referenced this issue Dec 8, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment