Also if the pinning mechanism doesn't support pinning to SPKI, you could fetch the certificate as I describe, then have code in your app that checks the SPKI against a hard-coded pin, and only if the SPKI match, your app code will write the new certificate as pin.In this way it becomes 100% secure since you check the public key before approving a certificate as new pin, meaning, if a rogue CA issues a certificate, it will not have the same public key as the attacker dont have your private key, thus your re-pinning mechanism will reject the replacement certificate. -------- 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
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Acme mailing list -- [email protected] To unsubscribe send an email to [email protected]
