Comments (4)
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.
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.
Nevermind, it was a credential right issue...
from certificatedsc.
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)
- 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.