Skip to content
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

Closed
DanGarcia595 opened this issue Nov 28, 2017 · 0 comments · Fixed by #37
Closed

xAdcsCertificateAuthority: CertFilePassword invalid type #36

DanGarcia595 opened this issue Nov 28, 2017 · 0 comments · Fixed by #37
Labels
bug The issue is a bug. in progress The issue is being actively worked on by someone.

Comments

@DanGarcia595
Copy link
Contributor

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
Passing incorrect type PSCredential to parameter CertFilePassword (should be Secure String)
@PlagueHO PlagueHO added bug The issue is a bug. in progress The issue is being actively worked on by someone. labels Dec 8, 2017
PlagueHO added a commit that referenced this issue Dec 8, 2017
@SteveL-MSFT SteveL-MSFT added this to In progress in powershell/dscresources May 14, 2019
@SteveL-MSFT SteveL-MSFT removed this from In progress in powershell/dscresources Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug. in progress The issue is being actively worked on by someone.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants