# How to use multiple accounts with Certbot?

**URL:** <https://community.letsencrypt.org/t/how-to-use-multiple-accounts-with-certbot/86119>\
**Category:** Help\
**Created:** [February 14, 2019, 7:14am UTC](https://community.letsencrypt.org/t/how-to-use-multiple-accounts-with-certbot/86119 "2019-02-14T07:14:37Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![toc-rox](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@toc-rox](https://community.letsencrypt.org/u/toc-rox)\
**Post date:** [February 14, 2019, 7:14am UTC](https://community.letsencrypt.org/t/how-to-use-multiple-accounts-with-certbot/86119/1 "2019-02-14T07:14:37Z")

</div>

Is it possible to use multiple accounts with Certbot?

---

<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 14, 2019, 8:27am UTC](https://community.letsencrypt.org/t/how-to-use-multiple-accounts-with-certbot/86119/2 "2019-02-14T08:27:07Z")

</div>

Hi @toc-rox

yes, it’s possible. There are users with screenshots.

Certbot asks, which account should be used.

And there is an

```auto
 --account ACCOUNT_ID

```

you can use.

---

<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:** [February 14, 2019, 8:28am UTC](https://community.letsencrypt.org/t/how-to-use-multiple-accounts-with-certbot/86119/3 "2019-02-14T08:28:02Z")

</div>

You mean multiple accounts against a single ACME server, right?

Certbot does support this, but only partially. If you copy multiple account directories into `/etc/letsencrypt/accounts/{server}/directory` (say, from different servers), then Certbot will prompt you to choose one, when using that ACME server.

You can also specify `--account xxxxx`, where the value is the name of the directory for that account.

However, I don't think Certbot allows you to actually create multiple accounts against a single ACME server. The `register` command complains:

> There is an existing account; registration of a duplicate account with this command is currently unsupported.

---

<div class="post-metadata">

**Author:** ![toc-rox](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@toc-rox](https://community.letsencrypt.org/u/toc-rox)\
**Post date:** [February 15, 2019, 6:22am UTC](https://community.letsencrypt.org/t/how-to-use-multiple-accounts-with-certbot/86119/4 "2019-02-15T06:22:15Z")

</div>

> [@\_az](#):
>
> You mean multiple accounts against a single ACME server, right?

Yes, that's right ... and thanks for the responses so far.

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [February 15, 2019, 1:56pm UTC](https://community.letsencrypt.org/t/how-to-use-multiple-accounts-with-certbot/86119/5 "2019-02-15T13:56:21Z")

</div>

Can you explain the use case for having/using multiple accounts on the same system?

I’m trying to think of ways to force it…  
But wondering **why**?  
What is to be gained?

Since, they are FREE to get and are basically “disposable”.  
And even email communications can be tied to specific domains (so even one account can still serve many email recipients - like from an HSP perspective).

---

<div class="post-metadata">

**Author:** ![toc-rox](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@toc-rox](https://community.letsencrypt.org/u/toc-rox)\
**Post date:** [February 17, 2019, 9:28am UTC](https://community.letsencrypt.org/t/how-to-use-multiple-accounts-with-certbot/86119/6 "2019-02-17T09:28:11Z")

</div>

> [@rg305](#):
>
> But wondering **why**?

Do you have multiple mail addresses? If yes, why? A typical answer will be: Just to separate things.

BTW: It seems that Certbot doesn't really support separation. Certbot is a very complex application ... too complex in my eyes. It has two basic problems: Certbot has to be backwards compatible and isn't able to loose wait. And on the other hand it seems a bit "over-engineered" (autoload, plugins, ...). I wonder how a version 1.0.0 will look like.

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [February 17, 2019, 10:51am UTC](https://community.letsencrypt.org/t/how-to-use-multiple-accounts-with-certbot/86119/7 "2019-02-17T10:51:00Z")

</div>

> [@toc-rox](#):
>
> Do you have multiple mail addresses?

Multiple mail addresses and multiple accounts are different things.  
I think `certbot` can do multiple email addresses within the same account.  
So... do you really need multiple accounts or just more than one email address per account (like to have a specific email addresses linked to a specific cert)?

---

<div class="post-metadata">

**Author:** ![toc-rox](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@toc-rox](https://community.letsencrypt.org/u/toc-rox)\
**Post date:** [February 18, 2019, 4:59am UTC](https://community.letsencrypt.org/t/how-to-use-multiple-accounts-with-certbot/86119/8 "2019-02-18T04:59:14Z")

</div>

> [@rg305](#):
>
> So… do you really need multiple accounts or just more than one email address per account (like to have a specific email addresses linked to a specific cert)?

Multiple accounts are indeed required to properly separate things.

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [February 18, 2019, 5:58am UTC](https://community.letsencrypt.org/t/how-to-use-multiple-accounts-with-certbot/86119/9 "2019-02-18T05:58:55Z")

</div>

I think you may find the best result for your need is to interact with the available APIs (directly bypassng the certbot app/interface).  
[instead of trying to force certbot to do things it really is not readied for]  
I don’t use them myself, so I wouldn’t be able to assist you there; but there are others who can.  
See: [https://letsencrypt.readthedocs.io/en/latest/api.html](https://letsencrypt.readthedocs.io/en/latest/api.html)

**OR**  
I suppose you could force certbot to hold multiple accounts by combining folders from different systems (containing different accounts).  
Or if you are really daring… force it to do that in the same system.  
**In any case, you would probably be the first/only one to do anything like this (on purpose); So don’t take anything below as an actual recommendation.**  
Possible method:

- Move/rename the local accounts folder and force it to create new accounts (as many as needed)
- Then combine all accounts into one single folder.

Side-effects may include:

- Finding help with any related trouble encountered may be even more difficult than usual.
- Automated commands may have to include an “use this specific account tag” for each action.

And all I can find, relating to anything close to that, is on “–account” / “ACCOUNT\_ID” but that only relates to the “unregister” command. Which is the exact opposite of what you want.  
[(again) NOT RECOMMENDED. “Kids: Don’t try this at home!”]

---

<div class="post-metadata">

**Author:** ![toc-rox](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@toc-rox](https://community.letsencrypt.org/u/toc-rox)\
**Post date:** [February 21, 2019, 6:30am UTC](https://community.letsencrypt.org/t/how-to-use-multiple-accounts-with-certbot/86119/10 "2019-02-21T06:30:27Z")

</div>

Yes, I agree. Certbot isn’t an ideal choice if one needs multiple accounts. The lego client has much better support for this. I think I will go with the lego client or the excellent lego library (in order to write my own client).

---

<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 23, 2019, 7:07am UTC](https://community.letsencrypt.org/t/how-to-use-multiple-accounts-with-certbot/86119/12 "2019-03-23T07:07:49Z")

</div>

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