No, ACME is not designed to handle that. But if you want, you could write an 
ACME server that pre-validates all orders and challenges, and upon finalize, 
just sends the certificate (that you got from your main ACME client). Its just 
a few PHP scripts.You don't even need to validate nonces and JWK signatures. 
You could just accept and swallow everything. Since all you are doing, are just 
sending a certificate, so no security sensitive things - certificates are 
public anyways.Only thing to be aware of, is that the certbot in the receiving 
end might wanna check CSR against cert, so make sure your sub-servers send the 
same CSR as your main server.Then you just make the renewal endpoint (ARI) one 
that forwards the request to lets encrypt, but sets STARTDATE = [enddate 
received from lets encrypt], and ENDDATE = STARTDATE + 24hr.In this way, fetch 
of the cert will always gurateed happen just after the real renew.
-------- Originalmeddelande --------Från: Marin Mihajlović 
<[email protected]> Datum: 2026-04-10  17:55  (GMT+01:00) Till: 
sebastian <[email protected]>, Mailing List <[email protected]> 
Ämne: [Acme] Re: Questions on ACME Protocol: Wildcard Certificate Distribution 
& Certificate Pinning f 

Thank you for the clarification, and apologies for the misunderstanding on 
point 2 — SPKI pinning against the public key (analogous to a TLSA 3 1 1 
record) with a static private key makes perfect sense. Since the public key 
remains the same across renewals,
 the pin survives certificate rotation. That elegantly solves the mobile 
pinning problem.




Regarding point 1 — I understand that a cron job running at a sensible interval 
(bi-weekly, monthly) could fetch the renewed certificate. However, my question 
is more specifically about whether this can be done natively through the ACME 
protocol and an ACME
 client like certbot, rather than through custom scripts in a custom cron job.




