# How to get certbot to just download?

**URL:** <https://community.letsencrypt.org/t/how-to-get-certbot-to-just-download/144234>\
**Category:** Help\
**Created:** [February 1, 2021, 3:14pm UTC](https://community.letsencrypt.org/t/how-to-get-certbot-to-just-download/144234 "2021-02-01T15:14:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobfindlay](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@bobfindlay](https://community.letsencrypt.org/u/bobfindlay)\
**Post date:** [February 1, 2021, 3:14pm UTC](https://community.letsencrypt.org/t/how-to-get-certbot-to-just-download/144234/1 "2021-02-01T15:14:36Z")

</div>

Hi

I would like certbot to simply download certificates (if it doesn't already have them). It seems whatever I do, that certbot requests a new certificate. Is there a way of just downloading and then triggering a hook?

I've registered an acme account with my provider and told certbot about it.

I can login to a root shell on my machine (yes or no, or I don't know):

yes  
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):

no  
The version of my client is (e.g. output of `certbot --version` or `certbot-auto --version` if you're using Certbot):

1.11.0

---

<div class="post-metadata">

**Author:** ![JuergenAuer](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/juergenauer/32/26491_2.png) [@JuergenAuer](https://community.letsencrypt.org/u/JuergenAuer)\
**Post date:** [February 1, 2021, 4:33pm UTC](https://community.letsencrypt.org/t/how-to-get-certbot-to-just-download/144234/2 "2021-02-01T16:33:30Z")

</div>

Hi @bobfindlay

> [@bobfindlay](#):
>
> I would like certbot to simply download certificates (if it doesn't already have them). It seems whatever I do, that certbot requests a new certificate. Is there a way of just downloading and then triggering a hook?

Certbot is an ACME-client, so requesting a new certificate is expected.

But why do you need such a function?

If you have a log, you can use the certificate url.

If you have the serial number, you can use

```nohighlight
https://acme-v02.api.letsencrypt.org/acme/cert/ + serialnumber

https://acme-v02.api.letsencrypt.org/acme/cert/039FA5A7471E5E979C7E4DD58DA267B03C20

```

to download a certificate.

The first url is the schema, the second url is the current forum certificate.

---

<div class="post-metadata">

**Author:** ![bobfindlay](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@bobfindlay](https://community.letsencrypt.org/u/bobfindlay)\
**Post date:** [February 1, 2021, 4:51pm UTC](https://community.letsencrypt.org/t/how-to-get-certbot-to-just-download/144234/3 "2021-02-01T16:51:33Z")

</div>

well, we have over 100 different certs on different machines running different software. I had high hopes for certbot automating it, but to be honest it's failed on every one I've tried for various reasons, so I'm resigned to doing the work by hand.

The certs are set to auto-renew, and I was hoping to at least have certbot dl the certificate and run a generic post-process to convert it to different formats, so that I could have a central repository of current certificates. Perhaps the only way to do that is a series of wgets, but then there's no knowledge as to if the certificate has been updated and therefore if anything needs to be done.

---

<div class="post-metadata">

**Author:** ![JuergenAuer](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/juergenauer/32/26491_2.png) [@JuergenAuer](https://community.letsencrypt.org/u/JuergenAuer)\
**Post date:** [February 1, 2021, 5:07pm UTC](https://community.letsencrypt.org/t/how-to-get-certbot-to-just-download/144234/4 "2021-02-01T17:07:00Z")

</div>

> [@bobfindlay](#):
>
> well, we have over 100 different certs on different machines running different software. I had high hopes for certbot automating it, but to be honest it's failed on every one I've tried for various reasons, so I'm resigned to doing the work by hand.

I don't understand the problem.

If a certificate is created, the ACME client has to download the certificate.

Why doesn't that work? Fix that.

Downloading the certificate in a second step isn't required if the client works.

So you should fix the primary problem.

> [@bobfindlay](#):
>
> The certs are set to auto-renew, and I was hoping to at least have certbot dl the certificate and run a generic post-process to convert it to different formats, so that I could have a central repository of current certificates.

You can do that if you change your setup.

Read

> **[Challenge Types - Let's Encrypt](https://letsencrypt.org/docs/challenge-types/)**
>
> When you get a certificate from Let’s Encrypt, our servers validate that you control the domain names in that certificate using “challenges,” as defined by the ACME standard. Most of the time, this validation is handled automatically by your ACME...

create a new subdomain (sample: `acme.yourdomain.com`), then 302 redirects

`http://yourfirstdomain.com/.well-known/acme-challenge/random-filename -> http://acme.yourdomain.com/.well-known/acme-challenge/random-filename`

then you can run Certbot with the webroot `acme.yourdomain.com` and certonly on that machine.

Then all certificates are stored on `acme.yourdomain.com` and you can do what you want.

---

<div class="post-metadata">

**Author:** ![schoen](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/schoen/32/79_2.png) [@schoen](https://community.letsencrypt.org/u/schoen)\
**Post date:** [February 1, 2021, 5:28pm UTC](https://community.letsencrypt.org/t/how-to-get-certbot-to-just-download/144234/5 "2021-02-01T17:28:27Z")

</div>

> [@bobfindlay](#):
>
> The certs are set to auto-renew, and I was hoping to at least have certbot dl the certificate and run a generic post-process to convert it to different formats, so that I could have a central repository of current certificates. Perhaps the only way to do that is a series of wgets, but then there's no knowledge as to if the certificate has been updated and therefore if anything needs to be done.

You might want to look at `--deploy-hook`.

[https://certbot.eff.org/docs/using.html](https://certbot.eff.org/docs/using.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [March 3, 2021, 5:28pm UTC](https://community.letsencrypt.org/t/how-to-get-certbot-to-just-download/144234/6 "2021-03-03T17:28:45Z")

</div>

Closed on March 3, 2021, 5:28pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
