# ACME support in Google’s CA

**URL:** <https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736>\
**Category:** Client dev\
**Created:** [March 29, 2022, 10:50pm UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736 "2022-03-29T22:50:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmbolger](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rmbolger/32/27474_2.png) [@rmbolger](https://community.letsencrypt.org/u/rmbolger)\
**Post date:** [March 29, 2022, 10:50pm UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/1 "2022-03-29T22:50:05Z")

</div>

Stumbled on this announcement today.

> **[Automate Public Certificates Lifecycle Management via RFC 8555 (ACME)](https://cloud.google.com/blog/products/identity-security/automate-public-certificate-lifecycle-management-via--acme-client-api)**
>
> ACME API lets our users automate their Public Certificate Lifecycle Management.

Curious if anyone has played around with it yet. The main post doesn’t talk about pricing or rate limits aside from needing to use EAB to associate the acme account with your Google Cloud account. But there’s a link to another post talking about their Certificate Management feature that says the first 100 certs are free. Subsequent certs up to 2000 are $0.20/cert/month and $0.10 after that. I would assume that only counts currently valid certs.

Seems like another potentially good backup CA option for relatively low volume users.

---

<div class="post-metadata">

**Author:** ![\_az](https://avatars.discourse-cdn.com/v4/letter/_/22d042/32.png) [@\_az](https://community.letsencrypt.org/u/_az)\
**Post date:** [March 29, 2022, 11:03pm UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/2 "2022-03-29T23:03:33Z")

</div>

> By default all certificates issued by Google Trust Services are good for up to 90 days; however, ACME allows for clients to request certificates with different validity periods. Using this capability we allow the requestor to get certificates that are good for as little as 1 day, though we would not recommend using anything less than 3 days due to concerns over [clock skew](https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/46359.pdf) and certificate validity overlap.

Looks like a bunch of ACME libraries and clients will need to add `notBefore` and `notAfter` support to order creation!

---

<div class="post-metadata">

**Author:** ![9peppe](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/9peppe/32/31596_2.png) [@9peppe](https://community.letsencrypt.org/u/9peppe)\
**Post date:** [March 29, 2022, 11:24pm UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/3 "2022-03-29T23:24:01Z")

</div>

Wow, the real news is that pki.goog is available to everyone now. It used to be available only for Google services (example: you point your domain to blogger or Google Sites)

And using acme is really good.

Certificate management is another thing, I believe: manage any certificate for gcp services. Someone with access should see and check the actual pricing for the public CA.

---

<div class="post-metadata">

**Author:** ![MikeMcQ](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mikemcq/32/52772_2.png) [@MikeMcQ](https://community.letsencrypt.org/u/MikeMcQ)\
**Post date:** [March 29, 2022, 11:38pm UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/4 "2022-03-29T23:38:19Z")

</div>

Hmm. Anyone else see a problem with their certbot command example? 🙂

```nohighlight
certbot -d <domain.com> --server https://dv.acme-v02.api.pki.goog/directory \ 
--eab-kid <EAB_KEY_ID> --eab-hmac-key <EAB_HMAC_KEY> \
 --standalone --preferred-challenges dns certonly

```

they add:

It is that simple. Just schedule this task to run periodically and you will now be automatically acquiring and maintaining the TLS certificates for the associated workload.

---

<div class="post-metadata">

**Author:** ![9peppe](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/9peppe/32/31596_2.png) [@9peppe](https://community.letsencrypt.org/u/9peppe)\
**Post date:** [March 29, 2022, 11:41pm UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/5 "2022-03-29T23:41:08Z")

</div>

What a mess.

`--preferred-challenges` why?

Subcommand at the end?

In the meanwhile, I submitted the form. Let's see their pricing.

---

<div class="post-metadata">

**Author:** ![webprofusion](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/webprofusion/32/85310_2.png) [@webprofusion](https://community.letsencrypt.org/u/webprofusion)\
**Post date:** [March 30, 2022, 12:26am UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/6 "2022-03-30T00:26:42Z")

</div>

I've actually used this in alpha/beta last year to help see if it integrated properly with Certify The Web (there were a few tweaks). Having an ACME CA with an SLA and support is pretty cool. The more the merrier!

---

<div class="post-metadata">

**Author:** ![rmbolger](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rmbolger/32/27474_2.png) [@rmbolger](https://community.letsencrypt.org/u/rmbolger)\
**Post date:** [March 30, 2022, 3:45am UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/7 "2022-03-30T03:45:45Z")

</div>

> [@\_az](#):
>
> Looks like a bunch of ACME libraries and clients will need to add `notBefore` and `notAfter` support to order creation!

Honestly, I had forgotten these were even in the spec for Order objects until I got home and double checked. I had figured the CA would pull the values from the submitted CSR. And now I'm wondering whether any of them actually do (those that actually support configurable lifetimes).

---

<div class="post-metadata">

**Author:** ![webprofusion](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/webprofusion/32/85310_2.png) [@webprofusion](https://community.letsencrypt.org/u/webprofusion)\
**Post date:** [March 30, 2022, 8:10am UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/9 "2022-03-30T08:10:32Z")

</div>

Woah there. Ryan may not be a certbot user but he knows a whole hell of a lot about PKI (probably more than anyone here), let's not pile on. The command is an example posted in a blog and you just have to use certbot the way you always use it.

---

<div class="post-metadata">

**Author:** ![orangepizza](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/orangepizza/32/19597_2.png) [@orangepizza](https://community.letsencrypt.org/u/orangepizza)\
**Post date:** [March 30, 2022, 8:23am UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/10 "2022-03-30T08:23:33Z")

</div>

feels like they wanted that to be one liner and failed to be

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)\
**Post date:** [March 30, 2022, 8:24am UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/11 "2022-03-30T08:24:07Z")

</div>

> [@webprofusion](#):
>
> Ryan (…) knows a whole hell of a lot about PKI (probably more than anyone here) (…)

I did not say otherwise 😉

Maybe the Certbot example wasn't even written by him, but by his co-author Babi Seal, who knows. I'm _assuming_ Ryan is "first author" though and, I think, ultimately responsible for the contents of the blog post.

Having a heck of a lot of expertise in field A doesn't really warrant you posting strange and incorrect stuff in field B IMO.. Usually, you'd do your digging and finding out how it's suppose to work, before posting something, right? Due diligence and stuff like that.

Combining `--standalone` and `--preferred-challenges dns` should result in an error due to incompatible challenges.

Edit: Just checked and indeed, an error: "None of the preferred challenges are supported by the selected plugin" That's just sad.. It seems they haven't even tried out their own example..?

---

<div class="post-metadata">

**Author:** ![webprofusion](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/webprofusion/32/85310_2.png) [@webprofusion](https://community.letsencrypt.org/u/webprofusion)\
**Post date:** [March 30, 2022, 8:32am UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/12 "2022-03-30T08:32:40Z")

</div>

Thanks @Osiris I don't care about the command being wrong, I care about openly mocking Ryan (who is/was an advisor to the Let's Encrypt board) in a public forum because of a bad copy/paste. I'll ping him and ask if he can get the command fixed.

---

<div class="post-metadata">

**Author:** ![orangepizza](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/orangepizza/32/19597_2.png) [@orangepizza](https://community.letsencrypt.org/u/orangepizza)\
**Post date:** [March 30, 2022, 9:13am UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/14 "2022-03-30T09:13:09Z")

</div>

after thinking some about it I'm not sure allow setting notbefore and notafter by user good idea:  
can it be set to backdate/predate the certificate?  
like set notbefore 2 months ago and set notafter next month  
or a cert that valid from April 30th to July  
@webprofusion if you still have access can you try backdating/predate the certificate? how far Google will allow?  
I know GTS by default bactdates certificate by an hour (notbefore time vs timestamp on SCT)

---

<div class="post-metadata">

**Author:** ![webprofusion](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/webprofusion/32/85310_2.png) [@webprofusion](https://community.letsencrypt.org/u/webprofusion)\
**Post date:** [March 30, 2022, 9:32am UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/15 "2022-03-30T09:32:37Z")

</div>

> [@orangepizza](#):
>
> how far Google will allow?

I just tried it, they allow a notBefore of up to -2 hrs:  
`Requested NotBefore timestamp: 2022-03-25T09:29:34.5410277+00:00 must be within [2022-03-30T07:29:34.912389236+00:00, 2022-03-30T09:29:34.912389236+00:00].`

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)\
**Post date:** [March 30, 2022, 9:55am UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/16 "2022-03-30T09:55:01Z")

</div>

> [@orangepizza](#):
>
> can it be set to backdate/predate the certificate?  
> like set notbefore 2 months ago and set notafter next month  
> or a cert that valid from April 30th to July

I'm preeeeeeeetty sure Google doesn't incorporate those user requests without validating them 😉

---

<div class="post-metadata">

**Author:** ![9peppe](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/9peppe/32/31596_2.png) [@9peppe](https://community.letsencrypt.org/u/9peppe)\
**Post date:** [March 30, 2022, 2:12pm UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/17 "2022-03-30T14:12:04Z")

</div>

It looks like their pricing is no price at all (they let me enable the service on a project with no billing account linked)

(Oh, it's good. I just went from serving RSA+ECC with R3 and E1 to entirely replacing R3 with GTS certificates)

---

<div class="post-metadata">

**Author:** ![rmhrisk](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@rmhrisk](https://community.letsencrypt.org/u/rmhrisk)\
**Post date:** [March 30, 2022, 3:27pm UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/18 "2022-03-30T15:27:26Z")

</div>

Hello, my name is Ryan Hurst, I am the Product Manager for Google Trust Services. I am also an advisor to ISRG and Let's Encrypt.

First I want to apologize for the incorrect command line in the post. That issue has now been resolved.

As for how it happened I relied on someone else to test the original command line in the post and at publication, time was asked to make a change to the command line and did so without re-testing. This mistake is on me.

It seems there are a few questions implied and explicit in this thread I should try to address.

**What does Cloud Certificate Manager charge for?**  
Cloud Certificate Manager charges for managing certificates, not the certificates themselves.

In fact, it sources certificates in some cases from Let’s Encrypt. Since this is the client dev forum it might be interesting to know that it makes the decision on which CAs it can use based on the CAA record for a given domain,

**What does this ACME capability cost?**  
There is no charge for using the Cloud Certificate Manager ACME service.

**What was the goal of release?**  
It is intended to augment the managed offering and enable Google Cloud customers to get CA redundancy when using ACME, as well as enable them to use Google Trust Services issued certificates in their larger deployments so they can have uniform device ubiquity across deployments.

I am happy to answer any questions folks may have.

Ryan Hurst

---

<div class="post-metadata">

**Author:** ![rmhrisk](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@rmhrisk](https://community.letsencrypt.org/u/rmhrisk)\
**Post date:** [March 30, 2022, 3:58pm UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/19 "2022-03-30T15:58:42Z")

</div>

Also since there was a question about notBefore and notAfter support Amir, one of the engineers on the GTS team did a PR for certbot that should enable this scenario there. You can find it here: [Support certificate-expiration that populates the notAfter field in NewOrder by aaomidi · Pull Request #9253 · certbot/certbot · GitHub](https://github.com/certbot/certbot/pull/9253)

---

<div class="post-metadata">

**Author:** ![9peppe](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/9peppe/32/31596_2.png) [@9peppe](https://community.letsencrypt.org/u/9peppe)\
**Post date:** [March 30, 2022, 4:04pm UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/20 "2022-03-30T16:04:16Z")

</div>

> [@rmhrisk](#):
>
> There is no charge for using the Cloud Certificate Manager ACME service.

Yep, there is a bit of confusion in the documentation: while [this](https://cloud.google.com/public-certificate-authority/docs) is the page I need, the link in [this section](https://cloud.google.com/public-certificate-authority/docs/getting-support#whats_next) points to another product.

---

<div class="post-metadata">

**Author:** ![orangepizza](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/orangepizza/32/19597_2.png) [@orangepizza](https://community.letsencrypt.org/u/orangepizza)\
**Post date:** [March 30, 2022, 4:11pm UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/21 "2022-03-30T16:11:06Z")

</div>

while it's not directly related with this if may better to publish CAA record for GTS somewhere more visible then deep corner of CPS pdf file (section 4.2.4), like in FAQ.  
P.S: it's pki.goog

---

<div class="post-metadata">

**Author:** ![jvanasco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/jvanasco/32/55900_2.png) [@jvanasco](https://community.letsencrypt.org/u/jvanasco)\
**Post date:** [March 30, 2022, 4:39pm UTC](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736/22 "2022-03-30T16:39:36Z")

</div>

> [@rmbolger](#):
>
> Seems like another potentially good backup CA option for relatively low volume users.

IMHO, it's best to keep as much of one's technology stack away from Google as possible.

[Next page](https://community.letsencrypt.org/t/acme-support-in-google-s-ca/174736.md?page=2)
