Comments (6)
Hi @GoGus85 - thanks for reporting this.
Just a couple of questions to help me figure this one out:
- Do you know which version of the xCertificate resource you're using?
- 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.
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.
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.
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.
Hi @GoGus85 - it is possible this is a problem. Could you try importing the entire Module?
from certificatedsc.
Well that fixed the issue...Thanks for the help!
from certificatedsc.
Related Issues (20)
- PfxImport & CertificateImport: Add base64 content parameter for PFX and certificate import resources HOT 6
- Remove non-mandatory parameters from Get-TargetResource
- Update GitVersion.yml to use latest pattern
- INF file format is wrong HOT 1
- DSC_PfxImport:'Import-PfxCertificateEx' function handles private keys differently then 'Import-PfxCertificate' cmdlet HOT 3
- Tests failing: New-SelfSignedCertificateEx from Script Center is no longer available
- Update Sampler Build Tasks
- Enable Code Coverage Reporting
- PfxImport: Cannot find an overload for "Import" and the argument count: "2" HOT 1
- PfxImport: Keys prevent multiple imports to different locations HOT 1
- When using content option on PfxImport with certificate twice in pfx private key gets lost HOT 1
- Update Azure DevOps Pipeline Images
- Update CI Pipeline Files from Latest Pattern
- Convert to class-based resources
- Convert tests to Pester 5
- Add support to export Cert as Base64 with CredentialExport HOT 2
- CertReq resource cannot request multiple certificates with same subject name HOT 2
- DSC_CertReq failed to execute Set-TargetResource functionality with error message: Cannot add type. The type name 'Source.NativeMethods' already exists
- Move Find-Certificate Function from CertificateDsc.Common.psm1 to DscResource.Common HOT 19
- Importing PFX certificate fails on Windows Server 2016 using guest configuration package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from certificatedsc.