remilapeyre / vault-acme

Mozilla Public License 2.0
94 stars 24 forks source link

How do I read a certificate run back? #24

Closed jeromeza closed 2 years ago

jeromeza commented 3 years ago

$ vault write acme/certs/yoonix.xyz ... cert generates

$ vault read acme/certs/yoonix.xyz Error reading acme/certs/yoonix.xyz: Error making API request.

URL: GET http://127.0.0.1:8200/v1/acme/certs/yoonix.xyz Code: 405. Errors:

--

Is this possible? I tried to check via the Vault GUI but the acme/ secrets engine is greyed out (and from a brief Google it appears not all engines work in the GUI - so I'm not sure that's the issue).

--

EDIT: Looks like a another 'vault write' request returns the cached cert - which as far as I understand is valid until it's cache ratio is hit - at which point it (potentially auto) renews?

remilapeyre commented 3 years ago

Hi @jeromeza, this is not possible at the moment but will be added in the roadmap.

remilapeyre commented 2 years ago

Hi @jeromeza,

Looks like a another 'vault write' request returns the cached cert - which as far as I understand is valid until it's cache ratio is hit - at which point it (potentially auto) renews?

Yes, this is correct and that the way you should read certificates already created. Please let me know if you have any other question!