In other words: is there an existing or proposed mechanism within the ACME 
specification where a secondary server's ACME client could act as a 
"certificate subscriber" — periodically pulling the certificate from the CA (or 
from the primary server's ACME account)
 and triggering deploy hooks upon detecting a renewal — all within the ACME 
framework? Or is this simply outside the scope of what ACME was designed to 
handle, meaning custom scripting around the edges is the accepted approach?




Thank you again for your time.




Best regards,


Marin Mihajlović
Software Architect


ASEE SOLUTIONS d.o.o.
+385 95 5541 310 | [email protected]

asee.io


     








From: sebastian <[email protected]>
Sent: Friday, April 10, 2026 5:13 PM
To: Mailing List <[email protected]>
Subject: [Acme] Re: Questions on ACME Protocol: Wildcard Certificate 
Distribution & Certificate Pinning f





CAUTION: This email originated from outside of the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.


1:
You of course cron set the command at a sensible interval, lets say monthly or 
bi-weekly so it gets the certificate.


2:
I did not say you should fetch the pin with the s_client command - that would 
be insecure of course.


What I said you should do, is to pin against public key only, like TLSA 3 1 1 
record.


Then as long as you renew with static private key, pin wont get affected. This 
is called an SPKI pin.



-------- Originalmeddelande --------
Från: Marin Mihajlović <[email protected]>
Datum: 2026-04-10 17:08 (GMT+01:00)
Till: sebastian <[email protected]>, Mailing List 
<[email protected]>
Ämne: [Acme] Re: Questions on ACME Protocol: Wildcard Certificate Distribution 
& Certificate Pinning for M




Thank you for the detailed response. I appreciate the approach of using a fixed 
private key with a pre-generated CSR via certbot's -csr option to ensure the 
private key remains unchanged across renewals. That part makes sense.




However, I still have concerns about the two remaining challenges:




1. Automated Certificate Distribution to Secondary Servers




I understand that after the main server completes the ACME renewal, the other 
servers could fetch the new certificate using the openssl s_client command you 
described. But this still requires me to manually (or via a separate mechanism) 
run that command on
 each secondary server and then restart the services that depend on the renewed 
certificate.




What I'm looking for is whether the ACME protocol itself — or any proposed 
extension — provides a way for an ACME client on the secondary servers to 
periodically check for and retrieve the renewed certificate. For example, could 
an ACME client running on each
 secondary server perform a scheduled certificate fetch and, upon detecting a 
change in the certificate's serial number, automatically trigger a 
deploy/renewal hook to restart the relevant services? Something analogous to 
how certbot handles renewals and post-renewal
 hooks on the primary server, but for servers that don't perform the actual 
ACME challenge — only the certificate retrieval.




Is there any existing or proposed mechanism within the ACME specification for 
this kind of "certificate pull" workflow?




2. Certificate Pinning Security Concerns




Regarding certificate pinning on mobile devices — I don't think fetching the 
certificate over a TLS connection (the mobile equivalent of the openssl 
s_client approach) and then pinning it would be secure. The whole point of 
certificate pinning is to protect
 against compromised or rogue CAs and man-in-the-middle attacks. If the device 
fetches and pins a certificate over a connection that could itself be 
intercepted, then pinning provides no additional security — you'd be trusting 
the very channel that pinning
 is meant to protect you from.




This same security concern also applies to the certificate distribution in 
scenario 1: having secondary servers fetch the certificate over a plain TLS 
connection from the primary server doesn't provide the same level of trust as 
obtaining it through the ACME
 protocol directly from the CA.




Is there any work being done within the ACME ecosystem to address secure 
certificate distribution to multiple endpoints or to provide a trusted channel 
for certificate retrieval that would be suitable for pinning scenarios?




Thank you again for your time and insights.




Best regards,


Marin Mihajlović
Software Architect


ASEE SOLUTIONS d.o.o.
+385 95 5541 310 | [email protected]

asee.io


     








From: sebastian <[email protected]>
Sent: Friday, April 10, 2026 3:47 PM
To: Mailing List <[email protected]>
Subject: [Acme] Re: Questions on ACME Protocol: Wildcard Certificate 
Distribution & Certificate Pinning for M




CAUTION: This email originated from outside of the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.


1 and 2 can be solved in the same way.


Fix the private key, so every server and endpoint uses the same private key.


Then after your main server (who does the ACME fetch) are done, your subservers 
only need to download the certificate with a command like this:


openssl s_client -servername [yourserver] -connect [yourserver]:443 < /dev/null 
2>/dev/null | openssl x509 -outform pem -out 
/etc/apache2/ssl/servercertificate.pem


By having a static private key, you can make the certificate pin being linked 
to the public key meaning it will survive certificate renews.






And if you don't want to send private keys insecurely, you can do this to 
create an ECC (secp384r1) key from an password:



echo -n "secret password" | openssl dgst -sha384 -binary | xxd -p -c 48 | xargs 
-I {} printf "303e0201010430{}a00706052b81040022" | xxd -r -p | openssl ec 
-inform DER -conv_form uncompressed -out private_key.pem



Same password = same key.


The 303...022 string is an DER ASN.1 'frame' around the private key so openssl 
(and other software) recongnize it as a secp384r1 key with only the "d" value 
present.


You can input a pre-generated csr into certbot with -csr, that will prevent 
certbot from replacing the private key.



-------- Originalmeddelande --------
Från: Marin Mihajlović <[email protected]>
Datum: 2026-04-10 13:25 (GMT+01:00)
Till: [email protected]
Ämne: [Acme] Questions on ACME Protocol: Wildcard Certificate Distribution & 
Certificate Pinning for Mobil




Hello,




I hope this message finds you well. I'm reaching out to the ACME Working Group 
with two questions regarding challenges we're facing in our certificate 
lifecycle management, and I'd appreciate any insights, recommendations, or 
pointers to existing work in this
 area.




1. Wildcard Certificate Distribution Across Multiple Servers




We currently use the ACME protocol to automatically renew a wildcard 
certificate on a single server. However, the same certificate and private key 
are used for TLS termination on multiple servers. At the moment, we lack an 
automated mechanism to distribute
 the renewed certificate and private key to all other servers that depend on it.




Does the working group have any recommendations or best practices for handling 
this scenario? Are there any existing extensions, draft proposals, or commonly 
adopted patterns within the ACME ecosystem that address automated distribution 
of certificates and
 private keys to multiple endpoints after renewal?




2. Certificate Pinning in Mobile Applications




We maintain mobile applications that implement certificate pinning. Each time a 
certificate is renewed, we currently need to build and release a new version of 
the app with the updated pinned certificate. This creates an operational 
bottleneck and a window
 of potential service disruption.




Is there any work being done within the ACME protocol or related specifications 
to help coordinate certificate renewal with certificate pinning scenarios? For 
example, mechanisms to pre-publish upcoming certificate details (such as public 
keys or SPKI hashes)
 ahead of the actual renewal, so that pinning configurations can be updated 
proactively?




Any guidance, references to relevant RFCs or drafts, or practical experience 
the group can share would be greatly appreciated.




Thank you for your time.




Best regards,


Marin Mihajlović
Software Architect


ASEE SOLUTIONS d.o.o.
+385 95 5541 310 | [email protected]

asee.io


     



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Acme mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to