Giter Site home page Giter Site logo

Comments (4)

PlagueHO avatar PlagueHO commented on June 12, 2024

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

from certificatedsc.

TLaborde avatar TLaborde commented on June 12, 2024

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.

from certificatedsc.

TLaborde avatar TLaborde commented on June 12, 2024

Nevermind, it was a credential right issue...

from certificatedsc.

TLaborde avatar TLaborde commented on June 12, 2024

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

from certificatedsc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.