Comments (6)
from acme-ps.
Can you tell me, what line of your code throws the exception?
The error message says it's part of Get-ACMEChallenge, which is never called from the module itself, so it seems the error comes later?
from acme-ps.
First of all my script begins with
using module ACME-PS
That offers the type "AcmeIdentifier" and is the only way to call the New-ACMEOrder type-conform with an AcmeIdentifier[] array.
# Build the array
[AcmeIdentifier[]] $ACMEIdentifiers = $NULL;
$ACMEIdentifiers +=$ACMEServerCN;
#Add SANs from a SAN string-array
foreach ($SAN in $LECERT_SANs)
{
$ACMEIdentifiers += New-ACMEIdentifier $SAN
}
# Create the order object at the ACME service.
$ACMEOrder = New-ACMEOrder $ACMEState -Identifiers $ACMEIdentifiers;
# Fetch the authorizations for that order
$ACMEauthZ = Get-ACMEAuthorization -Order $ACMEOrder;
# Select a challenge to fullfill
$ACMEChallenge = Get-ACMEChallenge $ACMEState $ACMEauthZ "http-01";
and here occurs the exception: Get-ACMEChallenge
That was my approach to place an order more than one Name for the Certificate.
I am also not sure how to get a wildcard-Certificate...
from acme-ps.
Get-ACMEAuthorizations might return multiple authorizations for SAN.
foreach($authz in $acmeAuthz) {...}
might solve your problem.
from acme-ps.
Since I did not hear back anything by now, I'm closing this as done.
from acme-ps.
This works, just pipe it...:
$ACMEChallenge = $ACMEauthZ | Get-ACMEChallenge -State $ACMEState -Type "dns-01"
from acme-ps.
Related Issues (20)
- Order shows that cert expires in 6 days, but cert shows 90 days? HOT 3
- [Improvement] Allow DirectoryUrl to be passed to revocation, to omit the state object
- [Improvement] Add state reference to order
- [BUG]? Full chain export seems to be exporting in the wrong order HOT 4
- [BUG] Chain not included for specific instance.. HOT 1
- [Improvement] Exporting x509 certs/keys as PEM HOT 4
- Exception calling "GetResult" with "0" argument(s): "An error occurred while sending the request." HOT 6
- Certificate not working on older Android after 29.9.2021 HOT 2
- New-AcmePSKey invalid ValidateSet for RSAKeySize HOT 1
- DNS-01 HOT 10
- New Order / Old Account HOT 5
- Are SHA-1 self signatures being used to issue CSRs? HOT 1
- HTTP-01 Challenge File Not Getting Created HOT 3
- Authorizations does not seem to be parsing correctly HOT 12
- [BUG] The certificate chain seems to be out of order in 1.5.2. Versions 1.5.3-beta, and 1.5.4 Fails to run. HOT 4
- [BUG] Some of the *ToExport keys are missing from the module manifest HOT 2
- [BUG] v1.5.6 Export-Certificate "value cannot be null" HOT 10
- Cannot export non-exportable private key HOT 1
- [BUG] When using New-ACMEAccount with previous AccountKey it errors with Get-Account HOT 1
- [BUG] The exported PFX certificate doesn't have the full Let's Encrypt chain HOT 4
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 acme-ps.