Comments (1)
Hi @EdificomSA, thanks for reaching out. The Submit-Renewal
function will return PACertificate
objects (the same thing returned by New-PACertificate
and Get-PACertificate
) for any certs that were renewed successfully. So anything that is missing from the output either had a problem or wasn't scheduled to renew yet.
As you noticed, the Install-PACertificate
function doesn't return anything and is effectively swallowing the output from Submit-Renewal
in your current script. While I might be able to add something like a -PassThru
switch to Install-PACertificate
, there are other ways you could accomplish the same task. There's a section in the tutorial with some sample code for renewal logic that might work better.
Here's how I might modify your existing code:
Submit-Renewal -AllOrders | ForEach-Object {
# every item in this loop is a cert that was renewed successfully
$cert = $_
$cert | Install-PACertificate
if ('example.com' -in $cert.AllSANs) {
# deploy for example.com
} elseif ('example.net' -in $cert.AllSANs) {
# deploy for example.net
} else {
# deploy for everything else
}
}
You could also avoid needing to call Install-PACertificate
explicitly by adding the Install flag to your existing orders. For each order in each account, you can run the following:
Set-PAOrder -Install
from posh-acme.
Related Issues (20)
- Problem with OVH plugin for creating/renewing certificates HOT 8
- Error requesting certificate with WebRoot plugin HOT 5
- FullChainFile doesn't contain ISRG Root X1 HOT 9
- Active24 plugin no longer working HOT 25
- Pull cert into local certificate store using FQDN and Subsequent renew HOT 5
- CmdLets Repeatedly asking for DNS Text Records HOT 3
- Running "Get-PACertificate" can cause a long stream of errors HOT 4
- OVH plugin is not compatible with PowerShell 5.1
- DNSimple Plugin not removing dns challange HOT 3
- DNSimple Plugin regression HOT 3
- DNSPod Argument Names HOT 3
- Gandi API change HOT 3
- Question - Problems loading bouncy castle HOT 6
- NameCom plugin - Domain not found HOT 8
- Plugin request: Scaleway.com/Online.net HOT 10
- How do you check for current installed version of Posh-ACME client and how do you upgrade the Posh-ACME client HOT 3
- Cannot indicate an order replaces certificate with serial <code>, which already has a replacement order HOT 4
- Submit-Renewal throws errors checking ARI on certs with no AKI HOT 3
- Azure IMDS authentication doesn't work on Arc-enabled servers HOT 17
- Feature Request: Add DNS Plugin Support for dynv6 in Posh-ACME HOT 2
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 posh-acme.