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

space in CARootName break the submit #67

Closed
TLaborde opened this issue Jun 5, 2017 · 4 comments
Closed

space in CARootName break the submit #67

TLaborde opened this issue Jun 5, 2017 · 4 comments
Labels
bug The issue is a bug.

Comments

@TLaborde
Copy link

TLaborde commented Jun 5, 2017

It seems there was a PR rolled back on that subject, bu I have a similar issue, my root cert contains space, and the certreq -submit fails because of it. Is there a quickfix on that matter?

edit : i'm on 2.6.0.0, and it doesn't look like it's related to the 2.5.0.0 fix

@PlagueHO
Copy link
Member

PlagueHO commented Jun 5, 2017

Hi @TLaborde - Have you tried 2.7.0.0? Also, could you post your config and error log if possible?

Are you referring to either of these two fixes?
#42
#49

@PlagueHO PlagueHO added bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community. labels Jun 5, 2017
@TLaborde
Copy link
Author

TLaborde commented Jun 5, 2017

Just tried on 2.7.0.0, same issue.
Yeah i was referring to #42

the config:

xCertReq SSLCert {
    Subject = 'dev-sso.mycompany.com'
    AutoRenew = $false
    CARootName = 'MyCompany IT Sites CA City'
    CAServerFQDN = 'rcassc.mycompany.com'
    Credential = $Creds
    CertificateTemplate = "MyCompany-Sites-Common"
    KeyUsage = 0
    ProviderName = '"Microsoft RSA SChannel Cryptographic Provider"'
    KeyLength = 2048
    SubjectAltName = "DNS=dev-sso.mycompany.com"
}

Related logs and error:

VERBOSE: [DEVADFS001]:                            [[xCertReq]SSLCert] Set-TargetResource: Submitting certificate request 'C:\Windows\TEMP\xCertReq-92a9233b-0ab0-448a-9edc-b2e83b78f028.req' returning 'C:\Windows\TEMP\xCertReq-92a9233b-0ab0-448a-9edc-b2e83b78f028.cer' issued by rcassc.mycompany.com\MyCompany IT Sites CA City.
VERBOSE: [DEVADFS001]:                            [[xCertReq]SSLCert] Set-TargetResource: Submitting certificate request result: RequestId: 1408
VERBOSE: [DEVADFS001]: LCM:  [ End    Set      ]  [[xCertReq]SSLCert]  in 0.6100 seconds.
PowerShell DSC resource MSFT_xCertReq  failed to execute Set-TargetResource functionality with error message: Certificate file 
'C:\Windows\TEMP\xCertReq-92a9233b-0ab0-448a-9edc-b2e83b78f028.cer' not found. 
    + CategoryInfo          : InvalidOperation: (:) [], CimException
    + FullyQualifiedErrorId : ProviderOperationExecutionFailure
    + PSComputerName        : devadfs001

It does generate a rsp file, but not the .cer
If i run the certreq command from the host in powershell with the req file, it works.

I also tried using PsDscRunAsCredential and even after giving the account the proper local rights, I get the same error.

@TLaborde
Copy link
Author

TLaborde commented Jun 5, 2017

Nevermind, it was a credential right issue...

@TLaborde TLaborde closed this as completed Jun 5, 2017
@vors vors removed the help wanted The issue is up for grabs for anyone in the community. label Jun 5, 2017
@TLaborde
Copy link
Author

TLaborde commented Jun 5, 2017

Just if someone else have a similar problem, i looked into the CA logs to find more info on what happen.

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.
Projects
None yet
Development

No branches or pull requests

3 participants