Confused about account registration process

I'm using acme-python to create certs within python. Documentation on this is sparse, and in the examples I've found, the client account is registered at the time of certificate creation.

From what I can tell, there is no way to "authenticate" with an existing registration using acme-python (you can only create new registrations).

Am I expected to create a new registration for each cert? If not, how do I retrieve an existing registration using the client library?

1 Like

Hi @bendavis78

that's bad, very bad.

I use two accounts, one of the test-, one of the productive system. Since 2018 (first Letsencrypt certificate).

There is no need to create so much accounts.

If that library is so limited, use another library.

1 Like

What library/client are you actually using? You're linking to the certbot Github repository..

Could you please explain a little bit more about your setup?

1 Like

Sorry, I meant the acme-python library, found here:

1 Like

Documentation can be found here I guess:

Not sure if it helps you very much, as it's quite sparse also.

In any case: I think acme-python is more of a low-level ACME client an your Python program which is using it should store the account information for usage by acme-python somewhere by itself.

1 Like
  1. You are using Certbot's acme, which is registered to PyPi as acme. It is in Python, but acme-python is a completely different package.

  2. In that library, you create a Client with an AccountKey , and all operations for that client authenticate. You can look at Certbot to see how they leverage this. for example,

The ACME spec is a little weird. The "newAccount" endpoint is used for both creating new accounts and authenticating/checking existing accounts.

1 Like

@jvanasco Ah, I think I posted the wrong link. After looking, I am in fact using acm-python.

Looking at the docs, I still don't see a way to get or construct a regr object given the account key.

1 Like

If I Google for "acme-python", I only get documentation on readthedocs for the "acme" package from Let's Encrypt? If "acme-python" is not the same as the acme package from the certbot Github repository, then what is it?

1 Like

@jvanasco after further investigation acme and python-acme appear to be the same thing. There is no python-acme in PyPi, but the docs here link back to the certbot repo.

1 Like

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