Closed webcompas closed 2 months ago
@ldez What about the path to the issuer's certificate? You closed the issue without any comment or change in this regard.
I was focused on the pfx and pem path, I completely missed the issuer path.
I was focused on the pfx and pem path, I completely missed the issuer path.
So please re-open the issue to proceed with this part.
It's already fixed: #2164
Welcome
What did you expect to see?
Hook scripts are provided with certificate related information using the following environment variables. But some of them are set and contain the respective file path even if the file has not been created:
LEGO_CERT_PFX_PATH
(only with--pfx
)LEGO_CERT_PEM_PATH
(only with--pem
)In addition there should also be an environment variable (e.g.
LEGO_ISSUER_CERT_PATH
) containing the path to the issuer's certificate if the file has been created.What did you see instead?
The environment variables should only exist or have a value if the respective file has been created. Otherwise this may be misleading and makes it more complex for the scripts to decide/differentiate how to handle it.
How do you use lego?
Binary
Reproduction steps
Just create or renew a certificate without the mentioned options being set.
Version of lego
Logs
Go environment (if applicable)