Giter Site home page Giter Site logo

Comments (6)

PlagueHO avatar PlagueHO commented on June 12, 2024

Hi @GoGus85 - thanks for reporting this.

Just a couple of questions to help me figure this one out:

  1. Do you know which version of the xCertificate resource you're using?
  2. Are you setting the credential parameter in the xCertReq?

There was a bug in 2.1.0.0 that did result in similar behavior to this.

from certificatedsc.

gustavdw avatar gustavdw commented on June 12, 2024

Hello @PlagueHO,
Yes I'm running 2.2.0.0.
Yes I am, when I neglected to do so it failed earlier in the chain.

Looking in C:\windows\temp I have 5 files generated:
xCertReq*.inf
xCertReq.req
xCertReq
.cer
xCertReq*.out
xCertReq*.rsp

The out file which is part of the statement thats throwing the error contains:
RequestId: 1001
RequestId: "1001"
Certificate retrieved(Issued) Issued

Running the same command through certreq.exe (with same parameters as launched by the powershell script) works fine.

from certificatedsc.

PlagueHO avatar PlagueHO commented on June 12, 2024

Hi @GoGus85 - I'll take a look at this over the next couple of days and see if I can figure out what is going on. Are you able to post a copy of your config (with any sensitive information removed)?

from certificatedsc.

gustavdw avatar gustavdw commented on June 12, 2024

The only parts that are related are these. Could it be because I'm only importing one of the resources rather than the complete module?

Import-DscResource -Name MSFT_xCertReq

        # Acquire certificate
        xCertReq SslCertificate
        {
            Subject = $Node.NodeName
            CAServerFQDN = "cafqdn"
            CARootName = "carootname"
            Credential = $GenericCredential
        }

from certificatedsc.

PlagueHO avatar PlagueHO commented on June 12, 2024

Hi @GoGus85 - it is possible this is a problem. Could you try importing the entire Module?

from certificatedsc.

gustavdw avatar gustavdw commented on June 12, 2024

Well that fixed the issue...Thanks for the help!

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.